Error occured when trying to stop environment
Summary
I am in the environments view. I want to stop/delete an environment. When I click the stop button and confirm the prompt, GitLab shows an error:
An error occured while making the request.
Steps to reproduce
I currently don't have time to test if this happens on a fresh GitLab instance, or if it only happens when the environment is in a subfolder. If you can't reproduce it, I can put some time into it later.
What is the current bug behavior? (see summary)
What is the expected correct behavior?
It should kick off the job to stop the environment.
Relevant logs and/or screenshots
From docker-compose logs
:
==> /var/log/gitlab/gitlab-rails/production.log <== Started POST "/tamera.org/wp-deploy/environments" for 172.19.0.3 at 2017-04-28 12:26:16 +0000 Processing by Projects::EnvironmentsController#create as JSON Parameters: {"namespace_id"=>"tamera.org", "project_id"=>"wp-deploy"} Completed 400 Bad Request in 57ms (ActiveRecord: 8.6ms) Sending event 50edc9f6730f47b1aa0d8fcbe035c8ca to SentryActionController::ParameterMissing (param is missing or the value is empty: environment): app/controllers/projects/environments_controller.rb:132:in
environment_params' app/controllers/projects/environments_controller.rb:62:in
create' lib/gitlab/middleware/multipart.rb:93:incall' lib/gitlab/request_profiler/middleware.rb:14:in
call' lib/gitlab/middleware/go.rb:16:incall' lib/gitlab/etag_caching/middleware.rb:10:in
call' lib/gitlab/request_context.rb:18:in `call'==> /var/log/gitlab/gitlab-workhorse/current <== 2017-04-28_12:26:17.81237 gitlab.tamera.org @ - - [2017-04-28 12:26:16.625287225 +0000 UTC] "POST /tamera.org/wp-deploy/environments HTTP/1.1" 400 38 "https://gitlab.tamera.org/tamera.org/wp-deploy/environments" "Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0" 1.187001
==> /var/log/gitlab/nginx/gitlab_access.log <== 172.19.0.3 - - [28/Apr/2017:12:26:17 +0000] "POST /tamera.org/wp-deploy/environments HTTP/1.1" 400 38 "https://gitlab.tamera.org/tamera.org/wp-deploy/environments" "Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"
Results of GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.11.1 Sidekiq Version:4.2.7GitLab information Version: 9.1.0 Revision: c3f0f14 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.x.org HTTP Clone URL: https://gitlab.x.org/some-group/some-project.git SSH Clone URL: git@gitlab.x.org:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.0.2 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Checking GitLab Shell ... GitLab Shell version >= 5.0.2 ? ... OK (5.0.2) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 4/1 ... ok 4/2 ... ok 5/3 ... ok 4/4 ... ok 4/5 ... ok 5/6 ... ok 4/7 ... ok 7/8 ... ok 4/11 ... ok 4/12 ... ok 4/14 ... ok 4/15 ... ok 6/16 ... ok 9/17 ... ok 4/18 ... ok 4/19 ... ok 5/21 ... ok 4/22 ... ok 12/23 ... ok 12/24 ... ok 12/25 ... ok 12/26 ... ok 12/27 ... ok 12/28 ... ok 12/29 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Sidekiq ... Running? ... yes Number of Sidekiq processes ... 1 Checking Sidekiq ... Finished Checking Reply by email ... Reply by email is disabled in config/gitlab.yml Checking Reply by email ... Finished Checking LDAP ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab ... Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 4/1 ... yes 4/2 ... yes 5/3 ... yes 4/4 ... yes 4/5 ... yes 5/6 ... yes 4/7 ... yes 7/8 ... yes 4/11 ... yes 4/12 ... yes 4/14 ... yes 4/15 ... yes 6/16 ... yes 9/17 ... yes 4/18 ... yes 4/19 ... yes 5/21 ... yes 4/22 ... yes 12/23 ... yes 12/24 ... yes 12/25 ... yes 12/26 ... yes 12/27 ... yes 12/28 ... yes 12/29 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.3) Your git bin path is "/opt/gitlab/embedded/bin/git" Git version >= 2.7.3 ? ... yes (2.11.1) Active users: 10 Checking GitLab ... Finished