Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem Emerging With A Proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pschroll
n00b
n00b


Joined: 09 Feb 2003
Posts: 2

PostPosted: Sun Feb 09, 2003 1:45 pm    Post subject: /etc/make.profile isn't available - HTTP/1.0 403 Forbidden Reply with quote

... an 'emerge sync' will probably fix this.
>>> Starting RSYNC
bad response from proxy - HTTP/1.0 403 Forbidden
bad response from proxy - HTTP/1.0 403 Forbidden
bad response from proxy - HTTP/1.0 403 Forbidden
bad response from proxy - HTTP/1.0 403 Forbidden
....
rsync : failed to connect to proxy.pandora.be: Succes
rsync error in socket IO (code 10 )at clientserver.c(97)

I'm using tyhe DNS of my Provider and am able to ping to www.kde.org
What can be wrong here ?
btw I'm behind a Smoothwall FW..

:(
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Sun Feb 09, 2003 1:52 pm    Post subject: Reply with quote

Well its quite simply what is written on the screen.

The machine cannot connect (or authenticate) with the proxy server.
Do you actually use a proxy? If so how did you configure your chroot system to use the proxy? If you dont use a proxy then comment out the proxy setting like in by unsetting the variables http_proxy, ftp_proxy and rsync_proxy
Back to top
View user's profile Send private message
pschroll
n00b
n00b


Joined: 09 Feb 2003
Posts: 2

PostPosted: Sun Feb 09, 2003 8:30 pm    Post subject: Reply with quote

I've set the variables http_proxy, ftp_proxy and rsync_proxy to :
proxy.pandpora.be:8080 because my provider uses a proxy server.

That's actually all I did concerning proxies ..?when I did env-update I got a message /etc/make.profile isn't available : an 'emerge sync ' will probably fix this .

Do I need to create or cope a make.profile ??
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Mon Feb 10, 2003 1:29 am    Post subject: Reply with quote

Contact your ISP and ask if they block Rsync servers, it would not be unheard of for certain ports to be blocked.

Also check that the variables are actually correct
Code:
echo $rsync_proxy
echo ....
Back to top
View user's profile Send private message
kinetik
n00b
n00b


Joined: 09 Feb 2003
Posts: 4
Location: Montreal, QC

PostPosted: Tue Feb 11, 2003 6:49 pm    Post subject: Proxy Reply with quote

check /etc/resolv.conf (nano -w /etc/resolv.conf) and make sure that primary and secondary DNS are the ones given by your ISP

something like:
nameserver 216.224.228.188
nameserver 216.224.228.189

do 'env' to see if you have the environment variables you exported previously (export http_proxy="proxy.pandpora.be:8080" , export ftp_proxy="$http_proxy" , export RSYNC_PROXY="$http_proxy") before chroot

if they're not there, do 'env-update'

try 'emerge sync' again

if it still doesn't work, log off completely from the root shell
Ctrl+D
Ctrl+D

you should see: cdimage login
log in as root
export variables again

'chroot /mnt/gentoo /bin/bash'

'env-update'

'emerge sync'

Ciao
Back to top
View user's profile Send private message
Saar
n00b
n00b


Joined: 22 Jul 2007
Posts: 21
Location: Edmonton, Canada

PostPosted: Mon Aug 20, 2007 8:51 pm    Post subject: [SOLVED] Problem Emerging With A Proxy Reply with quote

I'm having an issue attempting to get a Gentoo install able to emerge from work from behind a proxy server. For whatever reason, despite having the ftp_proxy (et all) environment variables set and having the equivalents in /etc/make.conf, emerge is still attempting to log into the proxy anonymously.

The format I'm using for the environment variables is:

Code:

# export ftp_proxy="ftp://username:password@proxy.server.com:8080"


And from /etc/make.conf:

Code:

FTP_PROXY="ftp://username.password@proxy.server.com:8080"


Output when I try to emerge using the above setup:

Code:

HTPC ~ # emerge app-misc/lirc
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-misc/lirc-0.8.2-r1 to /
>>> Downloading 'ftp://gentoo.arcticnetwork.ca/pub/gentoo/distfiles/lirc-0.8.2.tar.bz2'
--10:40:14--  ftp://gentoo.arcticnetwork.ca/pub/gentoo/distfiles/lirc-0.8.2.tar.bz2
           => '/usr/portage/distfiles/lirc-0.8.2.tar.bz2'
Resolving proxy.server.com... X.X.X.X
Connecting to proxy.server.com |X.X.X.X|:8080... connected.
Logging in as anonymous ...
Error in server response, closing control connection.
Retrying.


The "X.X.X.X" lines are obviously edited. The line with "Error in server response" only comes after it hangs at "Logging in as anonymous ..." for a little bit. I'm guessing the problem is that it's still trying to log in anonymously (the server requires auth) despite having the account information being provided both in the environment variable and the make.conf.

Any ideas?

EDIT: I'm getting the same "Logging in as anonymous" thing happening when using wget as well, so I can't work around it that way.
_________________
For every action, there is an equal and opposite criticism


Last edited by Saar on Mon Aug 27, 2007 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Saar
n00b
n00b


Joined: 22 Jul 2007
Posts: 21
Location: Edmonton, Canada

PostPosted: Mon Aug 20, 2007 8:59 pm    Post subject: Reply with quote

As an update: I'm able to properly access HTTP/FTP via Konqueror using exactly the same settings (I'm posting this using the machine in question), so I'm sure it's just some kind of configuration issue I'm not seeing or not thinking of. Any suggestions would be greatly appreciated.
_________________
For every action, there is an equal and opposite criticism
Back to top
View user's profile Send private message
dtoo
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 83

PostPosted: Tue Aug 21, 2007 8:03 am    Post subject: Reply with quote

One more place, you have to look for the proxy setting is /etc/wget/wgetrc.

For example,

Code:

....

http_proxy = http://username:password@proxy.server.com:8080/
ftp_proxy = http://username:password@proxy.server.com:8080/

...
Back to top
View user's profile Send private message
Saar
n00b
n00b


Joined: 22 Jul 2007
Posts: 21
Location: Edmonton, Canada

PostPosted: Mon Aug 27, 2007 9:28 pm    Post subject: Reply with quote

Yep, that fixed it. Changing title to solved.
_________________
For every action, there is an equal and opposite criticism
Back to top
View user's profile Send private message
qriff
n00b
n00b


Joined: 04 Dec 2003
Posts: 73

PostPosted: Sat Feb 16, 2008 3:56 pm    Post subject: Reply with quote

Actually the thing that fixes your problem is that you use a corrected ftp_proxy setting in /etc/wget/wgetrc

That is a http:// prefix

ftp_proxy = http://username:password@proxy.server.com:8080/

Setting this by export:ing or in make.conf resolves the problem proper, without any need for parallel configurations.

Code:

# export ftp_proxy="http://username:password@proxy.server.com:8080/"


This problem originates from the Gentoo Installation-manual, and wrecks havoc all over the forums, that specifies a ftp:// prefix for ftp_proxy. (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3 and others)

The problem is even more complex where people solving the problem forget that the selection between http and ftp depends on the clients selected mirrors in /etc/make.conf .

Regarding RSYNC I would like to thank Jens (jdn) for the proper solution http://forums.gentoo.org/viewtopic-p-75823.html#75823

But Gentoo forums is famous for being full of improper solutions that only shifts the problem instead of solving them.
Gentoo is one of the only distros that tend to have _one_ single proper and logical way to configure things, this should be noticed.
Back to top
View user's profile Send private message
qriff
n00b
n00b


Joined: 04 Dec 2003
Posts: 73

PostPosted: Sat Feb 16, 2008 4:10 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic-p-4867040.html#4867040
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum