Comments (9)
Will do. Thanks for looking at it anyway :)
Will let you know if 3.1 fixes the issue!
from romm.
I don't know why, but after redeploying the container it just worked.
I didn't change any of the environment variables, nor did I clear out the persistent data. It just worked with 3.0.3
from romm.
can you try to login, get redirected, then post the container logs?
from romm.
Sure.
I redacted some of the lines, as they don't seem to have anything to do with the issue:
INFO: - "POST /login HTTP/1.0" 200 OK
INFO: [nginx][2024-03-27 15:11:03] client_ip - ethronrion "POST /api/login HTTP/1.1" 200 32 "http://server_ip:8091/login" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.418 uct="0.000" uht="0.418" urt="0.418"
INFO: - "GET /roms?size=15&order_by=id&order_dir=desc HTTP/1.0" 403 Forbidden
INFO: [nginx][2024-03-27 15:11:03] client_ip - - "GET /api/roms?size=15&order_by=id&order_dir=desc HTTP/1.1" 403 22 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.006 uct="0.000" uht="0.005" urt="0.005"
INFO: - "GET /platforms HTTP/1.0" 403 Forbidden
INFO: [nginx][2024-03-27 15:11:03] client_ip - - "GET /api/platforms HTTP/1.1" 403 22 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.006 uct="0.000" uht="0.005" urt="0.005"
INFO: - "GET /users/me HTTP/1.0" 403 Forbidden
INFO: [nginx][2024-03-27 15:11:03] client_ip - - "GET /api/users/me HTTP/1.1" 403 22 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.006 uct="0.000" uht="0.006" urt="0.006"
INFO: - "GET /stats HTTP/1.0" 200 OK
INFO: [nginx][2024-03-27 15:11:03] client_ip - - "GET /api/stats HTTP/1.1" 200 77 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.010 uct="0.000" uht="0.010" urt="0.010"
INFO: [nginx][2024-03-27 15:11:03] client_ip - - "GET /assets/platforms/linux.ico HTTP/1.1" 404 125 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" rt=0.001 uct="-" uht="-" urt="-"
Thanks for looking into this!
from romm.
Yeah seems the login endpoint 200s, but every request after 404s. Can you try a) in an incognito window, b) in another browser and c) clearing cookies for romm on your main browser? You're specifically looking for two called session
and csrftoken
.
from romm.
Already tried with an incognito window and also a different browser, as well as incognito in that one as well.
All exhibit the same weird behaviour.
All log in (200s), all seem to load some of the images of the scanned roms, and immediately redirect me to the login screen (403 on api/platforms).
INFO: - "GET /platforms HTTP/1.0" 403 Forbidden
INFO: [nginx][2024-03-27 16:22:05] client_ip - - "GET /api/platforms HTTP/1.1" 403 22 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" rt=0.002 uct="0.000" uht="0.002" urt="0.002"
INFO: - "GET /users/me HTTP/1.0" 403 Forbidden
INFO: [nginx][2024-03-27 16:22:05] client_ip - - "GET /api/users/me HTTP/1.1" 403 22 "http://server_ip:8091/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" rt=0.002 uct="0.000" uht="0.003" urt="0.003"
INFO: - "GET /stats HTTP/1.0" 200 OK
Even after cleaning out all cookies related to the server's IP I get the same behaviour of login window - logging in - immediate 403 on some assets, not all, and redirect to login window
from romm.
can you post your docker compose?
from romm.
I don't really have a compose file, due to unraid, but I can share my docker run command from unraid if that's okay:
docker run
-d
--name='RomM'
--net='bridge'
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="unRAID"
-e HOST_CONTAINERNAME="RomM"
-e 'IGDB_CLIENT_ID'='redacted'
-e 'IGDB_CLIENT_SECRET'='redacted'
-e 'DB_HOST'='dbhost'
-e 'DB_PORT'='3306'
-e 'DB_USER'='romm'
-e 'DB_NAME'='romm'
-e 'DB_PASSWD'='redacted'
-e 'ROMM_AUTH_SECRET'='redacted'
-e 'ROMM_AUTH_USERNAME'='user'
-e 'ROMM_AUTH_PASSWORD'='redacted'
-e 'DISABLE_CSRF_PROTECTION'='true'
-l net.unraid.docker.managed=dockerman
-p '8091:8080/tcp'
-v '/mnt/user/Games/':'/romm':'rw'
-v '/mnt/user/Games/library/':'/romm/library':'rw'
-v '/mnt/user/Games/resources':'/romm/resources':'rw'
-v '/mnt/user/Games/logs/romm':'/romm/logs':'rw'
-v '/mnt/user/Games/config/':'/romm/config':'rw'
-v '/mnt/user/Games/assets':'/romm/assets':'rw'
-v '/mnt/user/Games/romm_redis/':'/redis-data':'rw' 'zurdi15/romm:3.0.1'
I disabled CSRF as that wouldn't even let me log in (in neither browser, nor incognito windows)
from romm.
hmmm that looks right, you have ROMM_AUTH_SECRET
set. To be honest it's hard to debug this from a distance. We're going to release 3.1 in a day or two, try it then and see if it fixes the issue.
from romm.
Related Issues (20)
- [Feature] Import/Sync Collections from IGDB Lists HOT 2
- [Bug] Api Swagger page no longer works (/api/docs) HOT 1
- [Bug] Covers only found when searching manually removing extensions HOT 1
- [Bug] Task exceeded maximum timeout value (14400 seconds) HOT 6
- [Bug] Custom Covers not saved HOT 12
- [Other] Fixing/Removing wrong properties HOT 1
- [Feature] Make tags editable HOT 4
- [Feature] Better Discord/GitHub release notes parity HOT 3
- [Bug] domain.com/setup redirects to domain.com/login?next=/setup HOT 1
- [Feature] Youtube videos in the metadata HOT 2
- [Bug] Database Erasing Bug
- [Feature] Toggleable Flag or Text option for Region and Language HOT 3
- [Feature] ignore cue files (PSX) HOT 2
- [Bug] "Scan failed: File 'AutoPlay/Audio/Click1.wav' is encrypted, password required for extraction" HOT 2
- [Feature] Change IGDB Language / UI Language? HOT 1
- Failed to load HDF files in amiga
- [UI/UX] Platform icon overlays on recently added games.
- [Bug] Video game sizes do not update in Romm
- [Feature] Support other additional video game files HOT 1
- [Feature] Organization of Roms in the library after their identification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from romm.