Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
FS#48190 - Not possible to push to aur.archlinux.org after AUR 2.0 update.
Attached to Project:
AUR web interface
Opened by Mikkel Oscar Lyderik (moscar) - Monday, 15 February 2016, 09:22 GMT
Last edited by Lukas Fleischer (lfleischer) - Monday, 15 February 2016, 10:53 GMT
Opened by Mikkel Oscar Lyderik (moscar) - Monday, 15 February 2016, 09:22 GMT
Last edited by Lukas Fleischer (lfleischer) - Monday, 15 February 2016, 10:53 GMT
|
DetailsLooks like python-srcinfo is missing in the aur.archlinux.org setup.
If you try to push a package you get this error from the server: $ git push Counting objects: 4, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 538 bytes | 0 bytes/s, done. Total 4 (delta 2), reused 0 (delta 0) remote: Traceback (most recent call last): remote: File "hooks/update", line 11, in <module> remote: import srcinfo.parse remote: ImportError: No module named 'srcinfo' remote: error: hook declined to update refs/heads/master To ssh://aur/python2-jenkinsapi.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'ssh://aur/python2-jenkinsapi.git' |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Monday, 15 February 2016, 10:53 GMT
Reason for closing: Fixed
Monday, 15 February 2016, 10:53 GMT
Reason for closing: Fixed
I could solve it by rebasing and keeping only the last commit (it will fail if there is any commit that does not have a .SRCINFO in the git tree).
But then I have another error :
remote: Traceback (most recent call last):
remote: File "hooks/update", line 287, in <module>
remote: if not re.match(r'[a-z0-9][a-z0-9\.+_-]*$', pkginfo['pkgname']):
remote: File "/usr/lib/python3.5/re.py", line 163, in match
remote: return _compile(pattern, flags).match(string)
remote: TypeError: expected string or bytes-like object
remote: error: hook declined to update refs/heads/master
To ssh+git://aur@aur.archlinux.org/jamomacore-git.git
My package name is jamomacore-git
My pushes for previously working packages now are beeing refused with: "remote: error: missing mandatory field: pkgname":
git push
Counting objects: 23, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 3.45 KiB | 0 bytes/s, done.
Total 23 (delta 11), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: d443587620719cd3e1774e7f66747eb1f5f5e50c:
remote: error: missing mandatory field: pkgname
remote: error: hook declined to update refs/heads/master
Toaur@aur4.archlinux.org/phpunit.git"> ssh://aur@aur4.archlinux.org/phpunit.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur4.archlinux.org/phpunit.git'
Aurweb has been hotfixed in the meantime, thx @lfleischer:
(11:08:52) lfleischer: sanduhrs: Applied a hotfix, could you please try again?
(11:09:03) sanduhrs: lfleischer:
(11:09:10) sanduhrs: lfleischer: working again
(11:10:59) sanduhrs: lfleischer: successfully pushed 3 different packages
(11:12:30) lfleischer: sanduhrs: Cool :)