ihatemoney icon indicating copy to clipboard operation
ihatemoney copied to clipboard

"Internal Server Error" when trying to access admin dashboard

Open lukeporr opened this issue 1 year ago • 4 comments

Environment: Ubuntu 22.04, installed I Hate Money (6.0.0) via Docker Browsers: Firefox and Chrome

Hi, I just installed I Hate Money via Docker. I set the needed environment flags to enable the admin dashboard. I can get to the page where I have to input the password but no matter what I put, as soon as I submit the form I get an "Internal Server Error".

Any ideas what might cause this? I Hate Money otherwise works perfectly fine.

lukeporr avatar Jul 15 '23 19:07 lukeporr

Is it possible for you to provide the stack trace (or the complete log) from the server?

Glandos avatar Jul 15 '23 19:07 Glandos

@luporr hi, can you please provide screen short or logs , iam a new contributor , i want to contribute in this bug , please let me know, i have tried but not able to reproduce or you can just let me know the steps you did in the project in cofiguration

priyambajpai22 avatar Jul 25 '23 10:07 priyambajpai22

Hello, I had the same internal server error. But that was because I didn't fully copy entierly the return from the shell command (ihatemoney generate_password_hash). On the log trace it was well indicated: /src/ihatemoney/run.py:118: UserWarning: The way Ihatemoney stores your ADMIN_PASSWORD has changed. You are using an unhashed ADMIN_PASSWORD, which is not supported anymore and won't let you access your admin endpoints. Please use the command 'ihatemoney generate_password_hash' to generate a proper password HASH and copy the output to the value of ADMIN_PASSWORD in your settings file.

Survolte avatar Aug 22 '23 05:08 Survolte

Sorry I never got back to provide log files. I did not have the capacity to do so back then.

Anyway, I freshly installed I Hate Money today and the password input seems to work in the sense that it throws an error and I cannot seem to get it to accept my password. I followed the procedure to properly hash it.

lukeporr avatar Sep 16 '23 20:09 lukeporr

Closing, feel free to open again if you have more detailed informations (logs, traceback, etc)

zorun avatar Apr 27 '24 14:04 zorun