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
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 4.1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Looks 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
Comment by Mikkel Oscar Lyderik (moscar) - Monday, 15 February 2016, 09:32 GMT
I obviously meant the AUR 4.2.0 update, but can't edit the report now. Oh well.
Comment by Jean-Michaël Celerier (jcelerier) - Monday, 15 February 2016, 09:50 GMT
Got the same error.
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
Comment by Stefan Auditor (sanduhrs) - Monday, 15 February 2016, 10:02 GMT
The missing dependency python-srcinfo appears to be fixed now.

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'
Comment by Jean-Michaël Celerier (jcelerier) - Monday, 15 February 2016, 10:33 GMT
Stefan Auditor: you have to re-run mksrcinfo for this one (or add a "pkgname = phpunit"field to your .SRCINFO).
Comment by Stefan Auditor (sanduhrs) - Monday, 15 February 2016, 10:40 GMT
@Jean-Michaël Celerier: pkgname is defined.

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 :)

Loading...