Group creation fails with Mattermost enabled
When running through the I2P demo, when you go to create your first group you seem to always get an HTTP 500 error on the first time when creating the group.
If you simply use the back button and try again, it works. This is a big problem for demo's.
Server logs:
2017-05-04T15:58:59.180089391Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:58:59.180093692Z Started POST "/api/v4/jobs/request" for 127.0.0.1 at 2017-05-04 15:58:59 +0000
2017-05-04T15:58:59.186164821Z
2017-05-04T15:59:08.569031745Z Parameters: {"utf8"=>"✓", "authenticity_token"=>"cLlWtwLvuGRwWXDnVSk1tdR9cX+R3LFpXy3v1dXx+8IgFYPGIgVq8gABHZnz8siSOrsqDYSHfJiQWQwaA6jzmQ==", "group"=>{"path"=>"examples", "name"=>"examples", "description"=>"", "visibility_level"=>"20", "create_chat_team"=>"true"}}
2017-05-04T15:59:08.848693927Z Started POST "/oauth/token" for 127.0.0.1 at 2017-05-04 15:59:08 +0000
2017-05-04T15:59:08.851764443Z Processing by Doorkeeper::TokensController#create as JSON
2017-05-04T15:59:08.851776143Z Parameters: {"client_id"=>"aadas", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"https://mattermost.azure.s1lv.com/signup/gitlab/complete"}
2017-05-04T15:59:08.895776208Z Completed 200 OK in 44ms
2017-05-04T15:59:08.896399132Z
2017-05-04T15:59:08.896411232Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:08.896416132Z 2017-05-04_15:59:08.89616 gitlab.azure.s1lv.com 10.244.0.7:45658 - - [2017-05-04 15:59:08.844702276 +0000 UTC] "POST /oauth/token HTTP/1.1" 200 226 "" "Go-http-client/1.1" 0.051364
2017-05-04T15:59:08.897595377Z
2017-05-04T15:59:08.897605277Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:08.897609078Z Started GET "/api/v3/user" for 127.0.0.1 at 2017-05-04 15:59:08 +0000
2017-05-04T15:59:08.950350073Z
2017-05-04T15:59:08.950364674Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:08.950382674Z 2017-05-04_15:59:08.95012 gitlab.azure.s1lv.com 10.244.0.7:45660 - - [2017-05-04 15:59:08.896748845 +0000 UTC] "GET /api/v3/user HTTP/1.1" 200 712 "" "Go-http-client/1.1" 0.053331
2017-05-04T15:59:09.072131181Z
2017-05-04T15:59:09.072144782Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:09.072148682Z Completed 500 Internal Server Error in 503ms (ActiveRecord: 9.6ms)
2017-05-04T15:59:09.073253324Z
2017-05-04T15:59:09.073265324Z Mattermost::NoSessionError (No session could be set up, is Mattermost configured with Single Sign On?):
2017-05-04T15:59:09.073268724Z lib/mattermost/session.rb:39:in `block in with_session'
2017-05-04T15:59:09.073271624Z lib/mattermost/session.rb:137:in `with_lease'
2017-05-04T15:59:09.073273925Z lib/mattermost/session.rb:38:in `with_session'
2017-05-04T15:59:09.073276325Z lib/mattermost/client.rb:12:in `with_session'
2017-05-04T15:59:09.073278625Z lib/mattermost/client.rb:34:in `session_post'
2017-05-04T15:59:09.073289025Z lib/mattermost/team.rb:11:in `create'
2017-05-04T15:59:09.073305326Z app/services/mattermost/create_team_service.rb:9:in `execute'
2017-05-04T15:59:09.073308026Z app/services/groups/create_service.rb:26:in `execute'
2017-05-04T15:59:09.073310726Z app/controllers/groups_controller.rb:32:in `create'
2017-05-04T15:59:09.073313426Z lib/gitlab/middleware/multipart.rb:93:in `call'
2017-05-04T15:59:09.073316126Z lib/gitlab/request_profiler/middleware.rb:14:in `call'
2017-05-04T15:59:09.073318726Z lib/gitlab/middleware/go.rb:16:in `call'
2017-05-04T15:59:09.073321326Z lib/gitlab/etag_caching/middleware.rb:10:in `call'
2017-05-04T15:59:09.073324226Z lib/gitlab/request_context.rb:18:in `call'
2017-05-04T15:59:09.073326927Z
2017-05-04T15:59:09.073329427Z
2017-05-04T15:59:09.074639976Z
2017-05-04T15:59:09.074648177Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:09.074651477Z 2017-05-04_15:59:09.07440 2017/05/04 15:59:09 ErrorPage: serving predefined error page: 500
2017-05-04T15:59:09.074654677Z 2017-05-04_15:59:09.07441 gitlab.azure.s1lv.com 10.244.0.7:45642 - - [2017-05-04 15:59:08.554549197 +0000 UTC] "POST /groups HTTP/1.1" 500 2911 "https://gitlab.azure.s1lv.com/groups/new" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36" 0.519737
2017-05-04T15:59:09.186186697Z
2017-05-04T15:59:09.186200898Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:09.186204598Z Started POST "/api/v4/jobs/request" for 127.0.0.1 at 2017-05-04 15:59:09 +0000
2017-05-04T15:59:09.189971140Z
2017-05-04T15:59:09.189984141Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:09.189988741Z 2017-05-04_15:59:09.18790 gitlab.azure.s1lv.com 10.244.0.7:45670 - - [2017-05-04 15:59:09.181698227 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.1.0 (9-1-stable; go1.7.5; linux/amd64)" 0.006109
2017-05-04T15:59:09.341347268Z 2017-05-04_15:59:09.34109 2017/05/04 15:59:09 Send static file "/opt/gitlab/embedded/service/gitlab-rails/public/favicon.ico" ("") for GET "/favicon.ico"
2017-05-04T15:59:09.343363044Z 2017-05-04_15:59:09.34314 gitlab.azure.s1lv.com 10.244.0.7:45672 - - [2017-05-04 15:59:09.340952153 +0000 UTC] "GET /favicon.ico HTTP/1.1" 200 5430 "https://gitlab.azure.s1lv.com/groups" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36" 0.001924
2017-05-04T15:59:10.185979428Z
2017-05-04T15:59:10.186005529Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:10.186009729Z Started POST "/api/v4/jobs/request" for 127.0.0.1 at 2017-05-04 15:59:10 +0000
2017-05-04T15:59:10.193353607Z
2017-05-04T15:59:10.193366207Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:10.193370607Z 2017-05-04_15:59:10.19036 gitlab.azure.s1lv.com 10.244.0.7:45686 - - [2017-05-04 15:59:10.184693079 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.1.0 (9-1-stable; go1.7.5; linux/amd64)" 0.005579
2017-05-04T15:59:11.184589614Z
2017-05-04T15:59:12.185365283Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:12.185370383Z Started POST "/api/v4/jobs/request" for 127.0.0.1 at 2017-05-04 15:59:12 +0000
2017-05-04T15:59:12.195559669Z
2017-05-04T15:59:12.195575569Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:12.195580470Z 2017-05-04_15:59:12.19537 gitlab.azure.s1lv.com 10.244.0.7:45704 - - [2017-05-04 15:59:12.183814324 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.1.0 (9-1-stable; go1.7.5; linux/amd64)" 0.011443
2017-05-04T15:59:12.737017357Z
2017-05-04T15:59:12.737045258Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:12.737049559Z Started POST "/groups" for 73.165.8.176 at 2017-05-04 15:59:12 +0000
2017-05-04T15:59:12.740160276Z Processing by GroupsController#create as HTML
2017-05-04T15:59:12.740180477Z Parameters: {"utf8"=>"✓", "authenticity_token"=>"cLlWtwLvuGRwWXDnVSk1tdR9cX+R3LFpXy3v1dXx+8IgFYPGIgVq8gABHZnz8siSOrsqDYSHfJiQWQwaA6jzmQ==", "group"=>{"path"=>"examples", "name"=>"examples", "description"=>"", "visibility_level"=>"20", "create_chat_team"=>"true"}}
2017-05-04T15:59:12.979943750Z Started POST "/oauth/token" for 127.0.0.1 at 2017-05-04 15:59:12 +0000
2017-05-04T15:59:12.982599650Z Processing by Doorkeeper::TokensController#create as JSON
2017-05-04T15:59:12.982614051Z Parameters: {"client_id"=>"aadas", "client_secret"=>"[FILTERED]", "code"=>"[FILTERED]", "grant_type"=>"authorization_code", "redirect_uri"=>"https://mattermost.azure.s1lv.com/signup/gitlab/complete"}
2017-05-04T15:59:13.015818307Z Completed 200 OK in 33ms
2017-05-04T15:59:13.016403529Z
2017-05-04T15:59:13.016417630Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:13.016422030Z 2017-05-04_15:59:13.01625 gitlab.azure.s1lv.com 10.244.0.7:45718 - - [2017-05-04 15:59:12.978817707 +0000 UTC] "POST /oauth/token HTTP/1.1" 200 226 "" "Go-http-client/1.1" 0.037340
2017-05-04T15:59:13.017779081Z
2017-05-04T15:59:13.017791582Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:13.017795582Z Started GET "/api/v3/user" for 127.0.0.1 at 2017-05-04 15:59:13 +0000
2017-05-04T15:59:13.063703419Z
2017-05-04T15:59:13.063719820Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:13.063724720Z 2017-05-04_15:59:13.06348 gitlab.azure.s1lv.com 10.244.0.7:45720 - - [2017-05-04 15:59:13.016935649 +0000 UTC] "GET /api/v3/user HTTP/1.1" 200 712 "" "Go-http-client/1.1" 0.046506
2017-05-04T15:59:13.184522191Z
2017-05-04T15:59:13.184536791Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:13.184540892Z Started POST "/api/v4/jobs/request" for 127.0.0.1 at 2017-05-04 15:59:13 +0000
2017-05-04T15:59:13.187215493Z
2017-05-04T15:59:13.187226993Z ==> /var/log/gitlab/gitlab-rails/application.log <==
2017-05-04T15:59:13.187230493Z May 04, 2017 15:59: Group "examples" was created
2017-05-04T15:59:13.189715687Z
2017-05-04T15:59:13.189727488Z ==> /var/log/gitlab/gitlab-workhorse/current <==
2017-05-04T15:59:13.189731988Z 2017-05-04_15:59:13.18950 gitlab.azure.s1lv.com 10.244.0.7:45730 - - [2017-05-04 15:59:13.183546754 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.1.0 (9-1-stable; go1.7.5; linux/amd64)" 0.005915
2017-05-04T15:59:13.264582020Z
2017-05-04T15:59:13.264617922Z ==> /var/log/gitlab/gitlab-rails/production.log <==
2017-05-04T15:59:13.264622722Z [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1e98ccb3-a256-4150-8835-545d0134f834) to Sidekiq(mailers) with arguments: "Notify", "member_access_granted_email", "deliver_now", "Group", 1
2017-05-04T15:59:13.265263646Z
2017-05-04T15:59:13.265275247Z ==> /var/log/gitlab/sidekiq/current <==
2017-05-04T15:59:13.265278947Z 2017-05-04_15:59:13.26511 2017-05-04T15:59:13.264Z 664 TID-otweo2ul4 ActionMailer::DeliveryJob JID-ce712c51f985aedd7f4bb506 INFO: start
Edited by Mark Pundsack