ruby on rails - GitLab redirects to page 422 upon installation -


i installed gitlab following documentation page. server accessible http://foobar.com/gitlab. have passenger+apache installation. (unicorn running). after installation finished, loads login page, when type default username/password(root/5ivel!fe), redirects 422 page following error:

422 change requested rejected. 

i thought maybe there wrong password, tried reset password console when running gitlab-rails console production , sudo -u git -h gitlab-rails console production got following error:

ls: cannot access /opt/gitlab/embedded/service/gitlab-rails/log: no such file or directory chpst: fatal: unknown user/group: -u 

since first error cause there no log file, manually created log file after running command got following error:

chpst: fatal: unable setgroups: permission denied 

i don't know else. in production.log, complains csr token not being valid. assume means not supplying correct password, password given gitlab installation.

also might relevant, used guide configure apache. apache vhost portion gitlab looks this

 35  proxypass→→ → → /gitlab/→ http://127.0.0.1:8080/gitlab/  36  proxypassreverse →/gitlab/→ http://127.0.0.1:8080/gitlab/  37  proxypass→→ → → /gitlab http://127.0.0.1:8080/gitlab  38  proxypassreverse /gitlab http://127.0.0.1:8080/gitlab  39  proxypass→→ → → /assets→→ http://127.0.0.1:8080/gitlab/assets  40  proxypassreverse /assets→ http://127.0.0.1:8080/gitlab/assets 

since nobody has answered, post solution else might find beneficial. problem https. if turned off https option in gitlab.yml (https: false) able login. detailed solution can found here. had add following in virtualhosts(since have 1 foobar.com.conf , foobar.com-ssl.conf) file.

in foobar.com.conf file had add:

 rewritecond %{https} !=on  rewriterule .* https://%{server_name}%{request_uri} [ne,r,l] 

and in foobar.com-ssl.conf had add:

  rewriterule .* http://127.0.0.1:8080%{request_uri} [p,qsa]   requestheader set x_forwarded_proto 'https' 

for more troubleshooting problems visit here.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -