When I try to wget something, I get:

Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:3128... connected.
Proxy request sent, awaiting response...

And then it just sits there. I don't want it to go through the proxy; I just want it to download normally. How do I turn this off?

Thanks,

Michelle

Comments

michelle’s picture

Status: Active » Fixed

Got help on IRC. For anyone else having this trouble, use wget --no-proxy

Michelle

MichaelCole’s picture

Hi, for several reasons, drush make should do it's own caching, but it doesn't. Squid is an alternative.

You should be able to remove it by editing /etc/environment and removing the http_proxy line at the bottom. 3128 is the port of the proxy server.

Below is the bash that sets it up.

# ################################################################################ Squid caching of ftp.drupal.org

cd ~
sudo apt-get update

# Install caching proxy server
sudo apt-get -y install squid3

echo "http_proxy=\"http://localhost:3128\"" | sudo tee -a /etc/environment > /dev/null

echo "
# fix for git 417 errors
ignore_expect_100 on

# Quickstart
acl drushservers dstdomain ftp.drupal.org
cache allow drushservers
cache deny all

# don't wait to finish requests before shutting down. Do it now!
shutdown_lifetime 0 seconds
" | sudo tee -a /etc/squid3/squid.conf

echo "*** REBOOT TO TAKE EFFECT ***"

michelle’s picture

Thanks, but what I posted in #1 did the trick for me. I think the problem was that I was using wget but not with ftp.drupal.org and it didn't know what to do. Being able to bypass it let me get the file I needed off my server.

Michelle

MichaelCole’s picture

Hmmmm.... Do you mind sharing the command? It would be a bug if wget didn't work.

I was able to get this to work on my version:

wget http://joomlacode.org/gf/download/frsrelease/14659/64120/Joomla_1.6.3-St...

Cheers,

Mike

michelle’s picture

wget http://shellmultimedia.com/DIR/FILE.zip

I'd rather not get more specific than that as it's a bit of security thru obscurity. ;) Nothing critical stored there but would rather not have the public poking at it.

Michelle

MichaelCole’s picture

This is what I got Michelle. Looks like it's working on version 1.0...

quickstart@qs10:~$ wget http://shellmultimedia.com/DIR/FILE.zip
--2011-06-20 11:15:16-- http://shellmultimedia.com/DIR/FILE.zip
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:3128... connected.
Proxy request sent, awaiting response... 404 Not Found
2011-06-20 11:15:17 ERROR 404: Not Found.

michelle’s picture

For me it just sat there at awaiting response for about 5 minutes before I gave up and hit ctrl-c. I tried again, same result. That's when I started trying to figure out how to turn off the proxy. When I added the bypass command, it connected and got it with no problems.

Michelle

wizonesolutions’s picture

Status: Fixed » Active

I just got the same thing for http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-1.1.35.tar.gz. Is this by design?

wizonesolutions’s picture

This is breaking drush dl at the moment for me as well. Hrm. I'm just gonna turn it off. Is there documentation somewhere about why it's in there and what I lose by disabling it?

MichaelCole’s picture

Status: Active » Fixed

See comment #2 to turn it off.
Drush is baking it's own caching system, so this will be deprecated in future versions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

derekwebb1’s picture

#2 just helped me get drush and wget working again after a botched squid install! Thanks a ton!

seismicmike’s picture

quickstart@qs10:~$ export http_proxy=

Fixes both wget and drush.

patcon’s picture

Just a heads up for anyone who comes across this in the googles :)
http://drupal.org/node/1473006#comment-5881814