Gerrit2's default openid authentication method is used all the time. As a result, one day cannot log on. After checking the log, it is found that the company's network UDP port 123 is not opened, so the Gerrit server Ubuntu time is not synchronized with the openid time provided by Google, and authentication fails.
Company it is in the United States. It may take a long time to wait for them to complete the process. It is decided to switch to the basic HTTP verification.
First install nginx and set basic HTTP verification. refer to the previous articleArticle.
Then refer to Gerrit document: http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-sso.html#_http_basic_digest_authentication
Log on to the gerit server and run the three commands provided in the document.
Restart Gerrit service. Log on. A new user is automatically created, and my csfreebird@gmail.com.
In the Gerrit database, delete the records with ID 1000000 in the accounts and accounts_external_ids tables and set the newly added user ID to 1000000.
Restart Gerrit service, clear the browser cache, and then log on! Now the new user is the administrator.
It is hereby recorded.