rommapp / romm

A beautiful, powerful, self-hosted rom manager
https://romm.app
GNU Affero General Public License v3.0
2.37k stars 96 forks source link

[Bug] Download not working on version 3.5+ #1276

Open Blacky25 opened 2 weeks ago

Blacky25 commented 2 weeks ago

RomM version 3.5+

Describe the bug I'm unable to download the games from the library. I get "ERR_INVALID_RESPONSE" for the example link: http://rommhost:port/api/roms/9/content/hidden%20hidden%20(Japan,%20Europe)%20(Ja).sg?

To Reproduce Start complete fresh with docker-compose. Create the Admin User and start the library scan. After seein the first covers i try to press the arrow for download and then this happens.

Expected behavior Download the game of course

Screenshots I think it is not needed it is just the default browser error

Desktop (please complete the following information):

Additional context This is the log while accessing the download:

clientip:0 - "GET /api/roms/19/content/XXXX.sc HTTP/1.0" 200

2024/11/03 19:43:14 [error] 27#27: *5 open() "/romm/library/roms/XXXX.sc" failed (13: Permission denied), client: clientip, server: localhost, request: "GET /api/roms/19/content/XXXXXX.sc? HTTP/1.1", upstream: "http://unix:/tmp/gunicorn.sock/api/roms/19/content/XXXXXXXX.sc?", host: "rommhost:port", referrer: "http://rommhost:port/"

INFO:     [nginx][2024-11-03 19:43:14]  clientip - - "GET /api/roms/19/content/XXXX.sc? HTTP/1.1" 403 555 "http://rommhost:port/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" rt=0.027 uct="0.000" uht="0.027" urt="0.027"

XXXX is the game rommhost is of course an ip port is the port and clientip the ip from the accessing machine.

Folder structure is

romm/library 
|-roms
     |-console a
     |-console b
|-bios
     |-console a
     |-console b

Starting fresh on Version 3.4 is working everything. Updating to the latest is giving me the ERR_INVALID_RESPONSE and starting fresh on the latest version is giving me ERR_INVALID_RESPONSE.

I completely deleted the browser history cookies etc between every attempt.

Because it tells in the error log that it is a permission error i already set my rom to permission 777 on the server but it still doesn't work.

I hope it is somehow clear what my problem is. This is the best i could do to describe it.

Greeting Blacky25

gantoine commented 5 days ago

Try reading through #1110 or #1245, see if anything in there helps.