Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to run emerge --sync command.
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
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 513
Location: India

PostPosted: Mon Oct 05, 2015 11:14 am    Post subject: Not able to run emerge --sync command. Reply with quote

Hi Experts, I need your help to fix some issues with the emerge --sync command. When I run it, I get the below error message :-

Quote:
~ # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
!!! getaddrinfo failed for 'rsync.gentoo.org': [Errno -3] Temporary failure in name resolution
>>> Starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(632) [Receiver=3.1.1]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org

* IMPORTANT: 8 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.


It says name resolution failure. I have multiple servers running RHEL-7.1 and some running Gentoo. I have proxy enabled on my Firewall, and for all the clients, I have this proxy env. variable configured as below :-

Quote:
env | grep proxy
http_proxy=http://192.168.5.253:3128
ftp_proxy=http://192.168.5.253:3128
https_proxy=http://192.168.5.253:3128


From my Gentoo server , I am able to communicate with the Proxy server - 192.168.5.253

Quote:
~ # ping 192.168.5.253
PING 192.168.5.253 (192.168.5.253) 56(84) bytes of data.
64 bytes from 192.168.5.253: icmp_seq=1 ttl=59 time=31.2 ms
64 bytes from 192.168.5.253: icmp_seq=2 ttl=59 time=50.2 ms


If I run curl command using this proxy, all looks good :-

Quote:
~ # curl -IL -x "http://192.168.5.253:3128" www.google.com
HTTP/1.0 302 Moved Temporarily
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.co.in/?gfe_rd=cr&ei=VlsSVuHvFefA8gfZwp3oBA
Content-Length: 261
Date: Mon, 05 Oct 2015 11:13:26 GMT
Server: GFE/2.0
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3120
Via: 1.0 localhost (squid/3.1.19)
Connection: keep-alive

HTTP/1.0 200 OK
Date: Mon, 05 Oct 2015 11:13:27 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: PREF=ID=1111111111111111:FF=0:TM=1444043607:LM=1444043607:V=1:S=gAfZ7ieXbtTSIk5q; expires=Thu, 31-Dec-2015 16:02:17 GMT; path=/; domain=.google.co.in
Accept-Ranges: none
Vary: Accept-Encoding
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3120
Via: 1.0 localhost (squid/3.1.19)
Connection: keep-alive



All RHEL-7 servers are able to communicate with the external repositories without any issues however its just the Gentoo servers for which rsync fails.

Appreciate all your help in advance.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Mon Oct 05, 2015 11:25 am    Post subject: Reply with quote

If you only allow web traffic you should use emerge-webrsync for syncing.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 513
Location: India

PostPosted: Mon Oct 05, 2015 11:27 am    Post subject: Reply with quote

Awsome, so yes emerge-webrsync works. Out of curiosity- what does emerge --sync uses ? If I know it, I may open the ports for it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54030
Location: 56N 3W

PostPosted: Mon Oct 05, 2015 5:46 pm    Post subject: Reply with quote

manu_leo,

Emerge --sync uses rsync.
Code:
$ grep rsync /etc/services
rsync      873/tcp            # rsync
rsync      873/udp
I think its only tcp though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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