You are not logged in.

#1 2024-12-09 15:19:33

Sving1024
Member
Registered: 2024-06-16
Posts: 31
Website

[solved]Failed to upload about 100 packages in a short time

I'm using GitHub actions to update about 100 i18n packages for firefox-nightly automatically. However, when the job runs to using git to publish to aur, it fails with `

  Pushing to ssh://aur.archlinux.org/firefox-nightly-i18n-fy-nl.git
  remote: Traceback (most recent call last):        
  remote:   File "/srv/http/aurweb/.venv/bin/aurweb-git-update", line 6, in <module>        
  remote:     sys.exit(main())        
  remote:              ^^^^^^        
  remote:   File "/srv/http/aurweb/aurweb/git/update.py", line 474, in main        
  remote:     save_metadata(metadata, conn, user)        
  remote:   File "/srv/http/aurweb/aurweb/git/update.py", line 107, in save_metadata        
  remote:     conn.execute(        
  remote:   File "/srv/http/aurweb/aurweb/db.py", line 429, in execute        
  remote:     return self._conn.execute(query, params)        
  remote:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        
  remote:   File "/srv/http/aurweb/aurweb/db.py", line 379, in execute        
  remote:     cur.execute(query, params)        
  remote:   File "/srv/http/aurweb/.venv/lib/python3.12/site-packages/MySQLdb/cursors.py", line 179, in execute        
  remote:     res = self._query(mogrified_query)        
  remote:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^        
  remote:   File "/srv/http/aurweb/.venv/lib/python3.12/site-packages/MySQLdb/cursors.py", line 330, in _query        
  remote:     db.query(q)        
  remote:   File "/srv/http/aurweb/.venv/lib/python3.12/site-packages/MySQLdb/connections.py", line 261, in query        
  remote:     _mysql.connection.query(self, query)        
  remote: MySQLdb.OperationalError: (1020, "Record has changed since last read in table 'PackageSources'")        
  remote: error: hook declined to update refs/heads/master        
  To ssh://aur.archlinux.org/firefox-nightly-i18n-fy-nl.git
   ! [remote rejected] master -> master (hook declined)
  error: failed to push some refs to 'ssh://aur.archlinux.org/firefox-nightly-i18n-fy-nl.git'

Someone in the IRC channel suggested that I publish the packages one by one. However, the situation still happens.

You can find the origin logs here:
Serial publishing
Parallel publishing

How to solve this, or what else I can do?

Last edited by Sving1024 (2024-12-21 17:19:39)

Offline

#2 2024-12-09 15:24:19

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 914
Website

Re: [solved]Failed to upload about 100 packages in a short time

Hm, that doesn't sound right .. If you get such a trace I think this might be worth a bug report against the aurweb repo: https://gitlab.archlinux.org/archlinux/aurweb

Offline

#3 2024-12-09 15:59:38

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 914
Website

Re: [solved]Failed to upload about 100 packages in a short time

Now also crossposted by OP to the AURweb bugtracker: https://gitlab.archlinux.org/archlinux/ … issues/525

Offline

Board footer

Powered by FluxBB