View previous topic :: View next topic |
Author |
Message |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Sat Oct 19, 2024 8:48 am Post subject: Unable to sync portage and overlays over ssh |
|
|
For some reason why I try to sync portage and overlays the URI is malformed, and for added fun I get a post merge error when its trying to check news items by the looks of it.
Code: |
# emerge --sync
ssh: Could not resolve hostname github.comgentoo-mirror: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
!!! git fetch error in /var/db/repos/gentoo
ssh: Could not resolve hostname github.commsva: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
!!! git fetch error in /var/db/repos/mva
ssh: Could not resolve hostname github.comgentoo-mirror: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
!!! git fetch error in /var/db/repos/mv
ssh: Could not resolve hostname github.comgentoo-mirror: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
!!! git fetch error in /var/db/repos/guru
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/emerge", line 57, in main
retval = emerge_main()
^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 1309, in emerge_main
return run_action(emerge_config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 3866, in run_action
return action_sync(emerge_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/actions.py", line 2449, in action_sync
success, msgs = syncer.auto_sync(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/emaint/modules/sync/sync.py", line 90, in auto_sync
return self._sync(repos, return_messages, emaint_opts=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/emaint/modules/sync/sync.py", line 264, in _sync
display_news_notification(
File "/usr/lib/python3.12/site-packages/portage/proxy/objectproxy.py", line 30, in __call__
return result(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/_emerge/post_emerge.py", line 41, in display_news_notification
news_counts = count_unread_news(portdb, vardb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/news.py", line 485, in count_unread_news
count = manager.getUnreadItems(repo, update=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/news.py", line 224, in getUnreadItems
self.updateItems(repoid)
File "/usr/lib/python3.12/site-packages/portage/news.py", line 186, in updateItems
if item.isRelevant(
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/news.py", line 302, in isRelevant
matches = [restriction.checkRestriction(**kwargs) for restriction in values]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/news.py", line 413, in checkRestriction
return kwargs["profile"].startswith(self.profile[:-1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
|
I noticed the URL and repository organisation/owner are incorrectly concatenated to github.comgentoo and such like and are missing a / (i.e. it should be github.com/gentoo and similar for other repositories).
emerge --info
I've tried going into /var/db/repos/gentoo/.git/config and changing the URL to SSH
Code: |
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
# url = https://github.com/gentoo-mirror/gentoo.git
url = ssh@github.com:gentoo-mirror/gentoo.git
fetch = +refs/heads/stable:refs/remotes/origin/stable
[branch "stable"]
remote = origin
merge = refs/heads/stable
|
If I then try to manually git pull the repository I get an a permission denied error, even though I have credentials and SSh keys in place and can pull other repositories
Code: |
# git pull
ssh@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
|
The SSH key is configured via /root/.gitconfig and is symlinked to my users SSH key which 100% works
/root/.gitconfig
Code: |
[core]
sshCommand = ssh -i ~/.ssh/id_ed25519 -F /dev/null
|
emerge --info
Code: |
# emerge --info
Portage 3.0.66.1 (python 3.12.7-final-0, unavailable, gcc-14, glibc-2.40-r5, 6.11.3-gentoo x86_64)
=================================================================
System uname: Linux-6.11.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-glibc2.40
KiB Mem: 32754048 total, 21532588 free
KiB Swap: 8000508 total, 8000508 free
Timestamp of repository gentoo: Sat, 19 Oct 2024 05:33:29 +0000
Head commit of repository gentoo: a55edc8329effb40e20f6291ff426880b67716c6
Timestamp of repository guru: Sat, 19 Oct 2024 00:18:16 +0000
Head commit of repository guru: e344dda63b0598ac594840f6198e411290978b89
Timestamp of repository mv: Fri, 18 Oct 2024 20:33:15 +0000
Head commit of repository mv: 99eaeda686c521c4d3e529e1d81b9503177ab3ca
Head commit of repository mva: 4c89938831bcce03fae22081809e53a47bdee31b
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p2) 2.43.1
ccache version 4.10.2 [disabled]
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake: 3.30.5::gentoo
dev-build/libtool: 2.5.3::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-java/java-config: 2.3.4::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 2.7.18_p16-r2::gentoo, 3.8.20_p2::gentoo, 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo, 3.13.0-r100::gentoo
dev-lang/rust: 1.81.0::gentoo
dev-util/ccache: 4.10.2-r1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.55.1::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang: 18.1.8::gentoo
sys-devel/gcc: 14.2.1_p20240921::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 18.1.8::gentoo
sys-devel/llvm: 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.2::gentoo
sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: -1000
volatile: False
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
volatile: False
mva
location: /var/db/repos/mva
sync-type: git
sync-uri: https://github.com/msva/mva-overlay/
masters: gentoo
volatile: False
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet --with-bdeps=y"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ # Gentoo sync and mirrors http://mirror.bytemark.co.uk/gentoo/ http://distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS=""
LEX="flex"
LINGUAS="en_GB"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acpi alsa apm bash-completion branding cdda cddb cdr cups dbus device-mapper dvd dvdr elogind emacs exif ffmpeg flac gif gimp glitz gtk gtk3 icu id3tag ipv6 jpeg kpathsea lensfun libsexy lock mp3 mpeg nsplugin ntp nvidia offensive ogg opengl oss pam pdf perl pipewire png policykit pulseaudio python python_single_target_python3_12 python_targets_python3_12 raw readline scanner screencast spell sqlite3 ssh svg thunar tiff truetype udev usb vorbis win32codecs x264 xcb xinetd xulrunner xvmc zsh-completion"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CBUILD, CC, CCLD, CHOST, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, ENV_UNSET, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Baffled as everything was working ok four days ago. _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2121
|
Posted: Sat Oct 19, 2024 1:44 pm Post subject: |
|
|
Please show emerge -pvO dev-vcs/git |
|
Back to top |
|
 |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Sat Oct 19, 2024 3:52 pm Post subject: |
|
|
emerge -pvO dev-vcs/git
Code: |
emerge -pvO dev-vcs/git
[ebuild U ] dev-vcs/git-2.47.0-r1 [2.47.0] USE="blksha1 -cgi curl -cvs -doc gpg -highlight iconv -keyring -mediawiki nls pcre -perforce perl safe-directory (-selinux) -subversion -test -tk webdav xinetd" PYTHON_SINGLE_TARGET="-python3_10 -python3_11 python3_12 -python3_13"
|
_________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2121
|
Posted: Sun Oct 20, 2024 2:50 am Post subject: |
|
|
You do understand that ssh git sync is meant for authorized users to read and write and not the greater internet to pull from |
|
Back to top |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 2943
|
Posted: Sun Oct 20, 2024 5:41 am Post subject: |
|
|
It is git@github.com, not ssh@github.com, but that change you made in /var/db/repos is suspicious. You should not need to even touch /var/db/repos. It should all be in /etc/portage/repos.conf.
Best Regards,
Georgi |
|
Back to top |
|
 |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Sun Oct 20, 2024 6:25 am Post subject: |
|
|
@grknight : Ah, hadn't clocked that but was something I thought I'd try. Reverted them anyway and still can't pull.
@logrusx : The change was to see if I could manually git pull (if I correct to git@github.com I can manually pull, thanks). But for some reason, despite the sync-uri = https://github.com/gentoo-mirror/###.git being set in /etc/portage/repos.conf and emerge --info showing these are being used both emerge --sync and emaint are not using the correct URL.
/etc/portage/repos.conf/eselect-repo.conf
Code: |
# created by eselect-repo
[mv]
location = /var/db/repos/mv
sync-type = git
sync-uri = https://github.com/gentoo-mirror/mv.git
[mva]
location = /var/db/repos/mva
sync-type = git
sync-uri = https://github.com/msva/mva-overlay/
[guru]
location = /var/db/repos/guru
sync-type = git
sync-uri = https://github.com/gentoo-mirror/guru.git
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
|
emaint sync -r mva
Code: |
emaint sync -r mva
>>> Syncing repository 'mva' into '/var/db/repos/mva'...
git remote set-url origin https://github.com/msva/mva-overlay/
/usr/bin/git fetch origin --depth 1
ssh: Could not resolve hostname github.commsva: Name or service not known <<<<<< hostname is wrong here???
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
!!! git fetch error in /var/db/repos/mva
Action: sync for repo: mva, returned code = 128
|
_________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
 |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Sun Oct 20, 2024 6:44 am Post subject: |
|
|
Solved this, I had introduced an error (malformed insteadOf option) in my users ~/.gitconfig, I'd been looking at /root/.gitconfig for the source of the error.
Apologies for wasting people's time. _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
 |
|
|
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
|
|