Log files missing

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
voessli
Forum User
Forum User
Posts: 11
Joined: Tue Nov 22, 2005 9:22 am

Log files missing

Unread post by voessli »

Hi all

i deleted my log to have some more space, well no new logs are written now, the folder is empty..
I switched PLESK Logmanager off and on, that did not help.
What could be the reason?

(Apache 2.0, Plesk 7.5)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

The short answer is because you zapped the inode that syslog was using to spew data to the disk. Restart syslog, that should do it. For future reference to avoid this, rather than deleting the file, copy /dev/null to it.
voessli
Forum User
Forum User
Posts: 11
Joined: Tue Nov 22, 2005 9:22 am

Unread post by voessli »

Thanks very much!
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Unread post by Snapdragon »

Good tip Scott.
voessli
Forum User
Forum User
Posts: 11
Joined: Tue Nov 22, 2005 9:22 am

Unread post by voessli »

The syslog daemon is running but on status request i get following messge:
klogd is stopped

I used touch .../statistics/logs/access.log which recovered the access.log but it remains 0 Byte.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

access_log's are created by apache, touching the file will not reassociate an inode with the running process. When it starts it looks at the existing file and reads its inode number, when you delete it, and touch the new file it creates it with a new inode number, which the running process knows nothing about. Restarting the process will resolve the problem.

If klogd will not start on your system, that can be indicative of deeper problem, possibly that the system has been compromised. Use ps to look, never trust the init scripts to tell you the true status of a process.
Post Reply