FS#75546 - Python stacktrace when using ssh aur adopt <package-name>

Attached to Project: AUR web interface
Opened by Max Gautier (VannTen) - Monday, 08 August 2022, 09:03 GMT
Task Type Bug Report
Category Backend
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version 4.7.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

When adopting a pkgbase with the ssh interface, the following happens:
(aur is an ssh host configured in .ssh/config)

$ ssh aur adopt vim-lastplace
Traceback (most recent call last):
File "/srv/http/aurweb/.venv/bin/aurweb-git-serve", line 5, in <module>
main()
File "/srv/http/aurweb/aurweb/git/serve.py", line 604, in main
serve(action, cmdargv, user, privileged, remote_addr)
File "/srv/http/aurweb/aurweb/git/serve.py", line 535, in serve
pkgbase_adopt(pkgbase, user, privileged)
File "/srv/http/aurweb/aurweb/git/serve.py", line 110, in pkgbase_adopt
subprocess.Popen((notify_cmd, 'adopt', str(userid), str(pkgbase_id)))
File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'aurweb-notify'

The pkgbase is correctly adopted though. Following attemps:

$ ssh aur adopt vim-lastplace
adopt: permission denied: VannTen
This task depends upon

Loading...