You are hereForums / Support / Access Denied

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 :-)

Access Denied


8 replies [Last post]
Anonymous
Access Denied
Printer-friendly versionSend to friend

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://youtube.com/

The following error was encountered:

* Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

It appears to be an ACL problem
How do I allow the following range through Squid
10.1.128.1-10.1.131.254

josgan (not verified)

Ok I've changed the "all" ACL to 10.1.128.0 with a subnet of 255.255.252.0

Squid/cache.log
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')

/squid/access.log
1226949325.143 118 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - DIRECT/208.65.153.251 text/html
1226949582.955 1 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226949583.906 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226949584.640 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226949586.025 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226950307.556 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226950377.922 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226950379.488 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226950380.505 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html
1226950381.345 0 10.1.130.133 TCP_DENIED/403 1442 GET http://youtube.com/ - NONE/- text/html

admin's picture
Offline
Joined: Nov 2 2008

Add the following acl to squid.conf.

acl my_machines src 10.1.128.1-10.1.131.254
http_access allow my_machines

Don't change the "all" acl. No one will be able to access anything. Revert back the all acl and add the above two lines in squid.conf . For more information check How to configure squid proxy server?

josgan (not verified)

Ok, the squid is working now, but youtube cache isn't working.

The last line in my youtube_cache.log
2008-11-17 13:14:31,492 INFO - - SCHEDULEDER - Download Scheduler starting.
I've been to youtube 5 times for the same video now.

josgan (not verified)

Now I'm getting an error parsing URL's

2008-11-17 13:37:30,035 INFO 10.1.129.62 - NEW_URL YOUTUBE Error in parsing the url http://v22.cache.googlevideo.com/get_video?origin=chi-v149.chi.youtube.c...

admin's picture
Offline
Joined: Nov 2 2008

Which version of youtube cache are you using? Because I am not getting any errors with version 1.4 while browsing the link you pasted above. And youtube cache is caching that url.

head (not verified)

hi,i have error with youtube_Cache.
use centos 5.2
youtube_Cache 1.5
already config youtube and httpd.squid 2.6

2008-11-20 18:05:57,984 INFO 10.0.0.104 - NEW_URL YOUTUBE Error in parsing the url http://www.youtube.com/get_video?video_id=FXY-HZy3Olg&t=OEgsToPDskLlUhHQ...
2008-11-20 18:06:00,494 INFO 10.0.0.104 - REQUEST - http://lax-v254.lax.youtube.com/get_video?video_id=FXY-HZy3Olg&ip=190.23...
2008-11-20 18:06:00,495 INFO 10.0.0.104 - NEW_URL YOUTUBE Error in parsing the url http://lax-v254.lax.youtube.com/get_video?video_id=FXY-HZy3Olg&ip=190.23...
2008-11-20 18:06:04,729 INFO 10.0.0.204 - REQUEST - http://www.youtube.com/get_video?video_id=CI6QZc4w23Y&t=OEgsToPDskJPU8No...
2008-11-20 18:06:04,730 INFO 10.0.0.204 - NEW_URL YOUTUBE Error in parsing the url http://www.youtube.com/get_video?video_id=CI6QZc4w23Y&t=OEgsToPDskJPU8No...
2008-11-20 18:06:07,653 INFO 10.0.0.204 - REQUEST - http://nyc-v145.nyc.youtube.com/get_video?video_id=CI6QZc4w23Y&ip=190.23...
2008-11-20 18:06:07,654 INFO 10.0.0.204 - NEW_URL YOUTUBE Error in parsing the url http://nyc-v145.nyc.youtube.com/get_video?video_id=CI6QZc4w23Y&ip=190.23...

admin's picture
Offline
Joined: Nov 2 2008

Please don't paste your config files in forum, it becomes difficult to read the posts. Use pastebin service.

Most probably your XMLRPC Server is not running or it has exited abnormally. Can you give me the output of command

[root@localhost ~]# netstat -atpn |grep python [ENTER]

If no app is listening on port 9100, then check /var/log/squid/cache.log for any error related to python tracebacks. Get back with whatever result you get.

head (not verified)

hi.

[root@ns ~]# netstat -atpn |grep python
[root@ns ~]# netstat -atpn |grep python
[root@ns ~]#

[root@ns ~]# tail -f /var/log/squid/cache.log
2008/11/25 19:57:15| parseHttpRequest: Unsupported method '�k%����v��KR��|���[�jE
��{�'
2008/11/25 19:57:15| clientReadRequest: FD 48 (10.0.0.154:2582) Invalid Request
2008/11/25 20:01:45| parseHttpRequest: Unsupported method 'recipientid=113&sessionid=2726
'
2008/11/25 20:01:45| clientReadRequest: FD 121 (10.0.0.155:1394) Invalid Request
2008/11/25 20:01:45| parseHttpRequest: Unsupported method 'recipientid=113&sessionid=2726
'
2008/11/25 20:01:45| clientReadRequest: FD 31 (10.0.0.155:1396) Invalid Request
2008/11/25 20:06:54| httpReadReply: Excess data from "GET http://www.cbox.ws/box/jsv4_1.php?r=10"
2008/11/25 21:25:04| httpReadReply: Excess data from "GET http://www.cbox.ws/box/jsv4_1.php?r=10"
2008/11/25 21:28:48| httpReadReply: Excess data from "GET http://www.cbox.ws/box/jsv4_1.php?r=10"

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 1 user and 113 guests online.