goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)

Open masterwishx opened this issue 2 years ago • 8 comments

im using Unraid Docker and NginxProxyManager and having this error :

nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)

also dont know what path should be for /opt/log ? is /mnt/user/appdata/NginxProxyManager/log/ the right path ?

masterwishx avatar Dec 08 '21 00:12 masterwishx

Not sure I understand, is this a goaccess issue? are you reading an access log?

allinurl avatar Dec 08 '21 01:12 allinurl

Not sure I understand, is this a goaccess issue? are you reading an access log? Yes image image what exacly access.log should i read ? NginxProxyManager ? im not shure what path should be for /opt/log ? the path is my proxy log ? (/mnt/user/appdata/NginxProxyManager/log) or somethink else ?

masterwishx avatar Dec 08 '21 09:12 masterwishx

Not sure I understand, is this a goaccess issue? are you reading an access log?

Yes i have mounted log of NginxProxyManager to Goaccess and now i have some time error ... image tryed #log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R" log_format [%d:%t %^] %^ %^ %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] [Sent-to %^] "%u" "%R" #log-format [%d:%t %^] %^ %s %^ %^ %m %^ %v "%U" [%^ %h] [%^ %b] %^"%u" "%R"

masterwishx avatar Dec 08 '21 15:12 masterwishx

[08/Dec/2021:16:19:21 +0200] - 200 200 - GET https mysite.com "/" [Client 172.70.162.210] [Length 529] [Gzip 2.12] [Sent-to 192.168.0.199] "Uptime-Kuma/1.11.0" "-"

this is my line in proxy-host-10_error.log

masterwishx avatar Dec 08 '21 17:12 masterwishx

image

this is last error print

masterwishx avatar Dec 08 '21 17:12 masterwishx

for this line : log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R"

masterwishx avatar Dec 08 '21 17:12 masterwishx

Please try:

goaccess access.log --log-format='[%d:%t %^] %^ %s %^ %^ %m %^ %v "%U" [%^ %h] [%^ %b] %^"%u" "%R"' --date-format=%d/%b/%Y --time-format=%T

allinurl avatar Dec 08 '21 23:12 allinurl

I fixed the problem of tockens by other ways but still having some nginx error of error log but all working. but most important founded that im using unraid template : gregyankovoy/goaccess and its old version 1.4 so i will try to switch to this repo. Thanks

masterwishx avatar Dec 09 '21 08:12 masterwishx