Ali Zohrevand
Ali Zohrevand

Reputation: 423

Error 422 after installing gitlab on centos 7

I got into trouble after installing Gitlab on CentOs7. For the first time I was redirected to the admin password creation page and after the password for the admin user, the server sent error.

422
The change you requested was rejected.

I had set the url value based on the site guide.

Set the external_url in /etc/gitlab/gitlab.rb:

external_url "https://example.com/gitlab"

I checked the links below for similar situations. I didn't find the right answer. My server was in the local area and had no internet access.

Error 422 after installing gitlab on Ubuntu 18.04

After Update Error: "422 The change you requested was rejected."

Error 422 after installing Gitlab on Ubuntu 16.04

Upvotes: 1

Views: 2784

Answers (1)

Ali Zohrevand
Ali Zohrevand

Reputation: 423

I made a mistake when installing Gitlab. In the /etc/gitlab/gitlab.rb file I put the local gitlab address with https but due to the local server setup there was no "let's encrypt" service and I did not intend to access the site via ssl. I modified the address in the file and turne "https" to "http". After modifying the following commands, the problem was fixed.

sudo gitlab-ctl reconfigure


sudo gitlab-ctl restart

Upvotes: 2

Related Questions