Error Tracking (Sentry): Resolve action fails with "Failed to update issue status"
Summary
Errors in the "Error Tracking" (Sentry) list cannot be resolved.
(I'm using GitLab 12.10.0 with self-hosted Sentry 10.1.0.dev0-e54cbeb.)
Steps to reproduce
- Setup self-hosted Sentry.
- Setup Sentry in GitLab.
- Wait for error in Sentry.
- See error in GitLab.
- (In my case: Create issue for error, use Merge Request to resolve it.)
- Go to error list and "Resolve" error.
- See error message: "Failed to update issue status"
Example Project
(None.)
What is the current bug behavior?
The "Resolve" action fails in GitLab with an error message.
What is the expected correct behavior?
The "Resolve" action in GitLab should resolve the issue in Sentry.
Relevant logs and/or screenshots
$ sudo gitlab-ctl tail
==> /var/log/gitlab/gitlab-rails/production.log <==
Started PUT "/xxx/xxx/-/error_tracking/17.json" for xxx.xx.xxx.xx at 2020-04-23 14:55:09 +0200
Processing by Projects::ErrorTrackingController#update as JSON
Parameters: {"status"=>"resolved", "namespace_id"=>"xxx", "project_id"=>"xxx", "issue_id"=>"17", "error_tracking"=>{"status"=>"resolved"}}
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 400 Bad Request in 202ms (Views: 0.4ms | ActiveRecord: 3.3ms | Elasticsearch: 0.0ms | Allocations: 7419)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"PUT","path":"/xxx/xxx/-/error_tracking/17.json","format":"json","controller":"Projects::ErrorTrackingController","action":"update","status":400,"time":"2020-04-23T12:55:09.927Z","params":[{"key":"status","value":"resolved"},{"key":"namespace_id","value":"xxx"},{"key":"project_id","value":"xxx"},{"key":"issue_id","value":"17"},{"key":"error_tracking","value":{"status":"resolved"}}],"remote_ip":"xxx.xx.xxx.xx","user_id":2,"username":"claas","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0","queue_duration_s":null,"redis_calls":1,"redis_duration_s":0.0,"correlation_id":"6Lofh2iQYd1","cpu_s":0.07,"db_duration_s":0.0,"view_duration_s":0.0,"duration_s":0.2}
==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"6Lofh2iQYd1","duration_ms":231,"host":"gitlab.xxx.xxx","level":"info","method":"PUT","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.xxx.xxx/xxx/xxx/-/error_tracking","remote_addr":"xxx.xx.xxx.xx:0","remote_ip":"xxx.xx.xxx.xx","status":400,"system":"http","time":"2020-04-23T14:55:09+02:00","uri":"/xxx/xxx/-/error_tracking/17.json","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0","written_bytes":46}
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 18.04 Current User: git Using RVM: no Ruby Version: 2.6.5p114 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.7 Git Version: 2.26.2 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 12.10.0 Revision: 869bc26464b Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 11.7 URL: https://gitlab.xxx.xxx HTTP Clone URL: https://gitlab.xxx.xxx/some-group/some-project.git SSH Clone URL: git@gitlab.xxx.xxx:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 12.2.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 12.2.0 ? ... OK (12.2.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... 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: ... 21/1 ... yes 4/5 ... yes 5/6 ... yes 2/7 ... yes 19/11 ... yes 4/13 ... yes 19/16 ... yes 2/17 ... yes 4/18 ... yes 21/19 ... yes 21/20 ... yes 21/21 ... yes 21/22 ... yes 4/24 ... yes 21/25 ... yes 2/26 ... yes 4/27 ... yes 2/28 ... yes 4/29 ... yes 18/30 ... yes 18/31 ... yes 18/32 ... yes 18/33 ... yes 19/34 ... yes 2/35 ... yes 19/36 ... yes 19/38 ... yes 28/39 ... yes 27/40 ... yes 23/41 ... yes 24/42 ... yes 24/43 ... yes 23/44 ... yes 24/45 ... yes 23/46 ... yes 25/48 ... yes 25/49 ... yes 25/50 ... yes 26/52 ... yes 26/53 ... yes 26/54 ... yes 21/55 ... yes 27/56 ... yes 18/57 ... yes 18/58 ... yes 18/59 ... yes 18/60 ... yes 18/61 ... yes 18/62 ... yes 18/63 ... yes 18/64 ... yes 18/65 ... yes 18/66 ... yes 29/67 ... yes 29/68 ... yes 30/69 ... yes 26/70 ... yes 27/71 ... yes 26/72 ... yes 30/73 ... yes 2/74 ... yes 2/75 ... yes 22/76 ... yes 31/77 ... yes 19/78 ... yes 19/79 ... yes 2/80 ... yes 2/81 ... yes 4/82 ... yes 2/83 ... yes 19/84 ... yes 38/85 ... yes 21/86 ... yes 31/87 ... yes 26/88 ... yes 31/89 ... yes 29/90 ... yes 25/91 ... yes 31/92 ... yes 31/93 ... yes 2/94 ... yes 31/95 ... yes 29/96 ... yes 25/97 ... yes 19/99 ... yes 19/100 ... yes 38/101 ... yes 2/102 ... yes 31/103 ... yes 23/104 ... yes 19/105 ... yes 25/106 ... yes 34/107 ... yes 24/110 ... yes 2/111 ... yes 19/112 ... yes 19/113 ... yes 39/114 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.5) Git version >= 2.22.0 ? ... yes (2.26.2) Git user has default SSH configuration? ... yes Active users: ... 6 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
(Not sure)