-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] (alpha) network error when loading rom for emulatorjs #1110
Comments
Relevant log lines for the request that's 403ing:
Looks like permission was denied when opening the file for reading. Error persists even after chmod 777. I tried to docker exec to a shell within the romm container, and can |
Have nothing to add except that I have the exact same issue. |
I have exactly the same problem, did you solve it? |
No, still a problem in the latest non beta 3.5 version. |
Got the same issue permissions are set to 777. In my case the roms are on a NFS share. Access with docker exec works and permission also look fine. In v3.3.0 everything worked fine for me. |
@adamantike Any chance this is related to the x-accel-redirect changes? |
looks like you're behind a proxy. What happens if you try to run the rom from the host:port directly? |
For me I’m running in docker, and no additional proxy is used. |
I tried to access it directly via port and it still got the same issue. |
I need to dig deeper into this, but something interesting I found, that could be the culprit of this issue, is that That wouldn't explain this issue if permissions are actually set as 777, but they would need to be set like that (or, at least 444) for the entire path containing the rom, not only the rom file itself. |
I was able to get this working by setting the |
Nothing to add, but confirming the error occurs whether I go through a reverse proxy or by direct IP:port. Dropping some basic error details from the dev-tools Network Tab, but I imagine it adds zero to the conversation.
|
I'm also having this issue |
Same here. |
I think I fixed it by defining the user and group that romm runs on, but I still have to have mariadb be root and using a docker volume |
Indeed |
I am running it in a Synology NAS and I had the same issue when I specified the user (with proper permissions to the files in the NAS) in the environment variables like this: PUID: 1026 It was able to read all the files without issues but it just wouldn't play. After switching to this: user: '1026:100' It works without issues now. |
I'm also running this on a Synology, but can't get it to work, can you share how I can set the "user" variable? I'm currently using the PUID and GUID variables, but when I remove those and replace it with user, it doesn't work... thanks! |
Im using docker compose. You can add the user line just like this:
I have 1036 because i created a user specifically for docker. You should not put your admin account there. |
Put the user line that I wrote in my comment right before the environment line.
Make sure that the user and group match the user/group that you have given permission in Synology. By default, the first account that you create (admin) is 1026 and 100. I've recorded a tutorial that will be released in my YouTube channel this Saturday. Channel is Tech Byte Tips. You can check that out later if you have questions. In Synology, you will likely have issues with MariaDB if you are using Docker-Compose and DSM 7.2. My video covers how to use the MariaDB in Package Manager instead. |
Confirmed. Adding the user parameter in the romm docker config granted access. Have a less privileged account that is used by docker to handle this. Thank you. |
RomM version
3.5.0 alpha 1
Describe the bug
When I try to play a ROM, I get a network error. Checking dev tools, I see a 403 on the HEAD request to the rom file.
To Reproduce
Play any rom
Expected behavior
The rom loads and plays
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I installed this alpha because I saw #1086 is included and wanted to try playing a game in the browser.
The text was updated successfully, but these errors were encountered: