Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why do I get conection refused each time I try to sync
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
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Sun Jul 08, 2018 10:15 am    Post subject: Why do I get conection refused each time I try to sync Reply with quote

I have had this problem for a while now, and it seems like it occurs just about every time I go to sync the portage tree. This is getting so annoying I wish that I could get some help in figuring it out since I can't seem to understand what would be causing such messages to happen.

Code:
Machine_West% sudo eix-sync
 * Running emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys from keyserver ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Connection refused

OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Connection refused

OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Connection refused

OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Connection refused

OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Connection refused



Usually the solution is just to run the command again after checking to make sure the internet connection is working correctly. I don't know why that works either but usually does.

Update: After noticing another thread with very similar stuff I posted there as well about the possible causes for my issue that thread is the following one, https://forums.gentoo.org/viewtopic-p-8238410.html#8238410

As another potential helpful point it would be great to know how to log the process of emerge --sync command if possible so I could afterwards take a look, if it doesn't already exist somewhere on the system or else may just need to be added in the environment some way?
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2576
Location: Heidelberg - Germany

PostPosted: Tue Jul 10, 2018 7:40 am    Post subject: Reply with quote

I got this problem a lot of times - until I disabled the feature. This is not the best solution but finally it makes it possible to continue the update.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jul 10, 2018 11:02 am    Post subject: Re: Why do I get conection refused each time I try to sync Reply with quote

LIsLinuxIsSogood wrote:
As another potential helpful point it would be great to know how to log the process of emerge --sync command if possible so I could afterwards take a look, if it doesn't already exist somewhere on the system or else may just need to be added in the environment some way?

LIsLinuxIsSogood ... are you using 'sync-type = rsync'? If so then I expect you can do the following:

/etc/portage/repos.conf:
sync-rsync-extra-opts = --log-file=/var/log/portage/sync.log

You might want this rotated via app-admin/logrotate ...

HTH & best ... khay
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Sun Jul 15, 2018 7:56 am    Post subject: Reply with quote

Thanks to everyone, I was able to disable the featuer and turn on the logging for the future in case I decide to include it back in there at a later time. It is so great that the forum is here to answer these kind of quirky situations about the situation with some of the routine procedures for the operating system.

Now that I have the sync log working, I just ran sync and looing at sync.log it may be time to reinstall portage with rsync-verify USE flag and see what's going on there. I assume that whatever it is though is something that other devs and maintainers are sort of aware of already so I may just wait after all.

Anyway thanks to everyone! Khayyam and also Erdie
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