Skip to content
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

Cannot login #147

Open
nothing2obvi opened this issue May 9, 2022 · 12 comments
Open

Cannot login #147

nothing2obvi opened this issue May 9, 2022 · 12 comments

Comments

@nothing2obvi
Copy link

nothing2obvi commented May 9, 2022

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.

@krateng
Copy link
Owner

krateng commented May 9, 2022

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?

@nothing2obvi
Copy link
Author

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

@krateng
Copy link
Owner

krateng commented May 12, 2022

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

@Spoons
Copy link

Spoons commented Jul 15, 2022

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.

@qlyoung
Copy link

qlyoung commented Jul 26, 2022

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

@badlandspray
Copy link
Contributor

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
Copy link
Contributor

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

@krateng
Copy link
Owner

krateng commented Sep 12, 2022

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.

@badlandspray
Copy link
Contributor

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.

@FoxxMD
Copy link
Contributor

FoxxMD commented Sep 13, 2022

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 🤷

@qlyoung
Copy link

qlyoung commented Sep 13, 2022

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

@dobese
Copy link

dobese commented Feb 12, 2023

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.

aaron-em added a commit to aaron-em/maloja that referenced this issue Feb 19, 2023
This gave me a few minutes' trouble getting Maloja up and running! I'm still not sure if these are exactly all that's required, but I'm pretty sure they _are_ required when running Maloja in Docker.

(Possibly related to krateng#147 ?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants