You are hereForums / Support / vccleaner ... something strange

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

vccleaner ... something strange


8 replies [Last post]
sirkike's picture
Offline
Joined: Feb 6 2009
vccleaner ... something strange
Printer-friendly versionSend to friend

i set the video_lifetime 60 and enable_videocache_cleaner 1 ... the videocache are installed over 60 or 50 days... when i run vccleaner i get some lines like this in vccleaner.log

2009-02-12 19:00:00,114 INFO DELETE /cache/video_cache/wrzuta/enLLB2Zojf.flv Older than 115 day(s) was deleted.
2009-02-12 19:00:00,123 INFO DELETE /cache/video_cache/wrzuta/vWArJs7DWG.flv Older than 445 day(s) was deleted.
2009-02-12 19:00:00,130 INFO DELETE /cache/video_cache/wrzuta/k9IhDQBYNn.flv Older than 99 day(s) was deleted.
2009-02-12 19:00:00,138 INFO DELETE /cache/video_cache/wrzuta/8t92CpkDmc.flv Older than 342 day(s) was deleted.
2009-02-12 19:00:00,148 INFO DELETE /cache/video_cache/wrzuta/kOvBybDqZI.flv Older than 384 day(s) was deleted.
2009-02-12 19:00:00,163 INFO DELETE /cache/video_cache/wrzuta/eS30RgwVTr.flv Older than 590 day(s) was deleted.
2009-02-12 19:00:00,192 INFO DELETE /cache/video_cache/wrzuta/cSLQ477j3c.flv Older than 410 day(s) was deleted.
2009-02-12 19:00:00,195 INFO DELETE /cache/video_cache/wrzuta/mtPnd9AX8y.flv Older than 208 day(s) was deleted.
2009-02-12 19:00:00,201 INFO DELETE /cache/video_cache/wrzuta/cTKBDiX8rl.flv Older than 210 day(s) was deleted.
2009-02-12 19:00:00,207 INFO DELETE /cache/video_cache/wrzuta/kjKFbpsEV8.flv Older than 319 day(s) was deleted.
2009-02-12 19:00:00,213 INFO DELETE /cache/video_cache/wrzuta/oEywL9TYL0.flv Older than 394 day(s) was deleted.

that is imposible.. 394 days? 210 days? more than installation date of cachevideos? i don't understand. sorry. :S

Offline
Joined: Feb 6 2009

it happened to me when i was testing my script... i think its returning when the videos was uploaded.

sirkike's picture
Offline
Joined: Feb 6 2009

yes, but almost videos have the date there was uploaded and not when was downloaded to cache.

admin's picture
Offline
Joined: Nov 2 2008

Sirkike, Kimble,

We are here depending on last modified time of the videos. The reason this script is not yet automatically used is the strange behavior of last modified time-stamp. But it wont happen with the video that are cached now onwards because videocache will take care of the time-stamps and will change them every-time a video was accessed.

Thank you for reporting that error.

Offline
Joined: Feb 6 2009

the newly downloaded files doesn't have to be 'touched' with os.utime() too?

i've just tested here and the video have the same mtime that the upload time in youtube.

Bye.

admin's picture
Offline
Joined: Nov 2 2008

Kimble,

I already added that line in development tree. Here is a patch,

diff --git a/videocache/videocache.py b/videocache/videocache.py
index ad87424..752aa95 100755
--- a/videocache/videocache.py
+++ b/videocache/videocache.py
@@ -399,6 +399,7 @@ def download_from_source(args):
         size = os.stat(file)[6]
         os.rename(file, path)
         os.chmod(path, mode)
+        os.utime(path, None)
         remove(video_id)
         log(format%(pid, client, video_id, 'DOWNLOAD', type, str(size) + ' Video was downloaded and cached.'))
     except:

Apply that and you are safe. It'll take some time before cleanup script really gets stable. Thanks for your inputs :)

Anonymous (not verified)

how to apply that patch
iam using ver 1.9.1

admin's picture
Offline
Joined: Nov 2 2008

Anon,

If you are using 1.9.1 there is no need to apply that patch.

Thank You!

Anonymous (not verified)

thank you kulbir...iam from indonesia

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 101 guests online.