Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
5.94k stars 228 forks source link

Retry instead of exit if AUR return connection reset by peer #770

Closed alfzki closed 1 year ago

alfzki commented 2 years ago

Have you checked the readme and man page for this feature? Yes Have you checked previous issues for this feature? Yes

ThisNekoGuy commented 1 year ago

Not sure why it occurs but it's a rather annoying problem:

Example: ``` :: Calculating conflicts... :: Calculating inner conflicts... :: marked out of date: clickup gb-studio-bin gtk3-nocsd-git megasync osu-lazer python-pythonnet python-pywebview qzdl ttf-twemoji-color :: orphans: python2-setuptools Repo (2) jbigkit-2.1-6.1 electron-20.0.3-2 Repo Make (38) chrpath-0.16-3.1 yasm-1.3.0-5.1 intltool-0.51.0-6 nlohmann-json-3.11.2-1 poppler-data-0.4.11-1 asar-3.2.0-1 lmdbxx-1.0.0-1 tweeny-3.2.0-1 asciidoc-10.2.0-1 python-setuptools-scm-7.0.5-1 python-nose-1.3.7-14 python-coverage-6.2-1.1 python-pbr-5.10.0-1 python-mock-3.0.5-9 rustup-1.25.1-1.1 go-2:1.19.1-1.1 nasm-2.15.05-1.1 glib2-docs-2.74.0-1.1 python-anytree-2.8.0-5 gtk-doc-1.33.2-1 vala-0.56.3-1.1 appstream-glib-0.8.1-1.1 qt6-tools-6.3.2-1.1 scons-4.4.0-1 fpc-3.2.2-6.1 fpc-src-3.2.2-2 lazarus-2.2.2-3.1 gn-0.2050.9ef32177-1.1 help2man-1.49.2-1.1 swig-4.0.2-5.1 python-smmap-1:5.0.0-3 python-gitdb-1:4.0.9-1 python-gitpython-3.1.27-1 python-cmake-build-extension-0.5.1-1 python-iniconfig-1.1.1-5 python-apipkg-3.0.1-1 python-py-1.11.0-1 python-pytest-7.1.3-1 Aur (69) 4kyoutubetomp3-4.5.4.4870-1 airshipper-0.9.0-1 atlauncher-3.4.20.1-1 atomicwallet-2.54.3-1 code-marketplace-1.70.0-2 coeurl-0.2.1-1 ffmpeg-compat-57-3.4.11-1 freetube-bin-0.17.1-1 freshfetch-git-v0.2.0.r7.gace04ea-1 gstreamer0.10-0.10.36-20 gzdoom-4.8.2-1 hplip-plugin-3.22.6-1 icons-in-terminal-r93.b12286d-4 inxi-3.3.21.1-1 kde-servicemenus-rootactions-2.9.1-2 lib32-aom-3.4.0-1 lib32-libnuma-2.0.15-1 mangohud-0.6.8-2 (mangohud-common) lib32-mangohud-0.6.8-1 lib32-jbigkit-2.1-2 lib32-openjpeg2-2.5.0-1 lib32-poppler-22.08.0-2 (lib32-poppler lib32-poppler-glib) mangohud-0.6.8-2 material-maker-bin-1.0-1 mattermost-desktop-bin-5.1.1-1 mtxclient-0.8.2-1 nheko-0.10.1-2 osu-lazer-2022.911.0-1 pixelorama-bin-0.10.2-1 postman-bin-9.31.0-1 python-vdf-3.4-2 protontricks-1.9.2-1 python-injector-0.20.1-2 python-node-semver-0.8.1-1 python-pluginbase-1.0.0-6 python-stringcase-1.2.0-3 qbittorrent-qt5-4.4.5-1 rpcs3-udev-2022.07.02-1 shiny-mirrors-r225.589e776-1 slack-electron-4.28.171-1 spacestation14-launcher-bin-0.14.0-1 steamgrid-3.4.0-1 steamtinkerlaunch-11.11-1 wxgtk-3.1.5-3.1.5-1 (wxgtk-common-3.1.5 wxgtk3-3.1.5) tenacity-git-1:r13941.g9b4b96d98-2 timeshift-22.06.5-1 twitch-bin-1.0.4-8 wireguard-dkms-1.0.20220627-1 appimagelauncher-2.2.0-6 armorpaint-git-0.9.r2900.gef390132-1 candy-icons-git-r595.7a29005-1 cpufetch-git-1.00.r1.gdd32453-1 desmume-git-0.9.11.r1463.eab1fb95-1 duckstation-git-r5564.73a80d3a-1 flutter-git-1.26.0.1.0.pre.r0.63062a6443-1 godot-mono-3.5-1 goverlay-git-0.7.1.r2.g8985e1b-2 libpdfium-nojs-5060.r1.558516c323-1 lutris-git-0.5.10.1.r147.g7e035c36-1 ninfs-git-1.6.1.r1.g219b33a-1 python-appjar-0.94-1 ninfs-git-1.6.1.r1.g219b33a-1 (ninfs-gui-git) octopi-git-0.12.0.r0.3198001-1 openrgb-git-r2626.f44cd691-1 plasmatube-git-22.06.r6.g858abe4-1 popsicle-git-1.3.0.r1.g1685d80-1 protonfixes-git-1.0.15.r128.gc121a1d-1 python-pythonnet-2.3.0.r110.g397b0b4-1 rapidyaml-git-0.2.3.r21.gefc8b0e-1 Aur Make (1) python2-setuptools-2:44.1.1-2 :: Proceed to review? [Y/n]: :: Downloading PKGBUILDs... error: command failed: /home/neko-san/.cache/paru/clone/airshipper: git fetch -v: kex_exchange_identification: read: Connection reset by peer Connection reset by 95.216.144.15 port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ```

EDIT: This seems to be due to editing ~/.gitconfig; @alfzki make sure you don't have this set because it interferes with Paru:

[url "ssh://aur@aur.archlinux.org/"]
       insteadOf = https://aur.archlinux.org/
       insteadOf = http://aur.archlinux.org/
       insteadOf = git://aur.archlinux.org/