maloja icon indicating copy to clipboard operation
maloja copied to clipboard

Cannot login

Open nothing2obvi opened this issue 3 years ago • 14 comments

Hello, I'm a long-time user of Maloja. For some reason, using this new Docker image, I can't seem to login. The interface loads and everything, but after I enter the password and click on "Login," nothing happens. I have tried using the environment variables "MALOJA_FORCE_PASSWORD" and "MALOJA_SKIP_SETUP" either alone or together, even deleting my data directories and recreating the container.

nothing2obvi avatar May 09 '22 18:05 nothing2obvi

Can you open the dev console in the browser and check what it says when you load the login page and when you press the login button?

krateng avatar May 09 '22 18:05 krateng

Please lmk if this isn't what you're looking for.

today at 11:06:28 AM
today at 11:06:28 AMMaloja v3.1.3
today at 11:06:28 AMhttps://github.com/krateng/maloja
today at 11:06:28 AM
today at 11:06:38 AMVarious external services can be used to display images. If not enough of them are set up, only local images will be used.
today at 11:06:38 AM	Currently not using a Last.fm API Key for image display.
today at 11:06:38 AM	Currently not using a Spotify API ID for image display.
today at 11:06:38 AM	Currently not using a Spotify API Secret for image display.
today at 11:06:38 AM	Currently not using a TheAudioDB API Key for image display.
today at 11:06:38 AMPassword has been set.
today at 11:06:41 AM[server] Starting up Maloja server...
today at 11:06:41 AM[server] Listening on 0.0.0.0:42010
today at 11:06:45 AM[dbcache] Cache: Size: 1 | Hits: 0/1 | Estimated Memory: 128 B
today at 11:06:45 AM[dbcache] Entity Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
today at 11:06:45 AM[dbcache] System RAM Utilization: 91.8%
today at 11:06:45 AM[dbcache] 91.6% RAM usage, clearing cache!
today at 11:06:45 AM[dbcache] Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
today at 11:06:45 AM[dbcache] Entity Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
today at 11:06:45 AM[dbcache] System RAM Utilization: 91.6%
today at 11:06:45 AM[sqldb] Database Cleanup...
today at 11:06:45 AM[sqldb] Database Cleanup complete!
today at 11:06:46 AM[debug_performance] Executed jinja_page (('start',), {}) in 0.60s
today at 11:07:01 AMInvalid response
today at 11:07:03 AMInvalid response
today at 11:07:04 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:05 AMInvalid response
today at 11:07:14 AMInvalid response
today at 11:07:15 AMTraceback (most recent call last):
today at 11:07:15 AM  File "/usr/bin/bottle.py", line 868, in _handle
today at 11:07:15 AM    return route.call(**args)
today at 11:07:15 AM  File "/usr/bin/bottle.py", line 1748, in wrapper
today at 11:07:15 AM    rv = callback(*a, **ka)
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/nimrodel/_api.py", line 160, in route
today at 11:07:15 AM    result = self.handle(nodes,reqmethod,keys,headers)
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/nimrodel/_apifunction.py", line 79, in handle
today at 11:07:15 AM    return func(**querykeys,**pathkeys)
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 172, in get_token
today at 11:07:15 AM    if u.validate_challenge(challenge,response):
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 100, in validate_challenge
today at 11:07:15 AM    update()
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 151, in update
today at 11:07:15 AM    db.save()
today at 11:07:15 AM  File "/usr/lib/python3.9/site-packages/doreah/database.py", line 239, in save
today at 11:07:15 AM    os.replace(tmpfile,self_db.file)
today at 11:07:15 AMFileNotFoundError: [Errno 2] No such file or directory: '/config/auth/auth.ddb.tmp' -> '/config/auth/auth.ddb'
today at 11:08:28 AM[debug_performance] Executed jinja_page (('start',), {}) in 0.30s
today at 11:08:45 AMInvalid response
today at 11:08:46 AMInvalid response

nothing2obvi avatar May 11 '22 18:05 nothing2obvi

Could you list the content of your /config/auth/ folder?

krateng avatar May 12 '22 03:05 krateng

Something is wrong with the default app or container configuration. On a new install, MALOJA_FORCE_PASSWORD was set in the environment; there are no other configuration changes.

[server] Starting up Maloja server...
[server] Listening on *:42010
[dbcache] Cache: Size: 1 | Hits: 0/1 | Estimated Memory: 128 B
[dbcache] Entity Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
[dbcache] System RAM Utilization: 79.5%
[dbcache] 79.5% RAM usage, clearing cache!
[dbcache] Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
[dbcache] Entity Cache: Size: 0 | Hits: 0/0 | Estimated Memory: 72 B
[dbcache] System RAM Utilization: 79.5%
[sqldb] Database Cleanup...
[sqldb] Database Cleanup complete!
[debug_performance] Executed jinja_page (('start',), {}) in 0.12s
Invalid response
Invalid response
Invalid response
Invalid response
Invalid response
Invalid response
Invalid response
Invalid response
Invalid response

Screenshot_2022-07-14_21-11-54

Additionally, no auth folder was created inside of /config. Issue occurs on a1b2261.

Spoons avatar Jul 15 '22 02:07 Spoons

I have this same problem and am willing to provide data for debugging purposes.

qlyoung avatar Jul 26 '22 20:07 qlyoung

I've the same issue as well

Traceback (most recent call last):
  File "/usr/bin/bottle.py", line 870, in _handle
    return route.call(**args)
  File "/usr/bin/bottle.py", line 1750, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python3.9/site-packages/nimrodel/_api.py", line 160, in route
    result = self.handle(nodes,reqmethod,keys,headers)
  File "/usr/lib/python3.9/site-packages/nimrodel/_apifunction.py", line 79, in handle
    return func(**querykeys,**pathkeys)
  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 172, in get_token
    if u.validate_challenge(challenge,response):
  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 109, in validate_challenge
    if combine(pub,challenge) == combine(response,COMMON):
  File "/usr/lib/python3.9/site-packages/doreah/auth.py", line 74, in combine
    a = int(a,16)
ValueError: invalid literal for int() with base 16: ''

badlandspray avatar Jul 30 '22 09:07 badlandspray

@krateng Can you confirm if you are able to reproduce or you need any more information?

badlandspray avatar Sep 12 '22 11:09 badlandspray

I can't reproduce this unfortunately.

Can you try using a password with only letters and digits, no spaces or symbols (if that's not already the case)? Also, if anyone affected would be willing to share their docker compose file that could be helpful.

krateng avatar Sep 12 '22 15:09 krateng

Sorry, this was my mistake. I don't remember adding force_password in settings.ini file and I was trying to login with a different password.

badlandspray avatar Sep 13 '22 08:09 badlandspray

Also having trouble logging in to the admin overview page. I type in my password and hit login but the autheticate request never returns a response (eventually client gets a gateway timeout)

image

There are no errors in the logs I can find.

EDIT: restarting the docker container fixed things :shrug:

FoxxMD avatar Sep 13 '22 13:09 FoxxMD

Strangely, restarting mine worked also, even though I've tried it many times in the past.

qlyoung avatar Sep 13 '22 15:09 qlyoung

I thought I had this issue too, but I realized I'm just goofy.

For anyone using a password manager that autofills, make sure you disable that. BitWarden will automatically fill the force-password field in the admin settings, and the settings save when you leave the page. So in my case, an incorrect password was filled in and I was not aware. Woops.

dobese avatar Feb 12 '23 18:02 dobese