[GH-ISSUE #191] cannot access apache logs #157

Closed
opened 2026-02-26 05:31:29 +03:00 by kerem · 3 comments
Owner

Originally created by @phil123456 on GitHub (May 10, 2017).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/191

Hello,

I install it that way

sudo npm install -g log.io --user "myadminuser" --unsafe-perm
sudo log.io-server &
sudo nano /root/.log.io/harvester.conf
sudo log.io-harvester &

but as I run harvester :

log.io-harvester &
[3] 3510
$ error: File doesn't exist: '/var/log/apache2/access.log'
error: File doesn't exist: '/var/log/apache2/error.log'
fs.js:1445
    throw error;
    ^

Error: watch /var/log/syslog EACCES
    at exports._errnoException (util.js:1018:11)
    at FSWatcher.start (fs.js:1443:19)
    at Object.fs.watch (fs.js:1470:11)
    at LogStream._watchFile ....

but the file is there, so it got to be a permission issue

sudo ls /var/log/apache2/access.log
/var/log/apache2/access.log
Originally created by @phil123456 on GitHub (May 10, 2017). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/191 Hello, I install it that way ``` sudo npm install -g log.io --user "myadminuser" --unsafe-perm sudo log.io-server & sudo nano /root/.log.io/harvester.conf sudo log.io-harvester & ``` but as I run harvester : ``` log.io-harvester & [3] 3510 $ error: File doesn't exist: '/var/log/apache2/access.log' error: File doesn't exist: '/var/log/apache2/error.log' fs.js:1445 throw error; ^ Error: watch /var/log/syslog EACCES at exports._errnoException (util.js:1018:11) at FSWatcher.start (fs.js:1443:19) at Object.fs.watch (fs.js:1470:11) at LogStream._watchFile .... ``` but the file is there, so it got to be a permission issue ``` sudo ls /var/log/apache2/access.log /var/log/apache2/access.log ```
kerem closed this issue 2026-02-26 05:31:29 +03:00
Author
Owner

@phil123456 commented on GitHub (May 12, 2017):

anyone ?

<!-- gh-comment-id:300992431 --> @phil123456 commented on GitHub (May 12, 2017): anyone ?
Author
Owner

@phil123456 commented on GitHub (May 16, 2017):

please anyone ? this bug makes the application unusable on debian

<!-- gh-comment-id:301691426 --> @phil123456 commented on GitHub (May 16, 2017): please anyone ? this bug makes the application unusable on debian
Author
Owner

@msmathers commented on GitHub (Jan 12, 2020):

It's likely that the log.io-harvester process is being run by a user that doesn't have read permissions on /var/log/apache2/access.log. Do ls -al /var/log/apache2/ to see the permissions.

Also, the newly released v0.4.3 uses a different installation/bin method for running the harvester & server, follow the new installation instructions.

<!-- gh-comment-id:573440340 --> @msmathers commented on GitHub (Jan 12, 2020): It's likely that the `log.io-harvester` process is being run by a user that doesn't have read permissions on `/var/log/apache2/access.log`. Do `ls -al /var/log/apache2/` to see the permissions. Also, the newly released v0.4.3 uses a different installation/bin method for running the harvester & server, follow the new installation instructions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#157
No description provided.