Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Funny emerge sync error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Thu Jan 08, 2004 7:07 pm    Post subject: Funny emerge sync error Reply with quote

Hello everybody,

this is what I'm experiencing when using emerge sync:

Code:

bash-2.05b# emerge sync
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
>>> checking server timestamp ...
rsync: failed to connect to 131.254.254.10: Connection refused
rsync error: error in socket IO (code 10) at clientserver.c(88)
>>> retry ...


I edited /etc/make.conf and changed the list of mirrors. Even when I comment out the variable or enter just one different entry, emerge sync always tries to contact this IP, which can be pinged by the way.

I set retries to 10 and all 10 tries fail.

I succesfully used the webrsync option to get a new Portage tree and I updated one package successfully with "emerge -u world".

Maybe someone can point me what is wrong with my rsync? Is it me or "the other side"?

thanks,

Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jan 08, 2004 8:02 pm    Post subject: Reply with quote

Firewall and/or proxy in between you and the internet?
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Thu Jan 08, 2004 8:27 pm    Post subject: Hi there, Reply with quote

Think4UrS11 wrote:
Firewall and/or proxy in between you and the internet?


Yes, that's correct. But nothing has changed since my last succesful "emerge sync".

I have a forced ISP proxy for http connections and a transparent one running on my firewall machine.

When Portage gets a package to install it, doesn't it use rsync as well or is that wget running? Because installing a package works without any trouble.

In fact, I'm just running "emerge sync" now after a reboot with exactly the same /etc/make.conf and it works. Funny, isn't it?

It uses another server to mirror from though. When I last tried it wouldn't use anything else but this 131.x.x.x IP even after editing /etc/make.conf and running "env-update && source /etc/profile".

I guess the error has been on the other side, am I right?

cheers,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Jan 09, 2004 6:35 pm    Post subject: Reply with quote

have you set your

http_proxy
ftp_proxy
RSYNC_PROXY

correct?
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Fri Jan 09, 2004 7:32 pm    Post subject: Reply with quote

Think4UrS11 wrote:
have you set your

http_proxy
ftp_proxy
RSYNC_PROXY

correct?


Yes.

I experienced the same problem yesterday and today on a random basis. Sometimes it works and sometimes it doesn't work and the only things that seems to help is a reboot and a little bit of luck.

Since I don't change a thing at my setup and the problem "emerges" (what irony) at random I simply do not know what can be the cause or how to fix it.

regards,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
Nuwen
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 123

PostPosted: Fri Jan 09, 2004 8:56 pm    Post subject: Reply with quote

Sounds like a problem with your proxy to me. Normally, only http is used when installing packages, and only rsync for "emerge sync". I thought I remembered there being a way to update by downloading a tarball over http instead of updating through rsync, but I don't see it anywhere at the moment.
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Sat Jan 10, 2004 1:43 pm    Post subject: Random Pattern. Reply with quote

Nuwen wrote:
Sounds like a problem with your proxy to me. Normally, only http is used when installing packages, and only rsync for "emerge sync". I thought I remembered there being a way to update by downloading a tarball over http instead of updating through rsync, but I don't see it anywhere at the moment.


It can't be a problem with my proxy or my proxy settings since the problem "emerges" at random. Sometimes it works, sometimes it doesn't. I am unable to reproduce or prevent this problem at will. It has to be something else.

Maybe the mirrors Portage tries to connect to with rsync are using a different rsync version and this explains the connection error?

Code:

rsync: failed to connect to 131.254.254.10: Connection refused
rsync error: error in socket IO (code 10) at clientserver.c(88)


What's that code 10 error anyway? And why do I have an error in socket IO?

This happens only with specific mirrors, I guess.

regards,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
Nuwen
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 123

PostPosted: Sat Jan 10, 2004 2:40 pm    Post subject: Re: Random Pattern. Reply with quote

TobiWan wrote:

It can't be a problem with my proxy or my proxy settings since the problem "emerges" at random. Sometimes it works, sometimes it doesn't. I am unable to reproduce or prevent this problem at will. It has to be something else.


I was thinking your rsync proxy was out of your control and maybe your ISP was messing with firewall rules or something. What is 131.254.254.10 in your network? I was assuming that was your rsync proxy, but is it something else?

That error message is exactly what I get if I set RSYNC_PROXY to 127.0.0.1:873 (except for the IP address), so a proxy problem seems like the most likely explanation. One way or another, rsync is trying to connect to that IP directly.

Maybe it's possible for rsync to use only tcp sometimes, and sometimes require udp? Otherwise, I don't see how this could be specific to certain rsync servers.
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Sat Jan 10, 2004 3:01 pm    Post subject: Re: Random Pattern. Reply with quote

Nuwen wrote:

I was thinking your rsync proxy was out of your control and maybe your ISP was messing with firewall rules or something. What is 131.254.254.10 in your network? I was assuming that was your rsync proxy, but is it something else?


131.254.254.10 is some machine in an university network in Europe. This is certainly not a machine in my ISP network or my home network. I guess it is the mirror portage wants to connect to.

Quote:

That error message is exactly what I get if I set RSYNC_PROXY to 127.0.0.1:873 (except for the IP address), so a proxy problem seems like the most likely explanation. One way or another, rsync is trying to connect to that IP directly.


Well, then I fail to see why it succeeds with other mirrors when I try again some time later without changing a thing. This random pattern has been going on for the last two days. No ISP should take that long to fix or change something. Besides, their website usually announces working periods but it didn't annouce anything lately.

Quote:

Maybe it's possible for rsync to use only tcp sometimes, and sometimes require udp? Otherwise, I don't see how this could be specific to certain rsync servers.


I don't understand it either. It's not a critical error since I usually suceed after a few tries and some time in between and using the websync option is no problem either. But it is still a very funny problem.

Is there somebody else from Belgium, connected by Telenet, who experiences the same problems?

This is my GENTOO_MIRRORS in /etc/make.conf:

Code:

GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ rsync://rsync.gentoo.skynet.be/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ rsync://ftp.belnet.be/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://www.fhh.opensource-mirror.de/gentoo.org/ ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/ rsync://rsync.fhh.opensource-mirror.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"


Maybe somebody can use this and return to this thread if he experiences the same problems.

cheers,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
isolti
n00b
n00b


Joined: 29 Apr 2003
Posts: 10

PostPosted: Tue Jan 13, 2004 4:00 pm    Post subject: emerge sync fails Reply with quote

with same error here.
This is new install but I do not understand what is going on. emerge sync worked when started installation. "emerge packagename" works OK.
Never saw this problem before and I am using Gentoo for almost a year now.
I am in the US.
Imre
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Tue Jan 13, 2004 4:11 pm    Post subject: Re: emerge sync fails Reply with quote

isolti wrote:
with same error here.
This is new install but I do not understand what is going on. emerge sync worked when started installation. "emerge packagename" works OK.
Never saw this problem before and I am using Gentoo for almost a year now.
I am in the US.
Imre


It may be you are just suffering from this:

https://forums.gentoo.org/viewtopic.php?t=123981

Try again in several hours when the main tree is back online.

cheers,
Tobias
_________________
Killing for peace is like fucking for virginity.
Back to top
View user's profile Send private message
isolti
n00b
n00b


Joined: 29 Apr 2003
Posts: 10

PostPosted: Tue Jan 13, 2004 6:13 pm    Post subject: Re: emerge sync fails Reply with quote

Thanks. Meantime I realised this could be the problem because tested an old (known good) Gentoo install on other machine and popped the same error. After that I saw the message on the Gentoo home page as well.
Imre
Back to top
View user's profile Send private message
dkaplowitz
Guru
Guru


Joined: 22 Nov 2003
Posts: 596
Location: Philadelphia, PA

PostPosted: Tue Jan 13, 2004 8:18 pm    Post subject: Re: emerge sync fails Reply with quote

TobiWan wrote:
isolti wrote:
with same error here.
This is new install but I do not understand what is going on. emerge sync worked when started installation. "emerge packagename" works OK.
Never saw this problem before and I am using Gentoo for almost a year now.
I am in the US.
Imre


It may be you are just suffering from this:

https://forums.gentoo.org/viewtopic.php?t=123981

Try again in several hours when the main tree is back online.

cheers,
Tobias


Thanks for the info. This always happens when I'm trying to install a new box and am kind of working in the dark. *sigh* O well...I guess I can finish it tomorrow.
_________________
http://dkap.info
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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