Closed pbrisbin closed 12 months ago
You could try finding and removing the db.lck
files in the chroot dir. Alternatively just nuke the chroot files sudo rm -rf /var/lib/aurbuild/
.
Ah, I mistook the db.lck
in the original Issue for a typo. That explains why my find
for db.lock
returned no results.
% sudo find / -name db.lck
/var/lib/aurbuild/x86_64/root/var/lib/pacman/db.lck
Removing that file resolved it, of course. Thanks for spotting that.
Hi there-
I'm finding the following errors in my logs from the
update-aurto
service. I'm not sure when they started.Complete log
``` Sep 14 07:27:28 pele systemd[1]: Started Updates 'aurto' repo. Sep 14 07:27:28 pele update-aurto[4156781]: aurto: Checking maintainer trust... Sep 14 07:27:28 pele update-aurto[4156781]: Checking maintainer trust... ✓ Sep 14 07:27:28 pele update-aurto[4156781]: Running: aur sync --no-view --no-confirm --database=aurto --upgrades -k0 --chroot --makepkg-conf=/etc/aurto/makepkg-chroot.conf -> Sep 14 07:27:28 pele sudo[4156800]: root : PWD=/ ; USER=patrick ; ENV=AUR_SYNC_USE_NINJA=1 ; COMMAND=/usr/bin/aur sync --no-view --no-confirm --database=aurto --upgrades> Sep 14 07:27:28 pele sudo[4156800]: pam_unix(sudo:session): session opened for user patrick(uid=1000) by (uid=0) Sep 14 07:27:28 pele update-aurto[4156801]: ==> Using [aurto] repository Sep 14 07:27:30 pele update-aurto[4156886]: -> ngrok 3.3.3-1 -> 3.3.4-1 Sep 14 07:27:30 pele update-aurto[4156886]: -> nvm 0.39.4-1 -> 0.39.5-1 Sep 14 07:27:30 pele update-aurto[4156886]: -> zoom 5.15.5-1 -> 5.15.12-1 Sep 14 07:27:30 pele update-aurto[4156910]: /usr/lib/aurutils/aur-repo-filter: line 25: /dev/tty: No such device or address Sep 14 07:27:30 pele update-aurto[4156801]: ==> Retrieving package files Sep 14 07:27:30 pele update-aurto[4156938]: Already up to date. Sep 14 07:27:31 pele update-aurto[4156951]: Already up to date. Sep 14 07:27:31 pele update-aurto[4156964]: Already up to date. Sep 14 07:27:31 pele update-aurto[4156981]: ninja: Entering directory `/home/patrick/.local/state/aurutils/sync/ninja-patrick-4156801' Sep 14 07:27:31 pele update-aurto[4156981]: [1/3] env -C /home/patrick/.cache/aurutils/sync/ngrok '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makep> Sep 14 07:27:31 pele sudo[4157004]: patrick : PWD=/home/patrick/.cache/aurutils/sync/ngrok ; USER=root ; COMMAND=/usr/bin/arch-nspawn -C /etc/aurto/pacman-chroot.conf -M /e> Sep 14 07:27:31 pele sudo[4157004]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000) Sep 14 07:27:34 pele update-aurto[4157005]: [43B blob data] Sep 14 07:27:34 pele update-aurto[4157005]: error: failed to synchronize all databases (unable to lock database) Sep 14 07:27:34 pele sudo[4157004]: pam_unix(sudo:session): session closed for user root Sep 14 07:27:34 pele update-aurto[4157005]: [6B blob data] Sep 14 07:27:34 pele update-aurto[4156981]: FAILED: ngrok.stamp Sep 14 07:27:34 pele update-aurto[4156981]: env -C /home/patrick/.cache/aurutils/sync/ngrok '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makepkg-con> Sep 14 07:27:34 pele update-aurto[4156981]: [2/3] env -C /home/patrick/.cache/aurutils/sync/nvm '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makepkg> Sep 14 07:27:34 pele sudo[4157075]: patrick : PWD=/home/patrick/.cache/aurutils/sync/nvm ; USER=root ; COMMAND=/usr/bin/arch-nspawn -C /etc/aurto/pacman-chroot.conf -M /etc> Sep 14 07:27:34 pele sudo[4157075]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000) Sep 14 07:27:35 pele update-aurto[4157076]: [43B blob data] Sep 14 07:27:35 pele update-aurto[4157076]: error: failed to synchronize all databases (unable to lock database) Sep 14 07:27:35 pele sudo[4157075]: pam_unix(sudo:session): session closed for user root Sep 14 07:27:35 pele update-aurto[4157076]: [6B blob data] Sep 14 07:27:35 pele update-aurto[4156981]: FAILED: nvm.stamp Sep 14 07:27:35 pele update-aurto[4156981]: env -C /home/patrick/.cache/aurutils/sync/nvm '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makepkg-conf'> Sep 14 07:27:35 pele update-aurto[4156981]: [3/3] env -C /home/patrick/.cache/aurutils/sync/zoom '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makepk> Sep 14 07:27:36 pele sudo[4157142]: patrick : PWD=/home/patrick/.cache/aurutils/sync/zoom ; USER=root ; COMMAND=/usr/bin/arch-nspawn -C /etc/aurto/pacman-chroot.conf -M /et> Sep 14 07:27:36 pele sudo[4157142]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000) Sep 14 07:27:38 pele update-aurto[4157143]: [43B blob data] Sep 14 07:27:38 pele update-aurto[4157143]: error: failed to synchronize all databases (unable to lock database) Sep 14 07:27:38 pele sudo[4157142]: pam_unix(sudo:session): session closed for user root Sep 14 07:27:38 pele update-aurto[4157143]: [6B blob data] Sep 14 07:27:38 pele update-aurto[4156981]: FAILED: zoom.stamp Sep 14 07:27:38 pele update-aurto[4156981]: env -C /home/patrick/.cache/aurutils/sync/zoom '--' 'aur' 'build' '--clean' '--syncdeps' '--noconfirm' '--chroot' '--makepkg-conf> Sep 14 07:27:38 pele update-aurto[4156981]: ninja: build stopped: cannot make progress due to previous errors. Sep 14 07:27:38 pele update-aurto[4157192]: [1/3] ngrok [FAIL] Sep 14 07:27:38 pele update-aurto[4157192]: [2/3] nvm [FAIL] Sep 14 07:27:38 pele update-aurto[4157192]: [3/3] zoom [FAIL] Sep 14 07:27:38 pele update-aurto[4156801]: sync: build files at /home/patrick/.local/state/aurutils/sync/ninja-patrick-4156801 Sep 14 07:27:38 pele sudo[4156800]: pam_unix(sudo:session): session closed for user patrick Sep 14 07:27:38 pele update-aurto[4157195]: [47B blob data] Sep 14 07:27:38 pele update-aurto[4157196]: ==> no candidate packages found for pruning Sep 14 07:27:38 pele systemd[1]: update-aurto.service: Deactivated successfully. Sep 14 07:27:38 pele systemd[1]: update-aurto.service: Consumed 6.814s CPU time. ```Listing of ~/.cache/aurutils
``` % tree $_ /home/patrick/.cache/aurutils ├── pkglist │ ├── headers_packages │ └── packages └── sync ├── aur-release-git │ ├── aur-release │ │ ├── branches │ │ ├── config │ │ ├── description │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── hooks │ │ │ ├── applypatch-msg.sample │ │ │ ├── commit-msg.sample │ │ │ ├── fsmonitor-watchman.sample │ │ │ ├── post-update.sample │ │ │ ├── pre-applypatch.sample │ │ │ ├── pre-commit.sample │ │ │ ├── pre-merge-commit.sample │ │ │ ├── prepare-commit-msg.sample │ │ │ ├── pre-push.sample │ │ │ ├── pre-rebase.sample │ │ │ ├── pre-receive.sample │ │ │ ├── push-to-checkout.sample │ │ │ ├── sendemail-validate.sample │ │ │ └── update.sample │ │ ├── info │ │ │ └── exclude │ │ ├── objects │ │ │ ├── info │ │ │ └── pack │ │ │ ├── pack-6921a17ca8a68e030daece7512755ed6eb34b412.idx │ │ │ ├── pack-6921a17ca8a68e030daece7512755ed6eb34b412.pack │ │ │ └── pack-6921a17ca8a68e030daece7512755ed6eb34b412.rev │ │ ├── packed-refs │ │ └── refs │ │ ├── heads │ │ └── tags │ ├── PKGBUILD │ └── src │ └── aur-release │ ├── bin │ │ └── aur-release │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── PKGBUILD │ ├── README.md │ └── test │ ├── bin │ │ ├── git │ │ └── write-package │ ├── current-directory.t │ ├── edit-command.t │ └── separate-repo.t ├── ngrok │ ├── PKGBUILD │ └── TERMS-OF-SERVICE.txt ├── nvm │ ├── init-nvm.sh │ ├── install-nvm-exec │ ├── nvm.install │ ├── PKGBUILD │ └── update.sh ├── vbump-git │ ├── PKGBUILD │ ├── src │ │ └── vbump │ │ ├── bin │ │ │ └── vbump │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── PKGBUILD │ │ ├── README.md │ │ └── test │ │ └── vbump.t │ └── vbump │ ├── branches │ ├── config │ ├── description │ ├── FETCH_HEAD │ ├── HEAD │ ├── hooks │ │ ├── applypatch-msg.sample │ │ ├── commit-msg.sample │ │ ├── fsmonitor-watchman.sample │ │ ├── post-update.sample │ │ ├── pre-applypatch.sample │ │ ├── pre-commit.sample │ │ ├── pre-merge-commit.sample │ │ ├── prepare-commit-msg.sample │ │ ├── pre-push.sample │ │ ├── pre-rebase.sample │ │ ├── pre-receive.sample │ │ ├── push-to-checkout.sample │ │ ├── sendemail-validate.sample │ │ └── update.sample │ ├── info │ │ └── exclude │ ├── objects │ │ ├── info │ │ └── pack │ │ ├── pack-558ceb6760f2d99279506dc3d14b2e9fa324d7c1.idx │ │ ├── pack-558ceb6760f2d99279506dc3d14b2e9fa324d7c1.pack │ │ └── pack-558ceb6760f2d99279506dc3d14b2e9fa324d7c1.rev │ ├── packed-refs │ └── refs │ ├── heads │ └── tags └── zoom └── PKGBUILD 37 directories, 75 files ```I'm not sure what to do to clear the lock(s).
sudo find / -name db.lock
shows no files. Can you advise what to do?Googling got me to #32, but it's old, closed, and looks slightly different.