Closed darmadoo closed 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?
Should I upgrade to the develop branch? 3000.1 seems to be the latest non develop branch on Github.
I also did the migration.
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
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.
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.
However, when I try to login at http://10.0.0.2:5000/#/login. I get an error like this:
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 logincurl --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 minionscurl --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!