pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.68k stars 414 forks source link

"Maximum file size exceeded" error for Arch package download from opensuse.org #1653

Closed boskote closed 4 years ago

boskote commented 4 years ago

Expected behaviour

Arch package downloads

Actual behaviour

$ sudo pacman -S qownnotes
resolving dependencies...
looking for conflicting packages...

Packages (1) qownnotes-20.3.2-1

Total Download Size:    3.50 MiB
Total Installed Size:  18.68 MiB
Net Upgrade Size:       0.27 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
error: failed retrieving file 'qownnotes-20.3.2-1-x86_64.pkg.tar.xz' from download.opensuse.org : Maximum file size exceeded
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

Steps to reproduce

sudo pacman -S qownnotes

Here is my pacman.conf config block for the opensuse.org repo;

[home_pbek_QOwnNotes_Arch_Extra]
SigLevel = Optional TrustAll
Server = http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/$arch

In the meantime, this is my workaround in pacman.conf: IgnorePkg = qownnotes

Which gives this output: qownnotes: ignoring package upgrade (20.3.0-1 => 20.3.2-1)

pbek commented 4 years ago

Thank you for reporting. OBS has a download problem. The download currently only works when logged in. I now reported that issue in the #opensuse-buildservice IRC chat on freenode.

pbek commented 4 years ago

I tested today and I was able to download http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-20.3.2-1-x86_64.pkg.tar.xz. Do you still have this issue?

johnnydvc commented 4 years ago

I do: Fehler: Konnte Datei 'qownnotes-20.3.2-1-x86_64.pkg.tar.xz' nicht von download.opensuse.org übertragen : Maximum file size exceeded I was able to download and install from file though.

pbek commented 4 years ago

I don't know what is causing this issue on your system.

pbek commented 4 years ago

Did you already try the advices from https://www.reddit.com/r/archlinux/comments/2axo9x/unable_to_update_using_pacman_maximum_file_size/?

boskote commented 4 years ago

I tested today and I was able to download http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-20.3.2-1-x86_64.pkg.tar.xz. Do you still have this issue?

Same for me, I didn't change anything and now I am able to download the package as expected. Since others are reporting the problem continuing I'm not closing the issue now even though it is resolved for me.

pbek commented 4 years ago

@boskote, does sudo pacman -S qownnotes now work for you? @johnnydvc, does it for you?

boskote commented 4 years ago

@boskote, does sudo pacman -S qownnotes now work for you?

Yes

johnnydvc commented 4 years ago

@boskote, does sudo pacman -S qownnotes now work for you? @johnnydvc, does it for you?

Hi, it still deosn't work. I get the error message Fehler: Konnte Datei 'qownnotes-20.3.2-1-x86_64.pkg.tar.xz' nicht von download.opensuse.org übertragen : The requested URL returned error: 404 Strange Fixed for now. I enabled the external downloader wget and thishelped. I don't have the curl line in my pacman.conf can please someone post a working one? Thanks

pbek commented 4 years ago

The requested URL returned error: 404

20.3.3 was released meanwhile, so the old file may be gone

I don't have the curl line in my pacman.conf

what curl line?

johnnydvc commented 4 years ago

The requested URL returned error: 404

20.3.3 was released meanwhile, so the old file may be gone

I don't have the curl line in my pacman.conf

what curl line?

I mean your advice from the reddit post that suggests enabling curl with XferCommand in the pacman.conf. Mine only has a XferCommand line with wget.

pbek commented 4 years ago

Ah, ok. Can't help with that. I use the AUR. :grin:

alsternerd commented 3 months ago

I tested today and I was able to download http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-20.3.2-1-x86_64.pkg.tar.xz. Do you still have this issue?

The issue now exists for 'qownnotes-24.7.2-1-x86_64.pkg.tar.zst on download.opensuse.org : Maximum file size exceeded

pbek commented 3 months ago

What did you do to get the error?

wget http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-24.7.2-1-x86_64.pkg.tar.zst works just fine for me.

alsternerd commented 3 months ago

What did you do to get the error?

wget http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-24.7.2-1-x86_64.pkg.tar.zst works just fine for me.

At the same time OP got his error, also using pacman. I got this error two ago, too, it worked fine in the meantime, until today.

pbek commented 3 months ago

I wonder what Arch does differently... 🤔

alsternerd commented 3 months ago

I wonder what Arch does differently... 🤔

As a longterm Debian user I sadly have no idea, but running into the same thing several times is something. But yes it works perfectly fine with curl, too. Maybe there's some problem with the redirect from download.opensuse.org to ftp.gwdg.de or the filesize is not delivered correctly.

Did run it with --debug, the maxsize seems a bit low with ~ 4 MB, I wonder where this comes from.

`debug: qownnotes-24.7.2-1-x86_64.pkg.tar.zst: url is https://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Arch_Extra/x86_64/qownnotes-24.7.2-1-x86_64.pkg.tar.zst

debug: qownnotes-24.7.2-1-x86_64.pkg.tar.zst: maxsize 4100758

debug: qownnotes-24.7.2-1-x86_64.pkg.tar.zst: opened tempfile for download: /var/cache/pacman/pkg/qownnotes-24.7.2-1-x86_64.pkg.tar.zst.part (wb)

debug: qownnotes-24.7.2-1-x86_64.pkg.tar.zst: curl returned result 63 from transfer

Fehler: Konnte Datei 'qownnotes-24.7.2-1-x86_64.pkg.tar.zst' nicht von download.opensuse.org übertragen : Maximum file size exceeded

debug: qownnotes-24.7.2-1-x86_64.pkg.tar.zst: no more servers to retry

debug: curl_download_internal return code is -1 `

alsternerd commented 3 months ago

Ah, I think I found it.

The repository database has wring information about the filesize of the package and pacman then tells curl to only download the given size, which brakes if the file is bigger.

Got to it by this comment here: https://github.com/msys2/MSYS2-packages/issues/1025#issuecomment-508950464

pbek commented 3 months ago

Hah, interesting!