alexheretic / aurto

Arch Linux AUR tool for managing an auto-updating local 'aurto' package repository
MIT License
134 stars 9 forks source link

update-aurto fails silently #55

Closed manolomartinez closed 3 years ago

manolomartinez commented 3 years ago

Hi, aurto is failing to update. It seems to have something to do with sudo requiring a password---which I would have thought was the normal behavior, but seeing as if aurto was expecting something else to happen, I'm not so sure.

This is the output of systemctl status update-aurto:

● update-aurto.service - Updates 'aurto' repo
       Loaded: loaded (/usr/lib/systemd/system/update-aurto.service; static)
       Active: failed (Result: exit-code) since Wed 2021-03-03 11:25:47 CET; 17min ago
  TriggeredBy: ● update-aurto-startup.timer
               ● update-aurto.timer
      Process: 146112 ExecStart=/usr/lib/aurto/update-aurto (code=exited, status=1/FAILURE)
     Main PID: 146112 (code=exited, status=1/FAILURE)

  Mar 03 11:25:47 beagle update-aurto[146506]: Cloning into 'dropbox'...
  Mar 03 11:25:47 beagle update-aurto[146506]: Cloning into 'clight-git'...
  Mar 03 11:25:47 beagle update-aurto[146506]: Running aur chroot --create --makepkg-conf /etc/aurto/makepkg-chroot.conf --pacman-conf /etc/aurto/pacman-chroot.conf
  Mar 03 11:25:47 beagle update-aurto[146506]: Running aur chroot --update --makepkg-conf /etc/aurto/makepkg-chroot.conf --pacman-conf /etc/aurto/pacman-chroot.conf
  Mar 03 11:25:47 beagle update-aurto[146506]: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
  Mar 03 11:25:47 beagle update-aurto[146506]: sudo: a password is required
  Mar 03 11:25:47 beagle update-aurto[146127]: `aur sync --no-view --no-confirm --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf --chroot --pacman-conf=/etc/aurto/pacman-chroot.conf --upgrades` failed with exit code 1 ✗
  Mar 03 11:25:47 beagle sudo[146126]: pam_unix(sudo:session): session closed for user manolo
  Mar 03 11:25:47 beagle systemd[1]: update-aurto.service: Main process exited, code=exited, status=1/FAILURE
  Mar 03 11:25:47 beagle systemd[1]: update-aurto.service: Failed with result 'exit-code'.

Thanks!

alexheretic commented 3 years ago

See https://github.com/alexheretic/aurto/issues/54#issuecomment-787015485 for an explanation of how aurto is currently using sudo. I.e Perhaps your user is not in the wheel group?

I do aim to improve the wheel thing, see https://github.com/alexheretic/aurto/issues/56

manolomartinez commented 3 years ago

Yep, my user was indeed not in wheel. Thanks!