Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

sync timeouts on a system running under WSL

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
larand54
l33t
l33t
User avatar
Posts: 695
Joined: Fri Feb 20, 2004 8:05 am
Location: Sweden

sync timeouts on a system running under WSL

  • Quote

Post by larand54 » Wed Dec 13, 2023 10:47 am

Using a stage3 tar ball in WSL I managed to make it work, but running "emerge --sync" times out all time.
I tried different repos but all failed. Adding new packages using emerge seems to work and even websync does,
so why not "emerge --sync"?

I can't see that there are any firewall problem as theres no rules for outgoing requests.

Any ideas?
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Dec 13, 2023 2:05 pm

I heard WSL had terrible IO and I guess you're using rsync so this should answer your question. I think webrsync should work fine as (to my understanding) it grabs a snapshot and the rest is done locally. Did you try using git?

Best Regards,
Georgi
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Dec 13, 2023 2:14 pm

First question would be WSL1 or WSL2, as those operate very differently under the hood (syscall emulation vs. full virtualization) which can have significant impact on IO performance. If using WSL2 you could use wireshark to check network traffic on the virtual network interface to maybe give you a clue what is going wrong.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Wed Dec 13, 2023 3:39 pm

Do you have /etc/resolv.conf provided?
EDIT: My bad, overlooked OP, sorry...
Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Wed Dec 13, 2023 6:37 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Dec 13, 2023 3:53 pm

What is the output of LC_MESSAGES=C emerge --sync when it fails? Knowing the exact error message may help us offer better guidance.
Top
larand54
l33t
l33t
User avatar
Posts: 695
Joined: Fri Feb 20, 2004 8:05 am
Location: Sweden

  • Quote

Post by larand54 » Wed Dec 13, 2023 6:47 pm

Answer to Hu:
JME-SSD /etc/portage/repos.conf # LC_MESSAGES=C emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://rsync.se.gentoo.org...
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(713) [Receiver=3.2.7]
>>> Retrying...


>>> Starting retry 1 of 1 with rsync://rsync.se.gentoo.org
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(713) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.se.gentoo.org
>>> Syncing repository 'guru' into '/var/db/repos/guru'...
/usr/bin/git fetch origin --depth 1
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
/usr/bin/git reset --merge refs/remotes/origin/master
=== Sync completed for guru

Action: sync for repo: gentoo, returned code = 1
Action: sync for repo: guru, returned code = 0


=====================================
Answer to logrusx:

Yes I tried git too but having the same result.

========================================
Answer to CaptainBlood:
JME-SSD /etc/portage/repos.conf # cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 8.8.8.8
nameserver 192.168.80.1

====================================
Answer to Genone:

I have it captured in a file but I'm not sure how I could post that here?
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Wed Dec 13, 2023 7:20 pm

Currently using WSL2,

I had similar symptom less than 2 weeks ago.
fixed resetting as follow:

Code: Select all

cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
#sync-uri = rsync://rsync.gentoo.org/gentoo-portage
sync-uri = rsync://rsync.europe.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
EDIT: My backbone is Europe based, despite I'm far oversea.
You may have to adapt to your environment.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Dec 14, 2023 8:58 am

Regarding the wireshark log, just open it and in the text field below the symbol bar (should say sth, like "Apply a display filter") enter "tcp.port == 873" (without the quotes). Then it should be relatively obvious if there is any actual rsync traffic, or just failed connection attempts. If the list is completely empty with that filter the issue is probably that portage doesn't find any actual servers for your configuration, so might be worth trying a different sync-uri setting. The output you posted kinda points into that direction.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic