[aur-dev] Can't update repo because source URL is too long

Andreas klingt.net at gmail.com
Sun Sep 25 07:45:30 UTC 2016


Today, I wanted to update caddy-full-bin
(https://aur.archlinux.org/packages/caddy-full-bin/) but the push into
AUR was rejected because the `.SRCINFO` check crashed:

|remote: Traceback (most recent call last): remote: File "hooks/update",
line 389, in <module> remote: save_metadata(metadata, conn, user)
remote: File "hooks/update", line 135, in save_metadata remote: [pkgid,
source_info['value'], source_info['arch']]) remote: File
"/srv/http/vhosts/aur.archlinux.org/public/git-interface/db.py", line
43, in execute remote: cur.execute(query, params) remote: File
"/usr/lib/python3.5/site-packages/mysql/connector/cursor.py", line 515,
in execute remote: self._handle_result(self._connection.cmd_query(stmt))
remote: File
"/usr/lib/python3.5/site-packages/mysql/connector/connection.py", line
488, in cmd_query remote: result =
self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) remote: File
"/usr/lib/python3.5/site-packages/mysql/connector/connection.py", line
395, in _handle_result remote: raise errors.get_exception(packet)
remote: mysql.connector.errors.DataError: 1406 (22001): Data too long
for column 'Source' at row 1 remote: error: hook declined to update
refs/heads/master To git+ssh://aur.archlinux.org/caddy-full-bin.git|

It seems that the column that stores source URLs in the database is to
small: `|Data too long for column 'Source' at row 1|`.
Here is an example source URL from the `.SRCINFO`: `|source_i686 =
caddy.tar.gz::https://caddyserver.com/download/build?os=linux&features=awslambda,cors,filemanager,git,hugo,ipfilter,jwt,locale,mailout,minify,multipass,prometheus,ratelimit,realip,search,upload,cloudflare,digitalocean,dnsimple,dyn,gandi,googlecloud,namecheap,rfc2136,route53,vultr&arch=386`|

|Caddys buildserver requires to pass all those parameters, therfore I
can't reduce the length of the URL.
There is an archlinux forum thread for discussing this issue:
https://bbs.archlinux.org/viewtopic.php?id=217364 .
|

|Cheers,
Andreas|

-- 
Andreas Linz

PGP: `F1E8 B1CC E0B7 FBF0 8E7E 33A2 A57E A370 7387 1146`

klingt.net
andreas-linz.de
github.com/klingtnet



More information about the aur-dev mailing list