Wiki edits saving fails with HTTP ERROR 500
Summary
After upgrading self hosted Omnibus Gitlab CE to latest 11.2.0 editing a wiki page gives a 500 error. Changes to the Wiki page are saved - but no redirect to updated page happens instead gitlab shows 500 error.
Steps to reproduce
- Go to any wiki page on the first found project
- Click
edit
button - Make a change
- Click
save
button The ERROR 500 page loads.
Relevant logs and/or screenshots
Started GET "/alt/nm/wikis/home/edit" for 172.22.0.7 at 2018-08-22 21:50:11 +0300
Processing by Projects::WikisController#edit as HTML
Parameters: {"namespace_id"=>"alt", "project_id"=>"nm", "id"=>"home"}
Completed 200 OK in 2110ms (Views: 1564.9ms | ActiveRecord: 41.7ms)
Started GET "/uploads/-/system/group/avatar/53/180678746_308228e4b1ebf1ce4960eae74da5af84_800.png?width=15" for 172.22.0.7 at 2018-08-22 21:50:14 +0300
Processing by UploadsController#show as */*
Parameters: {"width"=>"15", "model"=>"group", "mounted_as"=>"avatar", "id"=>"53", "filename"=>"180678746_308228e4b1ebf1ce4960eae74da5af84_800.png"}
Sent file /opt/gitlab/embedded/service/gitlab-rails/public/uploads/-/system/group/avatar/53/180678746_308228e4b1ebf1ce4960eae74da5af84_800.png (0.2ms)
Completed 200 OK in 306ms (ActiveRecord: 12.1ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-08-22 21:50:19 +0300
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/-/metrics" for 127.0.0.1 at 2018-08-22 21:50:34 +0300
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started PUT "/alt/nm/wikis/home" for 172.22.0.7 at 2018-08-22 21:50:48 +0300
Processing by Projects::WikisController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "wiki"=>{"last_commit_sha"=>"bbc8d0531a188ba3c8e3bc91a0cf5b76a797bb1f", "title"=>"home", "format"=>"markdown", "content"=>"[FILTERED]", "message"=>"Update home"}, "namespace_id"=>"altair", "project_id"=>"nmdm", "id"=>"home"}
Started POST "/api/v4/internal/allowed" for 127.0.0.1 at 2018-08-22 21:50:48 +0300
Started POST "/api/v4/internal/pre_receive" for 127.0.0.1 at 2018-08-22 21:50:49 +0300
Started GET "/-/metrics" for 127.0.0.1 at 2018-08-22 21:50:49 +0300
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started POST "/api/v4/internal/post_receive" for 127.0.0.1 at 2018-08-22 21:50:49 +0300
Completed 500 Internal Server Error in 1410ms (ActiveRecord: 17.6ms)
Encoding::UndefinedConversionError ("\xD0" from ASCII-8BIT to UTF-8):
config/initializers/forbid_sidekiq_in_transactions.rb:35:in `block (2 levels) in <module:NoEnqueueingFromTransactions>'
app/models/service.rb:239:in `async_execute'
app/models/project.rb:1156:in `block (2 levels) in execute_services'
app/models/project.rb:1155:in `block in execute_services'
lib/after_commit_queue.rb:27:in `instance_eval'
lib/after_commit_queue.rb:27:in `run_after_commit_or_now'
app/models/project.rb:1154:in `execute_services'
app/services/wiki_pages/base_service.rb:10:in `execute_hooks'
app/services/wiki_pages/update_service.rb:7:in `execute'
app/controllers/projects/wikis_controller.rb:52:in `update'
lib/gitlab/i18n.rb:51:in `with_locale'
lib/gitlab/i18n.rb:57:in `with_user_locale'
app/controllers/application_controller.rb:401:in `set_locale'
lib/gitlab/middleware/multipart.rb:97:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:38:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.18.0 Sidekiq Version:5.1.3 Go Version: unknown
GitLab information Version: 11.2.0 Revision: 6a123f6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https:// HTTP Clone URL: https:// SSH Clone URL: ssh:// Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 8.1.1 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
Expand for output related to the GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 8.1.1 ? ... OK (8.1.1) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 4/1 ... ok 3/2 ... ok 4/5 ... ok 4/6 ... ok 65/22 ... ok 65/23 ... ok 65/24 ... ok 65/25 ... ok 65/26 ... ok 6/27 ... ok 6/28 ... ok 6/29 ... repository is empty 65/31 ... ok 65/32 ... ok 6/33 ... ok 65/36 ... ok 65/37 ... ok 65/38 ... ok 65/39 ... ok 65/40 ... ok 65/41 ... ok 65/42 ... ok 6/43 ... ok 6/44 ... ok 65/45 ... ok 65/46 ... ok 6/47 ... ok 6/48 ... ok 6/49 ... ok 14/56 ... ok 14/57 ... ok 14/58 ... ok 4/60 ... ok 90/61 ... ok 4/62 ... ok 14/64 ... ok 18/66 ... ok 90/67 ... ok 90/68 ... ok 4/70 ... ok 26/71 ... ok 90/74 ... ok 27/76 ... ok 4/77 ... ok 26/78 ... ok 27/79 ... ok 90/80 ... ok 14/81 ... ok 4/82 ... repository is empty 90/85 ... ok 90/86 ... ok 26/87 ... ok 90/88 ... ok 3/89 ... ok 4/90 ... ok 4/91 ... ok 12/93 ... ok 33/94 ... ok 33/95 ... ok 33/96 ... ok 19/97 ... ok 12/98 ... ok 35/105 ... ok 33/106 ... ok 35/107 ... ok 35/108 ... ok 35/109 ... ok 35/110 ... ok 35/111 ... ok 35/112 ... ok 35/113 ... ok 35/114 ... ok 35/115 ... ok 35/116 ... ok 35/118 ... ok 35/120 ... ok 35/121 ... ok 35/122 ... ok 35/123 ... ok 35/124 ... ok 35/125 ... ok 35/126 ... ok 32/127 ... ok 32/128 ... ok 32/129 ... ok 32/130 ... ok 53/131 ... ok 88/132 ... ok 88/133 ... ok 12/134 ... ok 43/137 ... ok 43/138 ... ok 26/139 ... ok 6/140 ... ok 32/141 ... ok 32/142 ... ok 44/143 ... ok 46/144 ... ok 44/145 ... ok 4/146 ... ok 32/147 ... ok 32/148 ... ok 26/149 ... ok 6/150 ... ok 26/151 ... ok 26/153 ... ok 26/155 ... ok 26/156 ... ok 88/157 ... ok 4/158 ... ok 46/163 ... ok 6/165 ... ok 6/166 ... ok 6/167 ... ok 6/168 ... ok 6/169 ... ok 6/170 ... ok 6/171 ... ok 88/172 ... ok 4/173 ... ok 6/174 ... ok 6/175 ... ok 19/176 ... ok 6/180 ... ok 6/181 ... ok 6/182 ... ok 6/183 ... ok 6/184 ... ok 6/185 ... ok 88/186 ... ok 59/187 ... ok 61/188 ... ok 61/189 ... repository is empty 12/190 ... ok 32/191 ... ok 26/192 ... ok 4/193 ... ok 32/194 ... ok 6/195 ... ok 6/196 ... ok 32/197 ... ok 65/198 ... ok 65/199 ... ok 6/200 ... ok 91/201 ... ok 91/202 ... ok 91/203 ... ok 26/214 ... ok 66/217 ... ok 4/218 ... ok 67/219 ... ok 27/220 ... ok 53/221 ... ok 4/222 ... ok 59/223 ... ok 70/224 ... ok 4/225 ... ok 35/226 ... ok 88/227 ... ok 4/228 ... ok 53/229 ... ok 4/230 ... ok 59/231 ... ok 32/232 ... ok 72/233 ... ok 53/234 ... ok 88/235 ... ok 12/237 ... ok 71/238 ... ok 3/239 ... repository is empty 71/240 ... ok 6/241 ... ok 73/242 ... ok 73/243 ... ok 73/244 ... ok 88/246 ... ok 6/247 ... ok 75/248 ... ok 53/249 ... ok 88/250 ... ok 88/251 ... ok 52/252 ... repository is empty 75/253 ... ok 53/254 ... ok 88/255 ... ok 88/256 ... ok 88/257 ... ok 26/258 ... ok 4/259 ... ok 53/260 ... ok 78/262 ... ok 78/263 ... ok 75/264 ... ok 81/265 ... ok 81/266 ... ok 14/267 ... ok 6/268 ... ok 27/269 ... ok 37/271 ... ok 6/274 ... ok 71/275 ... ok 89/277 ... ok 89/278 ... ok 89/279 ... ok 89/280 ... ok 89/281 ... ok 89/282 ... ok 89/284 ... ok 89/285 ... ok 89/286 ... ok 89/287 ... ok 89/288 ... ok 89/290 ... ok 19/291 ... ok 88/292 ... ok 88/293 ... ok 88/294 ... ok 88/295 ... ok 73/296 ... ok 29/297 ... ok 53/298 ... ok 44/299 ... ok 6/300 ... ok 65/301 ... repository is empty 32/304 ... ok 94/306 ... ok 67/307 ... ok 94/308 ... ok 66/309 ... ok 94/311 ... ok 53/312 ... ok 94/314 ... ok 94/315 ... ok 88/316 ... ok 53/317 ... ok 53/318 ... ok 53/319 ... ok 53/320 ... ok 53/321 ... ok 53/322 ... ok 53/323 ... ok 53/324 ... ok 1/325 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
Server: ldapmain not verifying SSL hostname of LDAPS server '172.00.0.00:389' LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results)
Checking LDAP ... Finished
Checking GitLab ...
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: ... 4/1 ... yes 3/2 ... yes 4/5 ... yes 4/6 ... yes 65/22 ... yes 65/23 ... yes 65/24 ... yes 65/25 ... yes 65/26 ... yes 6/27 ... yes 6/28 ... yes 6/29 ... yes 65/31 ... yes 65/32 ... yes 6/33 ... yes 65/36 ... yes 65/37 ... yes 65/38 ... yes 65/39 ... yes 65/40 ... yes 65/41 ... yes 65/42 ... yes 6/43 ... yes 6/44 ... yes 65/45 ... yes 65/46 ... yes 6/47 ... yes 6/48 ... yes 6/49 ... yes 14/56 ... yes 14/57 ... yes 14/58 ... yes 4/60 ... yes 90/61 ... yes 4/62 ... yes 14/64 ... yes 18/66 ... yes 90/67 ... yes 90/68 ... yes 4/70 ... yes 26/71 ... yes 90/74 ... yes 27/76 ... yes 4/77 ... yes 26/78 ... yes 27/79 ... yes 90/80 ... yes 14/81 ... yes 4/82 ... yes 90/85 ... yes 90/86 ... yes 26/87 ... yes 90/88 ... yes 3/89 ... yes 4/90 ... yes 4/91 ... yes 12/93 ... yes 33/94 ... yes 33/95 ... yes 33/96 ... yes 19/97 ... yes 12/98 ... yes 35/105 ... yes 33/106 ... yes 35/107 ... yes 35/108 ... yes 35/109 ... yes 35/110 ... yes 35/111 ... yes 35/112 ... yes 35/113 ... yes 35/114 ... yes 35/115 ... yes 35/116 ... yes 35/118 ... yes 35/120 ... yes 35/121 ... yes 35/122 ... yes 35/123 ... yes 35/124 ... yes 35/125 ... yes 35/126 ... yes 32/127 ... yes 32/128 ... yes 32/129 ... yes 32/130 ... yes 53/131 ... yes 88/132 ... yes 88/133 ... yes 12/134 ... yes 43/137 ... yes 43/138 ... yes 26/139 ... yes 6/140 ... yes 32/141 ... yes 32/142 ... yes 44/143 ... yes 46/144 ... yes 44/145 ... yes 4/146 ... yes 32/147 ... yes 32/148 ... yes 26/149 ... yes 6/150 ... yes 26/151 ... yes 26/153 ... yes 26/155 ... yes 26/156 ... yes 88/157 ... yes 4/158 ... yes 46/163 ... yes 6/165 ... yes 6/166 ... yes 6/167 ... yes 6/168 ... yes 6/169 ... yes 6/170 ... yes 6/171 ... yes 88/172 ... yes 4/173 ... yes 6/174 ... yes 6/175 ... yes 19/176 ... yes 6/180 ... yes 6/181 ... yes 6/182 ... yes 6/183 ... yes 6/184 ... yes 6/185 ... yes 88/186 ... yes 59/187 ... yes 61/188 ... yes 61/189 ... yes 12/190 ... yes 32/191 ... yes 26/192 ... yes 4/193 ... yes 32/194 ... yes 6/195 ... yes 6/196 ... yes 32/197 ... yes 65/198 ... yes 65/199 ... yes 6/200 ... yes 91/201 ... yes 91/202 ... yes 91/203 ... yes 26/214 ... yes 66/217 ... yes 4/218 ... yes 67/219 ... yes 27/220 ... yes 53/221 ... yes 4/222 ... yes 59/223 ... yes 70/224 ... yes 4/225 ... yes 35/226 ... yes 88/227 ... yes 4/228 ... yes 53/229 ... yes 4/230 ... yes 59/231 ... yes 32/232 ... yes 72/233 ... yes 53/234 ... yes 88/235 ... yes 12/237 ... yes 71/238 ... yes 3/239 ... yes 71/240 ... yes 6/241 ... yes 73/242 ... yes 73/243 ... yes 73/244 ... yes 88/246 ... yes 6/247 ... yes 75/248 ... yes 53/249 ... yes 88/250 ... yes 88/251 ... yes 52/252 ... yes 75/253 ... yes 53/254 ... yes 88/255 ... yes 88/256 ... yes 88/257 ... yes 26/258 ... yes 4/259 ... yes 53/260 ... yes 78/262 ... yes 78/263 ... yes 75/264 ... yes 81/265 ... yes 81/266 ... yes 14/267 ... yes 6/268 ... yes 27/269 ... yes 37/271 ... yes 6/274 ... yes 71/275 ... yes 89/277 ... yes 89/278 ... yes 89/279 ... yes 89/280 ... yes 89/281 ... yes 89/282 ... yes 89/284 ... yes 89/285 ... yes 89/286 ... yes 89/287 ... yes 89/288 ... yes 89/290 ... yes 19/291 ... yes 88/292 ... yes 88/293 ... yes 88/294 ... yes 88/295 ... yes 73/296 ... yes 29/297 ... yes 53/298 ... yes 44/299 ... yes 6/300 ... yes 65/301 ... yes 32/304 ... yes 94/306 ... yes 67/307 ... yes 94/308 ... yes 66/309 ... yes 94/311 ... yes 53/312 ... yes 94/314 ... yes 94/315 ... yes 88/316 ... yes 53/317 ... yes 53/318 ... yes 53/319 ... yes 53/320 ... yes 53/321 ... yes 53/322 ... yes 53/323 ... yes 53/324 ... yes 1/325 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.4) Git version >= 2.9.5 ? ... yes (2.18.0) Git user has default SSH configuration? ... yes Active users: ... 45
Checking GitLab ... Finished