Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum file size exceeded: wrong file size in database #61

Open
mygithubthrowaway opened this issue Dec 8, 2020 · 2 comments
Open

Comments

@mygithubthrowaway
Copy link

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
@cassava
Copy link
Owner

cassava commented Dec 9, 2020

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.

@mygithubthrowaway
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants