vicalloy / outline-docker-compose

Install a self-hosted Outline wiki instance in a couple of minutes
BSD 3-Clause "New" or "Revised" License
738 stars 120 forks source link

First time installation create RSA key failed #42

Open surbiks opened 1 year ago

surbiks commented 1 year ago

hi If the make install command is executed for the first time, the creation of the RSA key will give an error (Something goes wrong: no such table: oidc_provider_rsakey) and the command must be executed again to create the RSA key. If the key is not created, it is not possible to login, or the key must be created manually and entered in the admin panel so that the login process works correctly.

❯ make install
cd ./scripts && bash ./main.sh init_cfg
/usr/bin/docker-compose up -d
[+] Running 8/8
 ⠿ Network outline_outlinewiki           Created                                                                                                                                                                                                                                     0.0s
 ⠿ Container outline-wk-redis-1          Started                                                                                                                                                                                                                                     0.8s
 ⠿ Container outline-wk-minio-1          Started                                                                                                                                                                                                                                     0.6s
 ⠿ Container outline-wk-postgres-1       Started                                                                                                                                                                                                                                     0.7s
 ⠿ Container outline-wk-oidc-server-1    Started                                                                                                                                                                                                                                     0.6s
 ⠿ Container outline-wk-createbuckets-1  Started                                                                                                                                                                                                                                     0.9s
 ⠿ Container outline-wk-outline-1        Started                                                                                                                                                                                                                                     1.1s
 ⠿ Container outline-wk-nginx-1          Started                                                                                                                                                                                                                                     1.5s
cd ./scripts && bash ./main.sh reload_nginx
2022/12/10 07:19:45 [notice] 29#29: signal process started
sleep 1
/usr/bin/docker-compose exec wk-oidc-server bash -c "make init"
python manage.py creatersakey
Something goes wrong: no such table: oidc_provider_rsakey
python manage.py createsuperuser

You have 27 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): oidc_provider, sessions.
Run 'python manage.py migrate' to apply them.

Username (leave blank to use 'root'): root