You are hereForums / Support / DOWNLOAD_ERR in Ubuntu

DOWNLOAD_ERR in Ubuntu


18 replies [Last post]
Anonymous
DOWNLOAD_ERR in Ubuntu
Printer-friendly versionSend to friend

Hi, I'm trying to install videocache-1.6 in Ubuntu 7.10 with squid-2.6.14 and python-2.5 . I had no trouble in installing the package. I have changed appropriate username and apache conf.d directory both in setup.py and videocache.conf . As instructed in readme, I also appended video cache config in squid.conf at the last line.

I can browse the empty directory via browser also [http://cache-address/videocache/]. But in log file I'm getting, DOWNLOAD_ERR with below messages. In tmp file of videocache, I see lots of flv files with 0 bytes. What might be the issue?

log file
--------
2008-12-05 23:54:40,825 INFO 116.90.238.9 3cd9f0afe14116df SCHEDULED YOUTUBE Video scheduled for download.
2008-12-05 23:54:43,846 INFO 116.90.238.9 3cd9f0afe14116df DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.
2008-12-05 23:55:18,972 INFO 116.90.238.9 - REQUEST - http://v12.cache.googlevideo.com/videoplayback?id=3abbff1761d5e209&itag=...
2008-12-05 23:55:18,974 INFO 116.90.238.9 3abbff1761d5e209 URL_HIT YOUTUBE http://v12.cache.googlevideo.com/videoplayback?id=3abbff1761d5e209&itag=...
2008-12-05 23:55:18,974 INFO 116.90.238.9 3abbff1761d5e209 CACHE_MISS YOUTUBE Requested video was not found in cache.
2008-12-05 23:55:18,976 INFO 116.90.238.9 3abbff1761d5e209 NEW_URL YOUTUBE http://v12.cache.googlevideo.com/videoplayback?id=3abbff1761d5e209&itag=...
2008-12-05 23:55:19,935 INFO 116.90.238.9 3abbff1761d5e209 SCHEDULED YOUTUBE Video scheduled for download.
2008-12-05 23:55:22,955 INFO 116.90.238.9 3abbff1761d5e209 DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

With Regards
Nabin Limbu

admin's picture
Online
Joined: Nov 2 2008

Hi!

Are you sure you changed proxy and cache_host options in /etc/videocache.conf file? The second check should be that if you have allowed your proxy machine to access itself as a proxy in the squid acls?

Please check if your videocache works after correcting the above things. If it doesn't, please reply back with your /etc/videocache.conf pasted somewhere like pastebin.

Thanks for considering videocache :)

Beny (not verified)

HI there I need help about this problem. I have problem similar as described here.
I have the same problem on Ubuntu server 8.04. I can install all the files needed but it is not working, videocache does not cache videos at all.
I have changed proxy and cache_host options in /etc/videocache.conf file.

I followed instructions in the page about needed packages, than installed them as described but it is not working at all.
I am confusing, about it I tried to install it for many many
times even I reinstalled my complet server.

admin's picture
Online
Joined: Nov 2 2008

Hi Beny,

Can you please paste your /etc/videocache.conf and /var/log/videocache/videocache.log file on pastebin? Also please check your /var/log/squid/cache.log for any python tracebacks.

Thanks for considering videocache :)

Nabin Limbu (not verified)

Hi,

Pls find my /etc/videocache.conf :

http://nabinlimbu.pastebin.com/d5e2f21dd

I have allowed http_access for local server including my network also. I have reconfirmed in squid.conf .

- Permission for /var/spool/videocache is also assigned to "proxy" user

http://nabinlimbu.pastebin.com/m6a5cafd9

- apparmor and iptables both are stopped.

- I can browse empty directories via http://cache4.himaltech.com/videocache/

- Appended lines in squid.conf are :
http://nabinlimbu.pastebin.com/m5e8e3d0c

- I have reloaded both squid and apache2 service.

But, I still get same error log saying DOWNLOAD_ERR in log file.

2008-12-08 18:16:28,059 INFO 79.88.4.191 - REQUEST - http://v15.cache.googlevideo.com/get_video?origin=ash-v51.ash.youtube.co...
2008-12-08 18:16:30,143 INFO 79.88.4.191 - REQUEST - http://v15.cache.googlevideo.com/get_video?origin=ash-v51.ash.youtube.co...
2008-12-08 18:16:30,305 INFO 79.88.4.191 aZp2jAdBu1o SCHEDULED YOUTUBE Video scheduled for download.
2008-12-08 18:16:32,355 INFO 79.88.4.68 - REQUEST - http://chi-v93.chi.youtube.com/get_video?video_id=KveywYdCOvM&ip=202.51....
2008-12-08 18:16:33,328 INFO 79.88.4.68 KveywYdCOvM SCHEDULED YOUTUBE Video scheduled for download.
2008-12-08 18:16:33,337 INFO 79.88.4.191 aZp2jAdBu1o DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.
2008-12-08 18:16:36,374 INFO 79.88.4.68 KveywYdCOvM DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

Hoping for your kind support.

admin's picture
Online
Joined: Nov 2 2008

All your files look absolutely fine. Can you please contact using contact tab at the top so that we can figure out the exact problem?

waQ (not verified)

I have similar problem "DOWNLOAD_ERR YOUTUBE" but i was pretty sure the problem is about SELinux. i keep getting avc denials each time i played a video on youtube. i tried disabled the SELinux, and videocache works just fine. the problem is i don't know how to configure SELinux. any help please...

admin's picture
Online
Joined: Nov 2 2008

You are right. SELinux should be turned off for videocache to work. To permanently disable SELinux either add

setenforce 0

to your /etc/rc.local file or just disable it from GUI. Thanks for sharing the trick :)

waQ (not verified)

hi. thanks for reply.
turning off SELinux might be bad option.
my way is to create a policy which allow denied permission using audit2allow.
further explanation can be found in man pages of audit2allow or http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385

i think mine is a success. for reference, this is content of my local.te
http://pastebin.com/m4dfb7f57

thanks :)

admin's picture
Online
Joined: Nov 2 2008

Hi waQ,

Thanks for the wonderful insight. I'll post about it in the main section soon :)

joseph (not verified)

i am getting this in squid/cache.log

008/12/21 16:48:47| WARNING: url_rewriter #1 (FD 7) exited
Exception in thread Thread-3:
Traceback (most recent call last):
File "threading.py", line 442, in __bootstrap
self.run()
File "/usr/share/videocache/videocache.py", line 792, in run
squid_part()
File "/usr/share/videocache/videocache.py", line 529, in squid_part
videos = video_id_pool.get()
File "xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "xmlrpclib.py", line 1129, in request
self.send_content(h, request_body)
File "xmlrpclib.py", line 1243, in send_content
connection.endheaders()
File "httplib.py", line 798, in endheaders
self._send_output()
File "httplib.py", line 679, in _send_output
self.send(msg)
File "httplib.py", line 646, in send
self.connect()
File "httplib.py", line 630, in connect
raise socket.error, msg
error: (111, 'Connection refused')

admin's picture
Online
Joined: Nov 2 2008

Hello Joseph,

Can you please try replacing your /usr/share/videocache/videocache.py file with the videocache.py python file from here? And then restart squid service.

Thanks for considering videocache :)

Axel (not verified)

Hi,

thank you for the download link. This seems to solute the first problem which has been pasted above.

But with the newer videocache.py I'm running into some other trouble.

2008/12/28 20:25:07| WARNING: url_rewriter #7 (FD 13) exited
2008/12/28 20:25:07| WARNING: url_rewriter #6 (FD 12) exited
2008/12/28 20:25:09| WARNING: url_rewriter #5 (FD 11) exited
2008/12/28 20:25:09| WARNING: url_rewriter #3 (FD 9) exited
2008/12/28 20:25:10| WARNING: url_rewriter #8 (FD 14) exited
2008/12/28 20:25:10| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!

Normally the first video-cache after a squid restart is successful but afterwards there only the WARNING in the log and furthermore only the FATAL.

Thank you for you efforts and you nice application!

Happy New Year!

Axel

admin's picture
Online
Joined: Nov 2 2008

Hi Axel,

Check for the following things

1. SELinux - Enforcing selinux may lead to videocache misbehavior.
2. IPTables - Make sure iptables are configured to allow port 9100 so that XMLRPC Server can be used.

Happy New Year and Happy Holidays :)

Jamie Orzechowski (not verified)

I have Ubuntu and the same issue

I get the following

2009-01-27 16:29:35,757 2989 66.78.98.25 6568a058e075207a SCHEDULED YOUTUBE Video scheduled for download.
2009-01-27 16:29:35,764 20222 66.78.98.25 6568a058e075207a DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

I can browse to my webserver /videocache

Permissions are set correctly for proxy.proxy on my videocache directories

any ideas??

admin's picture
Online
Joined: Nov 2 2008

Hi Jamie,

1. Please check permissions of /var/spool/videocache and its subdirectories.
2. Please check that your squid acls allow your proxy server to access internet via itself.

Thank You!

Anonymous (not verified)

hey admin, i cant register to your site
just trying this if i can post to even without registering

admin's picture
Online
Joined: Nov 2 2008

Hi!

I am sorry. Sendmail stopped working and no mails were sent. Can you please try registering now.

Thank You!

Anonymous (not verified)

seems like you dont have the prpoer file/folder permission assigned..

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.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

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

Buy Now

Videocache Bundle (RPM and tar archive) is available for just $39.99. Secure your copy now by clicking the button below.
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 2 users and 112 guests online.