latenighttales / alcali

Featureful Saltstack GUI
https://alcali.dev
MIT License
356 stars 61 forks source link

Cannot log into alcali GUI #352

Closed darmadoo closed 3 years ago

darmadoo commented 3 years ago

I was following the guide from https://alcali.dev/installation using the formula method authenticating using REST. The salt master server and the alcali server is on different boxes. Salt master -> 10.0.0.1 Alcali -> 10.0.0.2

I was able to get the alcali service up.

Screen Shot 2021-06-07 at 11 07 58 PM

I also created the superuser using ./manage.py createsuperuser, and verified that i see the user in the DB on the alcali server (salt.auth_user)

I did the checks as provided in the guide.

Screen Shot 2021-06-07 at 11 09 23 PM

However, when I try to login at http://10.0.0.2:5000/#/login. I get an error like this:

Screen Shot 2021-06-07 at 11 12 17 PM

I am positive that the salt-api works because I am able to create a token for the user using ./manage.py manage_token devops and use that token to login curl --noproxy '*' -si http://10.0.0.1:8000/login \ -c ~/cookies.txt \ -H "Accept: application/json" \ -H "Content-type: application/json" \ -d '{ "username": "devops", "password": "<token from .manage.py>", "eauth": "rest" }' and then grab all the minions curl --noproxy '*' -b ~/cookies.txt -si http://10.0.0.1:8000/ \ -H "Accept: application/json" \ -d client='local' -d tgt='*' -d fun='test.ping'

Any help would be appreciated! Thank you!

mattLLVW commented 3 years ago

Your version of Alcali seems a bit old (latest is 3003.1.0) but that's strange because your troubleshooting is good. you're getting a 500 error.

Did you do the migration?

darmadoo commented 3 years ago

Should I upgrade to the develop branch? 3000.1 seems to be the latest non develop branch on Github.

I also did the migration.

darmadoo commented 3 years ago

So I checked out the new develop branch, did a pip install -r requirements/prod.txt and restarted the service and I am able to log into the dashboard! I am testing out all the functionality to see if everything works and I will update you