You are hereForums / Bugs / Confused log files

Videocache 2.1 is here :-) Check changelog for changes and new features in this version. Contact Us for your free upgrade!!

Confused log files


4 posts / 0 new
Last post
Offline
Joined: Dec 18 2008
Confused log files

Hello!

I rebooted my machine at 12:49 and now I see:

-rw-r----- 1 squid squid 0 3 feb 12:52 videocache.log
-rw-r----- 1 squid squid 23868682 3 feb 12:58 videocache.log.1
-rw-r----- 1 squid squid 1130957245 3 feb 12:49 videocache.log.2

videocache rotated the logs but it is writting to videocache.log.1

Using version 1.7.

Regards,

Josep Pujadas

admin's picture
Offline
Joined: Nov 2 2008

Hey Josep,

I double checked the program. I couldn't really figure out a problem place. Did it happen once or it is always trying to write to videocache.log.1 ?

Thank You!

Offline
Joined: Dec 18 2008

Kulbir,

In fact yesterday had the same problem. But I did'nt see up today.

Yesterday I rebooted the machine and videocache was writing the logs to videocache.log.1 (today's videocache.log.2). You can see this with the date&hour of the log files.

I saw this sometimes, when a process it is not closed and there is an access to the file. It is possible to change the filename but the process continues writting to the file (with the new filename) instead than using a new file.

For example, I use rotate command to rotate the logs of my apache servers. After rotating it is necessary to restart the apache daemon. If not, the logs go to the rotated files, not to the new log files.

But I rebooted the machine ... I don't understand.

Perhaps you rotate when videocache is yet working and has writed to the log file?

Regards,

Josep Pujadas

admin's picture
Offline
Joined: Nov 2 2008

Hi Josep,

I got your point. And figured out what is going wrong :) Thanks for the analogy. Will be fixed in next version.

Thank You!

My Book on Squid

Purchase/Renew

Go to Pricing page to purchase a new license or renew your existing license.

Recent comments

Who's online

There are currently 2 users and 115 guests online.