Empty Error Log files and Awstats

Tpark

Verified User
Joined
Nov 2, 2018
Messages
35
Hi

My server (Cloudlinux with Cagefs, Directadmin, Litespeed) stopped collecting errors and all error logs in "Site Summary / Statistics / Logs" are empty for all users.

Also i've noticed Awstats stopped collecting stats from March 2019.

I've tried everything in DA forum and also google about correcting permissions, rebuilds, ... but didn't worked for me.
Could you please help me for solve this annoying problem?
Thanks in advance
---
FIX: Read Solution in post #7
 
Last edited:
Anyone?
this is so important because i can't see any errors for debugging.
 
yes, it's enabled.

it was working till march and i did not change anything in server.
just regular updates in custombuild plugin and os.
 
Anyone?
this is so important because i can't see any errors for debugging.


https://help.directadmin.com/item.php?id=11
So when you ssh and look in these locations or their rotated areas the files are empty or deleted? These are the logs you mean? Is it all the logs on the Server or only certain ones? if not can you give a specific example.


Did you look here. seems simular
https://sourceforge.net/p/awstats/discussion/43428/thread/4545e612d0/
https://sourceforge.net/p/awstats/discussion/43428/thread/fcf0df6c42/
https://sourceforge.net/p/awstats/discussion/43428/thread/762a7e123e/
 
https://help.directadmin.com/item.php?id=11
So when you ssh and look in these locations or their rotated areas the files are empty or deleted? These are the logs you mean? Is it all the logs on the Server or only certain ones? if not can you give a specific example.
all files in:
Apache:
/var/log/httpd/domains/domain.com.error.log
/var/log/httpd/domains/domain.com.log
are empty (0 kb).
this is permissions of "/var/log/httpd/domains/":
drwx--x---. 2 root nobody 73728 Jul 23 01:21 .
drwx--x---. 3 apache apache 4096 Jul 23 00:10 ..
-rw-r--r-- 1 apache mydomain 0 Jul 23 00:31 mydomain.com.log

and about awstats,
when i've set "AllowToUpdateStatsFromBrowser=1" in "home/websitecom/domains/website.com/awstats/.data/awstats.website.com.conf" and try to update awstates from browser i've got error:
"Error: Couldn't open server log file "/var/log/user_logs/websitecom/website.com.log" : No such file or directory"
the path "/var/log/user_logs/" is empty.

regards
 
Finally, here is the fix:

Regarding to empty apache error logs:
permissions and ownerships was ok but i've tried reseting ownership of "/var/log/httpd/domains" to "apache:apache" and magically logs starts collecting again.

Regarding to Awstats:
After i fixed the ownership of apache error and access logs, i've deactivated and completely uninstalled awstats then reinstall it with custombuild.

In finall stage i've "Remove Public Stats" then "make statistics publicly viewable" again in users "Site Summary / Statistics / Logs" and now everything seems working fine.

Thank you all
 
Back
Top