Gitlab accidentally closed the sign-in, unable to log into the Web pit ...

Source: Internet
Author: User
Tags psql

Hand cheap accidentally with root in Gitlab backstage login function to turn off, then I was confused forced.

Here's how to fix it:

#进入数据库修改配置
[Email protected] ~]# gitlab-"/root"psql (9.2. ' help ' for help.gitlabhq_production

To view a list of repositories:

[Email protected] ~]# Gitlab-psql-L could not change directory to"/root"List of Databases Name| Owner |   Encoding |    Collate | Ctype |Access Privileges---------------------+-------------+----------+-------------+-------------+---------------------------------gitlabhq_production| Gitlab | UTF8 | en_US. utf-8| en_US. utf-8|Postgres| Gitlab-psql | UTF8 | en_US. utf-8| en_US. utf-8|Template0| Gitlab-psql | UTF8 | en_US. utf-8| en_US. utf-8| =c/"Gitlab-psql"+                     |          |             |             | |"Gitlab-psql"=ctc/"Gitlab-psql"template1| Gitlab-psql | UTF8 | en_US. utf-8| en_US. utf-8| =c/"Gitlab-psql"+                     |          |             |             | |"Gitlab-psql"=ctc/"Gitlab-psql"(4Rows

After entering the client:

Commands can be tab-out, very cow B
set signin_enabled=true5

Restart Gitlab:

Here because of the slow start of the GitLab Web error appears: 502, Whoops, GitLab is taking too much time to respond.

After waiting for port 8080 to start, access can be restored:

TCP        0      0127.0.  0.1:8080          0.0.  0.0:*               LISTEN      7275

[Email protected] ~]# gitlab-ctl restartok:run:gitlab72207226   723472417250 72557260) 0s

  

Gitlab accidentally closed the sign-in, unable to log into the Web pit ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.