repoctl icon indicating copy to clipboard operation
repoctl copied to clipboard

Maximum file size exceeded: wrong file size in database

Open mygithubthrowaway opened this issue 4 years ago • 2 comments

Hi all,

repoctl version 0.21

i found this problem several times using repoctl, for instance "downgrade" package:

error: failed retrieving file 'downgrade-9.0.0-1-any.pkg.tar.zst' from xxxx : Maximum file size exceeded
warning: failed to retrieve some files

googling it I found this issue:

https://bugs.archlinux.org/task/30878

in particular the Allan McRae reply

and I can confirm the problem is the wrong file size:

[downgrade-9.0.0-1]$ cat desc |grep size -i -A 1
%CSIZE%
19170
--
%ISIZE%
49421
[downgrade-9.0.0-1]$ ls -lha /srv/repo/|grep downgrade
-rw-r--r-- 1 makepkg makepkg  19K Dec  8 00:17 downgrade-9.0.0-1-any.pkg.tar.zst
[downgrade-9.0.0-1]$ ls -l /srv/repo/|grep downgrade
-rw-r--r-- 1 makepkg makepkg     19446 Dec  8 00:17 downgrade-9.0.0-1-any.pkg.tar.zst

mygithubthrowaway avatar Dec 08 '20 17:12 mygithubthrowaway

Hey @mygithubthrowaway,

first of all welcome and thanks for opening an issue! I'll have a look into this as soon as I find some time. I don't expect that to necessarily be this week, but it'll definitely be on my radar!

Here are a few notes for starters though:

  • Currently, repoctl has its own routines for reading packages and databases, but it uses repo-add under the hood to add packages to the database.
  • There have occassionaly been problems when running repoctl update while building packages in the repository itself.

Question: Are you strictly running repoctl add or repoctl update after compilation and packaging is complete? If you aren't, this is currently an "undefined-behavior" area of repoctl: adding a package while it's not yet all there. It's still an issue I want to solve, I've just been unable to reproduce the issue.

cassava avatar Dec 09 '20 15:12 cassava

Hi @cassava thanks for your kind reply

Yes I was using repoctl update, now I solved by removing the file before and using repoctl add -m <package>.

I don't expect that to necessarily be this week, but it'll definitely be on my radar!

thanks, but It's not an urgent issue so please take it easy :)

have a nice holidays

I will let you decide if you want to close or keep this issue open

mygithubthrowaway avatar Dec 15 '20 15:12 mygithubthrowaway