flathub / com.jetbrains.IntelliJ-IDEA-Community

https://flathub.org/apps/details/com.jetbrains.IntelliJ-IDEA-Community
14 stars 11 forks source link

Error while updating to latest #159

Open t1u1 opened 9 months ago

t1u1 commented 9 months ago

flatpak version: 1.12.7

After downloading the update, flatpak gives this error:

Error: While pulling app/com.jetbrains.IntelliJ-IDEA-Community/x86_64/stable from remote flathub: URI
https://dl.flathub.org/repo/deltas/hv/KajdCfFMGZEUBkZ2WtWKpO5Gs1UFe_09u7x5XM+vA-0_YJs8VP3PGCdjYnjk0ntr5eP4qCMCoQYZPFwPlmiNo/4 
exceeded maximum size of 2693773 bytes
x80486 commented 9 months ago

I'm getting an HTTP 404 from Flathub on updates. I'm able to install from scratch, but I can't update from a previous version :grimacing:

x80486@ubuntu-vm:~$ flatpak update 
Looking for updates\u2026

        ID                                               Branch            Op            Remote            Download
 1. [\u2717] com.jetbrains.IntelliJ-IDEA-Community            stable            u             flathub           97.3\u00a0kB / 801.5\u00a0MB
Error: While pulling app/com.jetbrains.IntelliJ-IDEA-Community/x86_64/stable from remote flathub: Server returned status 404: Not Found
Updates complete.

# Removed everything and started from scratch...
x80486@ubuntu-vm:~$ flatpak install flathub com.jetbrains.IntelliJ-IDEA-Community 
Looking for matches\u2026
Remote \u2018flathub\u2019 found in multiple installations:

   1) system
   2) user

Which do you want to use (0 to abort)? [0-2]: 1
Required runtime for com.jetbrains.IntelliJ-IDEA-Community/x86_64/stable (runtime/org.freedesktop.Sdk/x86_64/23.08) found in remote flathub
Do you want to install it? [Y/n]: 

com.jetbrains.IntelliJ-IDEA-Community permissions:
    ipc      network     ssh-auth     wayland     x11     devices     devel     file access [1]     dbus access [2]

    [1] host, xdg-run/app/com.discordapp.Discord:create, xdg-run/gnupg:ro, xdg-run/keyring
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Flatpak, org.freedesktop.secrets, org.gnome.keyring.SystemPrompter

        ID                                               Branch            Op            Remote            Download
 1. [\u2713] org.freedesktop.Sdk.Locale                       23.08             i             flathub            18.2\u00a0kB / 361.9\u00a0MB
 2. [\u2713] org.freedesktop.Sdk                              23.08             i             flathub           415.0\u00a0MB / 555.5\u00a0MB
 3. [\u2713] com.jetbrains.IntelliJ-IDEA-Community            stable            i             flathub           804.3\u00a0MB / 801.5\u00a0MB

Installation complete.

I verified the downloads separately from JetBrains and they haven't changed, so I guess it must be an issue on the Flathub infrastructure.

geekley commented 9 months ago

I was getting both errors, sometimes 404, sometimes "exceed maximum size". Uninstalling (without deleting data) and reinstalling solved it for me too.

The URL seems to indicate it's a problem with the delta, apparently being too big. Strange, I'd assume if the delta is too big Flatpak should somehow fallback to just downloading the entire thing normally instead of a delta. Unless it's some sort of configuration issue, maybe you should report this upstream (to Flatpak itself)?

t1u1 commented 9 months ago

Where does the maximum delta size of 2693773 come from? Is it specific to this flatpak or imposed on all flatpaks? I doubt it is imposed on all flatpaks because it seems very small (less than 3 MB).

t1u1 commented 9 months ago

Somebody faced a similar issue in a different package, and the linked issue is not accessible anymore: https://www.reddit.com/r/flatpak/comments/10cw5zf/flatpak_exceeded_maximum_size/

seras42 commented 8 months ago

Have the same issue, i sometimes get different errors when updating via discovery, vs using the konsole. I submitted this error on flatpak mainstream https://github.com/flatpak/flatpak/issues/5648#issue-2069927053

Aborted due to failure (While pulling app/com.jetbrains.IntelliJ-IDEA-Community/x86_64/stable from remote flathub: URI https://dl.flathub.org/repo/deltas/hv/KajdCfFMGZEUBkZ2WtWKpO5Gs1UFe_09u7x5XM+vA-0_YJs8VP3PGCdjYnjk0ntr5eP9qCMCoQYZPFwPlmiNo/4 exceeded maximum size of 2693773 bytes)

And if use the console:

 1. [✗] com.jetbrains.IntelliJ-IDEA-Community            stable            u             flathub           274,6 kB / 801,5 MB

Error: While pulling app/com.jetbrains.IntelliJ-IDEA-Community/x86_64/stable from remote flathub: Server returned HTTP 404
Updates complete.