Fail to pull latest commits
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
- Open new shell
- Run
aura -Aua - Proceed with installation
- 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 -Syuworks 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.
- Specific message:
- Question: When running
aura checkone of the messages says something about fixing missing tarballs withaura -Cmthis just lists the packages that are missing their tarballs is there another step I'm missing here?
What do you see if you run aura -Ay?
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
Stepping into the packages dir, and trying to manually pull and I get a fatal: not a git repository error.
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?
@fosskers Would you happen to have an answer to the above question? Thank you in advance.
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.
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