aura icon indicating copy to clipboard operation
aura copied to clipboard

Fail to pull latest commits

Open OliverEricT opened this issue 3 months ago • 7 comments

Description

When trying to update my AUR packages with aura -Aua I receive an error saying that aura was unable to pull the latest commits.

aura :: Proceed? [Y/n] 
aura :: Saved package state.
aura :: Preparing build directories...
aura :: Failed to pull latest commits - you may be building an old version!
aura :: Building feishin-bin...
aura :: Package failed to build, citing:

  Failed to copy build files.

Reproduction Steps

  1. Open new shell
  2. Run aura -Aua
  3. Proceed with installation
  4. See error

Expected Behavior

The AUR packages update as expected.

Additional Notes

  • This issue has only cropped up in the last week. I was on vacation and away from my computer and when I came back I was met with this error.
  • aura -Syu works however it throws messages saying it has failed to connect to my pacman mirror (america.mirror.pkgbuild.com) but it will successfully update if I do have packages that need upgrading.
    • Specific message: error: failed retrieving file 'core.db' from america.mirror.pkgbuild.com : Failed to connect to america.mirror.pkgbuild.com port 443 after 576 ms: Could not connect to server
    • I think this might be unrelated but I wanted to include it in case it is relevant.
  • Question: When running aura check one of the messages says something about fixing missing tarballs with aura -Cm this just lists the packages that are missing their tarballs is there another step I'm missing here?

OliverEricT avatar Sep 09 '25 14:09 OliverEricT

What do you see if you run aura -Ay?

fosskers avatar Sep 09 '25 23:09 fosskers

I get an error saying the git pull failed.

aura :: A git pull failed: /home/erk/.cache/aura/packages/gruvbox-material-theme-git
aura :: A git pull failed: /home/erk/.cache/aura/packages/bleachbit-cli
aura :: A git pull failed: /home/erk/.cache/aura/packages/teams-for-linux
aura :: A git pull failed: /home/erk/.cache/aura/packages/wayshot
aura :: A git pull failed: /home/erk/.cache/aura/packages/capitaine-cursors-sainnhe-git
aura :: A git pull failed: /home/erk/.cache/aura/packages/zen-browser-bin
aura :: A git pull failed: /home/erk/.cache/aura/packages/linux-vfio
aura :: A git pull failed: /home/erk/.cache/aura/packages/librewolf
aura :: A git pull failed: /home/erk/.cache/aura/packages/rsgain
aura :: A git pull failed: /home/erk/.cache/aura/packages/libwireplumber-4.0-compat
aura :: A git pull failed: /home/erk/.cache/aura/packages/input-leap-git
aura :: A git pull failed: /home/erk/.cache/aura/packages/surfshark-client
aura :: A git pull failed: /home/erk/.cache/aura/packages/betterbird-bin
aura :: A git pull failed: /home/erk/.cache/aura/packages/code-marketplace
aura :: A git pull failed: /home/erk/.cache/aura/packages/sacad
aura :: A git pull failed: /home/erk/.cache/aura/packages/pwvucontrol
aura :: A git pull failed: /home/erk/.cache/aura/packages/librewolf-bin
aura :: A git pull failed: /home/erk/.cache/aura/packages/feishin-bin
aura :: A git pull failed: /home/erk/.cache/aura/packages/feishin
aura :: A git pull failed: /home/erk/.cache/aura/packages/aura
aura :: A git pull failed: /home/erk/.cache/aura/packages/looking-glass
aura :: A git pull failed: /home/erk/.cache/aura/packages/hyprshot
aura :: A git pull failed: /home/erk/.cache/aura/packages/winscp

OliverEricT avatar Sep 10 '25 16:09 OliverEricT

Stepping into the packages dir, and trying to manually pull and I get a fatal: not a git repository error.

OliverEricT avatar Sep 10 '25 16:09 OliverEricT

I installed a new package (chosen at random, but it was octopi). It installed as I would expect and then stepping into the dir and then manually git pulling I receive the expected Already up to date message.

So it seems that somehow my git infos are corrupted in my installed packages.

Would you know an easy way to rebuild those? Or am I going to have to manually re-link them?

OliverEricT avatar Sep 10 '25 16:09 OliverEricT

@fosskers Would you happen to have an answer to the above question? Thank you in advance.

OliverEricT avatar Sep 16 '25 14:09 OliverEricT

If you've hit some corruption of the cloned git repos, it way be quickest just to delete that entire directory. They'll be pulled again automatically the next time you install/update packages.

fosskers avatar Sep 16 '25 23:09 fosskers

I followed your suggestion and deleted the corrupted repos in the .cache/aura/packages dir , but I received another error saying explicitly that the builds were corrupted. So I also deleted the directories in the .cache/aura/builds dir and now everything appears to be building and updating correctly. I can't fully verify for another few hours as one of the builds is a kernal update. I'm going to leave this open until the update succeeds and then I'll mark closed or update. Thank you for your help in resolving this matter.

SOLUTION: For future viewers the steps to fix (for me) were to: 1. Delete the directories in ~/.cache/aura/packages 2. Delete the directories in ~/.cache/aura/builds

OliverEricT avatar Sep 17 '25 12:09 OliverEricT