[GH-ISSUE #123] [BUG] IO Error permission denied while starting Downloading #62

Open
opened 2026-02-17 17:11:59 -05:00 by yindo · 7 comments
Owner

Originally created by @Lukas-Heiligenbrunner on GitHub (Aug 20, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop-app/issues/123

Describe the bug
So I'm getting this error while trying to download a game. I'm unsure if this is a Server or Client error.
I've double checked, the client has definitly access rights to the download directory. (I've also tried to create a custom download directory, same error.)

It creates also a game directory which is corrupt. When retrying to download the game, the app crashes. I need to manually delete the games directory.

If you think this is totally my fault, feel free to close the issue. :)

To Reproduce
Steps to reproduce the behavior:
Added a game, tried to download it, Downloaded ~200MB then this error pops up.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Archlinux Kernel 6.16.0
  • Gnome 48 -- Wayland
  • App Version 0.3.2

Additional context
Logs Client:

2025-08-20T12:18:41.122019184+02:00 | INFO | src/lib.rs:227 - detected games missing: []
2025-08-20T12:18:41.128226474+02:00 | INFO | src/lib.rs:357 - initialized drop client

(drop-app:23622): libayatana-appindicator-WARNING **: 12:18:41.183: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.

(drop-app:23622): Gtk-CRITICAL **: 12:18:41.292: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
2025-08-20T12:18:48.637290889+02:00 | INFO | src/download_manager/download_manager_frontend.rs:110 - creating download with meta DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game }
2025-08-20T12:18:48.637358609+02:00 | INFO | src/download_manager/download_manager_builder.rs:231 - starting download for DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game }
2025-08-20T12:18:48.647529810+02:00 | INFO | src/games/downloads/download_agent.rs:319 - buckets: 171
2025-08-20T12:18:48.662199521+02:00 | INFO | src/games/downloads/download_agent.rs:152 - beginning download for 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba...
2025-08-20T12:18:48.688764463+02:00 | INFO | src/games/downloads/download_agent.rs:369 - download context: 262eb5b0-e839-4751-9dca-b3ddc2659e04
2025-08-20T12:18:53.936143993+02:00 | WARN | src/games/downloads/download_agent.rs:421 - game download agent error: io error: Permission denied (os error 13)
2025-08-20T12:18:53.936160073+02:00 | WARN | src/games/downloads/download_agent.rs:431 - retry logic failed, not re-attempting.
2025-08-20T12:18:53.936211023+02:00 | ERROR | src/games/downloads/download_agent.rs:604 - error while managing download: io error: Permission denied (os error 13)
2025-08-20T12:18:54.115116501+02:00 | WARN | src/games/downloads/download_agent.rs:421 - game download agent error: io error: Permission denied (os error 13)
2025-08-20T12:18:54.115141951+02:00 | WARN | src/games/downloads/download_agent.rs:431 - retry logic failed, not re-attempting.
2025-08-20T12:18:55.491439070+02:00 | INFO | src/games/downloads/download_agent.rs:469 - download agent for 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba exited without completing (68/392) (171 buckets)

There seem to be no relevant server logs:

drop-1  | No pending migrations to apply.
drop-1  | Listening on http://[::]:3000
drop-1  | [17:32:41.739] INFO (90): AuthManager initialized
drop-1  | [17:32:41.752] WARN (90): skipping metadata provider setup: Error: Missing config item GIANT_BOMB_API_KEY for GiantBomb
drop-1  | [17:32:41.752] INFO (90): enabled metadata provider: PCGamingWiki
drop-1  | [17:32:41.773] INFO (90): enabled metadata provider: IGDB
drop-1  | [17:32:41.781] INFO (90): enabled auth: OpenID

Client logs when retrying the download:

2025-08-20T12:26:03.578514171+02:00 | INFO | src/download_manager/download_manager_frontend.rs:110 - creating download with meta DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game }
2025-08-20T12:26:03.578560201+02:00 | INFO | src/download_manager/download_manager_builder.rs:231 - starting download for DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game }
panicked at src/games/downloads/download_agent.rs:265:18:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
zsh: IOT instruction (core dumped)  ./drop-app

Originally created by @Lukas-Heiligenbrunner on GitHub (Aug 20, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop-app/issues/123 **Describe the bug** So I'm getting this error while trying to download a game. I'm unsure if this is a Server or Client error. I've double checked, the client has definitly access rights to the download directory. (I've also tried to create a custom download directory, same error.) It creates also a game directory which is corrupt. When retrying to download the game, the app crashes. I need to manually delete the games directory. If you think this is totally my fault, feel free to close the issue. :) **To Reproduce** Steps to reproduce the behavior: Added a game, tried to download it, Downloaded ~200MB then this error pops up. **Screenshots** <img width="560" height="260" alt="Image" src="https://github.com/user-attachments/assets/6bf91649-f991-42ec-ad9e-cb2cd622499f" /> **Desktop (please complete the following information):** - OS: Archlinux Kernel 6.16.0 - Gnome 48 -- Wayland - App Version 0.3.2 **Additional context** Logs Client: ``` 2025-08-20T12:18:41.122019184+02:00 | INFO | src/lib.rs:227 - detected games missing: [] 2025-08-20T12:18:41.128226474+02:00 | INFO | src/lib.rs:357 - initialized drop client (drop-app:23622): libayatana-appindicator-WARNING **: 12:18:41.183: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code. (drop-app:23622): Gtk-CRITICAL **: 12:18:41.292: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed 2025-08-20T12:18:48.637290889+02:00 | INFO | src/download_manager/download_manager_frontend.rs:110 - creating download with meta DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game } 2025-08-20T12:18:48.637358609+02:00 | INFO | src/download_manager/download_manager_builder.rs:231 - starting download for DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game } 2025-08-20T12:18:48.647529810+02:00 | INFO | src/games/downloads/download_agent.rs:319 - buckets: 171 2025-08-20T12:18:48.662199521+02:00 | INFO | src/games/downloads/download_agent.rs:152 - beginning download for 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba... 2025-08-20T12:18:48.688764463+02:00 | INFO | src/games/downloads/download_agent.rs:369 - download context: 262eb5b0-e839-4751-9dca-b3ddc2659e04 2025-08-20T12:18:53.936143993+02:00 | WARN | src/games/downloads/download_agent.rs:421 - game download agent error: io error: Permission denied (os error 13) 2025-08-20T12:18:53.936160073+02:00 | WARN | src/games/downloads/download_agent.rs:431 - retry logic failed, not re-attempting. 2025-08-20T12:18:53.936211023+02:00 | ERROR | src/games/downloads/download_agent.rs:604 - error while managing download: io error: Permission denied (os error 13) 2025-08-20T12:18:54.115116501+02:00 | WARN | src/games/downloads/download_agent.rs:421 - game download agent error: io error: Permission denied (os error 13) 2025-08-20T12:18:54.115141951+02:00 | WARN | src/games/downloads/download_agent.rs:431 - retry logic failed, not re-attempting. 2025-08-20T12:18:55.491439070+02:00 | INFO | src/games/downloads/download_agent.rs:469 - download agent for 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba exited without completing (68/392) (171 buckets) ``` There seem to be no relevant server logs: ``` drop-1 | No pending migrations to apply. drop-1 | Listening on http://[::]:3000 drop-1 | [17:32:41.739] INFO (90): AuthManager initialized drop-1 | [17:32:41.752] WARN (90): skipping metadata provider setup: Error: Missing config item GIANT_BOMB_API_KEY for GiantBomb drop-1 | [17:32:41.752] INFO (90): enabled metadata provider: PCGamingWiki drop-1 | [17:32:41.773] INFO (90): enabled metadata provider: IGDB drop-1 | [17:32:41.781] INFO (90): enabled auth: OpenID ``` Client logs when retrying the download: ``` 2025-08-20T12:26:03.578514171+02:00 | INFO | src/download_manager/download_manager_frontend.rs:110 - creating download with meta DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game } 2025-08-20T12:26:03.578560201+02:00 | INFO | src/download_manager/download_manager_builder.rs:231 - starting download for DownloadableMetadata { id: "7a2d0706-f8a8-4edd-a519-ec26b5eb15ba", version: Some("v3"), download_type: Game } panicked at src/games/downloads/download_agent.rs:265:18: called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } zsh: IOT instruction (core dumped) ./drop-app ```
yindo added the bugneeds-triage labels 2026-02-17 17:11:59 -05:00
Author
Owner

@DecDuck commented on GitHub (Aug 20, 2025):

Drop pre-allocates all the game files when starting a game, they're not actually corrupt, just empty.

It looks like Drop can't access the directory you're trying to install to. Can you check the permissions?

P.S. Thanks for the great bug report with all the logs up front :)

@DecDuck commented on GitHub (Aug 20, 2025): Drop pre-allocates all the game files when starting a game, they're not actually corrupt, just empty. It looks like Drop can't access the directory you're trying to install to. Can you check the permissions? P.S. Thanks for the great bug report with all the logs up front :)
Author
Owner

@Lukas-Heiligenbrunner commented on GitHub (Aug 20, 2025):

Ok, thanks.
So the preallocation seems to work and I gave the whole drop folder permissions 777 (chmod -R 777 ~/.local/share/drop).
There is also enough space available.
This is weird.

-- When I start the drop client as root user the game downloads fine (but doesn't start because the umu launcher complains bc. of root). So it seems to be definitly a permission problem somehow.

❯ ls -la
total 28
drwxrwxrwx 1 lukas lukas  160 Aug 20 12:26 .
drwx------ 1 lukas lukas 1710 Aug 20 12:34 ..
drwxrwxrwx 1 lukas lukas  704 Aug 20 12:11 cache
-rw-r--r-- 1 lukas lukas  211 Aug 20 12:18 crash-1755685104.log
-rw-r--r-- 1 lukas lukas  211 Aug 20 12:26 crash-1755685563.log
-rw------- 1 lukas lukas 1293 Aug 20 12:25 drop.db
-rwxrwxrwx 1 lukas lukas 2444 Aug 20 12:26 drop.log
drwxrwxrwx 1 lukas lukas   72 Aug 20 12:15 games
drwxrwxrwx 1 lukas lukas    0 Aug 20 12:10 logs
drwxrwxrwx 1 lukas lukas    0 Aug 20 12:10 pfx
drwxrwxrwx 1 lukas lukas   32 Aug 20 12:10 .webview
❯ pwd
/home/lukas/.local/share/drop
❯ cd games
❯ ls -la
total 0
drwxrwxrwx 1 lukas lukas  72 Aug 20 12:15 .
drwxrwxrwx 1 lukas lukas 160 Aug 20 12:26 ..
drwxrwxrwx 1 lukas lukas 626 Aug 20 12:15 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba
❯ du -hs .
11G	.
❯ cd 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba
❯ du -hs
11G	.
❯ du -hs *
28K	0x0407.ini
28K	0x040a.ini
28K	0x040c.ini
28K	0x0410.ini
24K	0x0415.ini
24K	0x0809.ini
2.2M	Autorun.exe
220K	autorun.ico
4.0K	Autorun.inf
1.1M	data1.cab
64K	data1.hdr
1.8G	data2.cab
3.3G	Files
572K	ISSetup.dll
12K	layout.bin
412K	msvcp100.dll
756K	msvcr100.dll
5.3G	rld-an27.iso
792K	setup.exe
4.0K	setup.ini
288K	setup.inx
4.0M	setup.isn
161M	support
@Lukas-Heiligenbrunner commented on GitHub (Aug 20, 2025): Ok, thanks. So the preallocation seems to work and I gave the whole drop folder permissions 777 (chmod -R 777 ~/.local/share/drop). There is also enough space available. This is weird. -- When I start the drop client as root user the game downloads fine (but doesn't start because the umu launcher complains bc. of root). So it seems to be definitly a permission problem somehow. ``` ❯ ls -la total 28 drwxrwxrwx 1 lukas lukas 160 Aug 20 12:26 . drwx------ 1 lukas lukas 1710 Aug 20 12:34 .. drwxrwxrwx 1 lukas lukas 704 Aug 20 12:11 cache -rw-r--r-- 1 lukas lukas 211 Aug 20 12:18 crash-1755685104.log -rw-r--r-- 1 lukas lukas 211 Aug 20 12:26 crash-1755685563.log -rw------- 1 lukas lukas 1293 Aug 20 12:25 drop.db -rwxrwxrwx 1 lukas lukas 2444 Aug 20 12:26 drop.log drwxrwxrwx 1 lukas lukas 72 Aug 20 12:15 games drwxrwxrwx 1 lukas lukas 0 Aug 20 12:10 logs drwxrwxrwx 1 lukas lukas 0 Aug 20 12:10 pfx drwxrwxrwx 1 lukas lukas 32 Aug 20 12:10 .webview ❯ pwd /home/lukas/.local/share/drop ❯ cd games ❯ ls -la total 0 drwxrwxrwx 1 lukas lukas 72 Aug 20 12:15 . drwxrwxrwx 1 lukas lukas 160 Aug 20 12:26 .. drwxrwxrwx 1 lukas lukas 626 Aug 20 12:15 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba ❯ du -hs . 11G . ❯ cd 7a2d0706-f8a8-4edd-a519-ec26b5eb15ba ❯ du -hs 11G . ❯ du -hs * 28K 0x0407.ini 28K 0x040a.ini 28K 0x040c.ini 28K 0x0410.ini 24K 0x0415.ini 24K 0x0809.ini 2.2M Autorun.exe 220K autorun.ico 4.0K Autorun.inf 1.1M data1.cab 64K data1.hdr 1.8G data2.cab 3.3G Files 572K ISSetup.dll 12K layout.bin 412K msvcp100.dll 756K msvcr100.dll 5.3G rld-an27.iso 792K setup.exe 4.0K setup.ini 288K setup.inx 4.0M setup.isn 161M support ```
Author
Owner

@DecDuck commented on GitHub (Aug 30, 2025):

Hey, did you manage to fix this?

@DecDuck commented on GitHub (Aug 30, 2025): Hey, did you manage to fix this?
Author
Owner

@Lukas-Heiligenbrunner commented on GitHub (Nov 18, 2025):

Just updated to the latest version, and I still have the same error.
But it might be just a 'me' error, if I'm the only one who has this.
Feel free to close it if I'm the only one and I'll investigate more if I find time. :)

@Lukas-Heiligenbrunner commented on GitHub (Nov 18, 2025): Just updated to the latest version, and I still have the same error. But it might be just a 'me' error, if I'm the only one who has this. Feel free to close it if I'm the only one and I'll investigate more if I find time. :)
Author
Owner

@DecDuck commented on GitHub (Nov 18, 2025):

I think the issue is the manifest is incorrectly setting the permission field to 0, which gives this behaviour.

v0.3.4 shipped both serverside and clientside fixes for this, but if that hasn't fixed your issue, I'm not aware of the root cause.

Edit: nevermind, just reread the issue and that's not it.

@DecDuck commented on GitHub (Nov 18, 2025): I think the issue is the manifest is incorrectly setting the permission field to 0, which gives this behaviour. v0.3.4 shipped both serverside and clientside fixes for this, but if that hasn't fixed your issue, I'm not aware of the root cause. Edit: nevermind, just reread the issue and that's not it.
Author
Owner

@Lukas-Heiligenbrunner commented on GitHub (Nov 18, 2025):

I'll try out 0.3.4 I think I have currently 0.3.3 installed. (A more obvious label somewhere in frontend would be great btw. ;))
Thanks!

Edit:
You seem to be the maintainer of the AUR package, as soon as you update it I can test it out. :)

Edit2:

Please add libappindicator and libayatana-appindicator as dependencies for the aur package. I needed to install them manually.

@Lukas-Heiligenbrunner commented on GitHub (Nov 18, 2025): I'll try out 0.3.4 I think I have currently 0.3.3 installed. (A more obvious label somewhere in frontend would be great btw. ;)) Thanks! Edit: You seem to be the maintainer of the AUR package, as soon as you update it I can test it out. :) Edit2: Please add `libappindicator` and `libayatana-appindicator` as dependencies for the aur package. I needed to install them manually.
Author
Owner

@DecDuck commented on GitHub (Nov 19, 2025):

Just updated the AUR packages and fixed the dependencies for you, give it a shot.

@DecDuck commented on GitHub (Nov 19, 2025): Just updated the AUR packages and fixed the dependencies for you, give it a shot.
yindo changed title from [BUG] IO Error permission denied while starting Downloading to [GH-ISSUE #123] [BUG] IO Error permission denied while starting Downloading 2026-06-05 14:24:35 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop-app#62