Gitlab: Difference between revisions
remove line break |
Added a troubleshooting tip / workaround |
||
Line 118: | Line 118: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Login page accessible, but root login fails after fresh install === | |||
Apparently, it can happen that no root user is created (or at least not fully created in the database) when building the system with a newly configured Gitlab service. | |||
In this case, it can help to stop the Gitlab service, drop the postgres database and reboot the system. This sequence instantiates the Gitlab root user. With that, it's possible to log in with user "root" and the password configured in "initialRootPasswordFile".<syntaxhighlight lang="bash"> | |||
# stop the gitlab stack | |||
systemctl stop gitlab.service | |||
# drop the database | |||
sudo -u postgres dropdb gitlab | |||
# reboot (just starting the gitlab service again seems not to be sufficient) | |||
sudo reboot | |||
</syntaxhighlight> | |||
==Notes== | ==Notes== |