Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing Fatal Error. Attempting to analyze log text file in my documents folder for a side project. #2690

Open
Bentore opened this issue Jul 11, 2024 · 2 comments

Comments

@Bentore
Copy link

Bentore commented Jul 11, 2024

I'm trying to analyze a dummy/sample log file in my documents folder using GoAccess. However I keep running into this fatal error. I am also unsure where my monitor.html file is, do I have to create it?

This is my code:
goaccess "C:\\Users\\[REDACTED]\\Documents\\datasets\\access.log" -o "C:\\Program Files\\xampp\\htdocs\\monitor.html" --log-format=COMBINED --real-time-html

And this is the error I'm encountering:
Screenshot 2024-07-11 222943

I apologize if this is a common or uncommon error. Thank you in advance for your reponse!

@Bentore Bentore closed this as completed Jul 11, 2024
@Bentore Bentore reopened this Jul 11, 2024
@allinurl
Copy link
Owner

It seems that you are executing it using a user account that lacks access to the /tmp directory, where the pipe file needs to be placed. You might consider using the following options and specifying a path accessible to your current user.

--fifo-in=<path/file>
Creates a named pipe (FIFO) that reads from on the given path/file.

--fifo-out=<path/file>
Creates a named pipe (FIFO) that writes to the given path/file.

Alternatively, you may need to execute it as root or another user with sufficient permissions.

@0bi-w6n-K3nobi
Copy link
Contributor

0bi-w6n-K3nobi commented Sep 23, 2024

Hi @Bentore

Well, you is running GOAccessat W*nd0ws.
So, you need check if you user (at BASH shell) has permission to read and write files to run.

Can you try check this ? So ...

First; Where is GOAccess ' CONF ? Why it is not present ?
Second; Can read "C:\\Users\\[REDACTED]\\Documents\\datasets\\access.log" at BASH shell ?
For this, try less or cat FILENAME and see if it is possible or if it will be show error.
Third; Can create file at shell ? try touch FILENAME or some else (at shell) that create file in current directory.

Feel free for make a replica or for more asks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants