HeroicGamesLauncher icon indicating copy to clipboard operation
HeroicGamesLauncher copied to clipboard

Download Fails With: "Not enough available disk space" if the home drive is full.

Open Domkeykong opened this issue 1 year ago • 4 comments

Describe the bug

When Downloading games that are bigger than the home drive heroic fails to download them.

Add logs

Heroic Version: 2.3.10 Brook
Legendary Version:  0.20.27 Dark Energy (hotfix)
OS: Freedesktop.org KERNEL: 5.18.10-76051810-generic ARCH: x64
CPU: AMD Ryzen 5 2600X Six-Core Processor @3.6 GOVERNOR: schedutil
RAM: Total: 15.58 GiB Available: 3.21 GiB
GRAPHICS: GPU0: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] VRAM: 256MB DRIVER:  
PROTOCOL: x11

(18:08:18) INFO:    [Backend]:         User Not Found, removing it from Store
(18:08:18) INFO:    [Gog]:             Getting data about the user
(18:08:18) WARNING: [Backend]:         Failed to register protocol with OS.
(18:08:18) INFO:    [Gog]:             Saved user data to config
(18:08:19) INFO:    [Frontend]:        Refreshing Library
(18:08:19) INFO:    [Legendary]:       Refreshing library...
(18:08:19) INFO:    [Gog]:             Getting GOG library
(18:08:19) INFO:    [Gog]:             Number of library pages: 1
(18:08:19) INFO:    [Gog]:             Saved games data
(18:08:19) INFO:    [Gog]:             Found 0 game(s) to update
(18:08:21) INFO:    [Backend]:         Downloaded Winetricks
(18:08:27) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:27) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:29) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:29) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:29) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:29) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:38) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:38) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:40) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:40) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:08:40) INFO:    [Gog]:             Installing 1439487606 with: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl download 1439487606 --platform linux --path=/media/<redacted>/LGames/Epic --token <redacted> --skip-dlcs --lang=en-US
(18:08:40) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl download 1439487606 --platform linux --path=/media/<redacted>/LGames/Epic --token <redacted> --skip-dlcs --lang=en-US
(18:08:40) DEBUG:   [Gog]:             Logging to file "/home/<redacted>/.var/app/com.heroicgameslauncher.hgl/config/heroic/GamesConfig/1439487606.log"
(18:09:30) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:09:30) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:09:30) ERROR:   [Backend]:         Not enough available disk space
(18:11:15) INFO:    [Backend]:         finished installing
(18:11:15) INFO:    [Frontend]:        Refreshing Library
(18:11:15) INFO:    [Gog]:             Getting GOG library
(18:11:15) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:11:15) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:11:15) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:11:15) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:11:15) INFO:    [Gog]:             Number of library pages: 1
(18:11:15) INFO:    [Gog]:             Saved games data
(18:11:15) INFO:    [Gog]:             Getting game metadata: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
(18:11:15) DEBUG:   [Gog]:             Running GOGDL command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1439487606 --token <redacted> --lang=en-US --os windows
[API] INFO: Getting info from products endpoint for id: 1439487606
[LINUX] INFO: Getting folder name from windows manifest
[LINUX] INFO: Getting downlad info
[API] INFO: Getting info from products endpoint for id: 1439487606
[LINUX] ERROR: Not enough available disk space
[LINUX] INFO: Using existing file
[LINUX] INFO: Checking available disk space
error: End-of-centdir-64 signature not where expected (prepended bytes?)
  (attempting to process anyway)
warning [/home/<redacted>/.var/app/com.heroicgameslauncher.hgl/cache/heroicGOGdl/soma_1_61_50361.s]:  931137 extra bytes at beginning or within zipfile
  (attempting to process anyway)
[LINUX] ERROR: Not enough available disk space

Steps to reproduce

  1. Fill up you home or root disk
  2. Try to download a game
  3. Watch your dreams shattering

Expected behavior

The game is downloaded and installed properly

Screenshots

No response

System Information

  • OS POP!_OS
  • Heroic Version 2.3.10

Additional information

The problem is most likely that gamefiles are downloaded to the home disk rather than the install disk. The game is also marked as installed, even if its not. Uninstalling also doesnt do anything.

Domkeykong avatar Aug 11 '22 16:08 Domkeykong

Are you sure the installation path is correct set to the partition, that has enough disk space? Else if the partition does not have space either, this is correct. Provide screenshots and logs with installation path set to the partition with enough space.

Nocccer avatar Aug 15 '22 10:08 Nocccer

This only happens for Linux games. It's the way installers work at this moment. .sh installer is being downloaded into cache directory, unpacked there and files are being moved into correct location.

imLinguin avatar Aug 15 '22 11:08 imLinguin

This will be solved by refactor I am preparing for gogdl, since that will use new way of downloading Linux native games, allowing to also update individual files instead of redownloading whole games over and over.

imLinguin avatar Aug 15 '22 11:08 imLinguin

As a workaround you can symlink the heroicGOGdl folder to another drive.

This seemed to work on my steamdeck, the paths will be different on other platforms and will depend on if you are using the flatpack version or not.

cd ~/.var/app/com.heroicgameslauncher.hgl/cache
rm -rfv heroicGOGdl
ln -s /run/mmcblk0p1/heroicGOGdl .
mkdir -p /run/mmcblk0p1/heroicGOGdl

dragon2611 avatar Sep 02 '22 12:09 dragon2611

Confirming I have gotten this issue too on my Steam Deck. Linux native version of X4 Foundations. 17GB install size. Only had 9GB free on internal storage. 100+GB on SD card where I chose to install it. Got a "Not enough space" warning. A X4 install .sh file was in the GOGdownloadcache folder on the internal drive. Freed some space on internal, and the install went through fine. Hopefully the cache location can be changed in the future. Haven't tried symlink yet but kinda lazy.

Inkerlink avatar Dec 27 '22 00:12 Inkerlink

In the latest update (2.6.2), the changelog says "[Linux] Fix not being able to download native GOG games", so i guess its refering to this case. Nevertheless it still isn´t working, i still have the same issue as described above.

unknownus1 avatar Feb 21 '23 11:02 unknownus1

In the latest update (2.6.2), the changelog says "[Linux] Fix not being able to download native GOG games", so i guess its refering to this case. Nevertheless it still isn´t working, i still have the same issue as described above.

That entry in the change log does not refer to this problem (we had a bug that native GOG games couldn't be installed for another problem, not a problem with disk space)

arielj avatar Feb 21 '23 12:02 arielj

I think I have the same problem on Steam Deck installing.

I was installing a

  • Linux native game from GOG
  • to SD card
  • Home partition is practically full

The download started. There was enough room on the SD card, but the install failed with an ungraceful error loop. Dismissing the error with the only available button (the X in the corner) brings it right back. Canceling the install is difficult as a result. The home directory became full in the process and seems to be the source of the error.

Relevant screenshots below.

FirewatchInstall1 InstallError

JValtteri avatar May 25 '23 14:05 JValtteri

For me heroic v2.10.0 gave this error message and the issue was also flatpak but not the cache, it just couldn't install to the target directory while complaining about disk space, with 7TB free. I suppose this is a common flatpak thing that you just have to give apps access to filesystem locations separately (and imo they should make this more user-friendly), but since heroic is aware it's running under flatpak the error message could be made better, claiming that user is out of disk space is confusing.

My issue was solved by flatpak override --user --filesystem=/media/user/drive/path com.heroicgameslauncher.hgl

stt avatar Dec 31 '23 12:12 stt