illacloud / deploy-illa-manually

Deploy illa utils manually. Docker, docker compose and k8s are all avaliable in this repo.
Apache License 2.0
37 stars 20 forks source link

Can't change root password in Deploy All-in-One docker Image #13

Open MasterMong opened 1 year ago

MasterMong commented 1 year ago

Can't change root password because root email to get Verification code is uneditable https://www.dropbox.com/scl/fi/7zusdb28bvcre5hgztlqd/Screenshot-2023-10-30-172816.png?rlkey=lqhoyfd17yjcys6bre7xiw2nh&dl=1

Pillenski commented 11 months ago

I've the same problem and ended up modifiying the user in the database.

  1. Open a shell inside your container. For example: docker exec -it illa-builder sh
  2. Use psql to update the user: psql -U postgres -d illa_supervisor -c "UPDATE users SET email = 'your-name@your-domain.com' WHERE nickname = 'root';"

Alternatively you can set the new password as bcrypt hash directly: psql -U postgres -d illa_supervisor -c "UPDATE users SET password_digest = '$2a$10$...' WHERE nickname = 'root';"