VideoCache
Videocache is no longer in development.

Confused log files

by bellera on 3 Feb 2009

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

3 Answers

by Kulbir Saini on 3 Feb 2009

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!

by bellera on 3 Feb 2009

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

by Kulbir Saini on 3 Feb 2009

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!