Skip to content

Error 500 in Service Desk due missing asset

Summary

Service desk returns Server error due missing asset /opt/gitlab/embedded/service/gitlab-rails/app/assets/images/bot_avatars/support-bot.png.

Steps to reproduce

  1. Install GitLab CE in Docker
  2. Create a new project
  3. Open Service Desk

What is the current bug behavior?

Service Desk returns Error 500.

What is the expected correct behavior?

Working Service desk.

Relevant logs and/or screenshots

Started GET "/open-source/iqrf-gateway-webapp/-/issues/service_desk" for 2001:470:5bb2::bd5 at 2020-07-22 15:48:09 +0000
Processing by Gitlab::RequestForgeryProtection::Controller#index as HTML
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 92)
Processing by Projects::IssuesController#service_desk as HTML
  Parameters: {"namespace_id"=>"open-source", "project_id"=>"iqrf-gateway-webapp"}
Completed 500 Internal Server Error in 25ms (ActiveRecord: 5.3ms | Elasticsearch: 0.0ms | Allocations: 9543)
  
Errno::ENOENT (No such file or directory @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/app/assets/images/bot_avatars/support-bot.png):
  
app/models/concerns/avatarable.rb:41:in `initialize'
app/models/concerns/avatarable.rb:41:in `open'
app/models/concerns/avatarable.rb:41:in `open'
app/models/concerns/avatarable.rb:41:in `bot_avatar'
app/models/user.rb:667:in `block in support_bot'
app/models/concerns/has_unique_internal_users.rb:39:in `create_unique_internal'
app/models/concerns/has_unique_internal_users.rb:10:in `unique_internal'
app/models/user.rb:664:in `support_bot'
app/controllers/projects/issues_controller.rb:334:in `finder_options'
app/controllers/concerns/issuable_collections.rb:79:in `issuable_finder_for'
app/controllers/concerns/issuable_collections.rb:134:in `finder'
app/controllers/concerns/issuable_collections.rb:57:in `issuables_collection'
app/controllers/concerns/issuable_collections.rb:18:in `set_issuables_index'
app/controllers/application_controller.rb:491:in `set_current_admin'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:482:in `set_session_storage'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:476:in `set_locale'
lib/gitlab/error_tracking.rb:50:in `with_context'
app/controllers/application_controller.rb:541:in `sentry_context'
app/controllers/application_controller.rb:469:in `block in set_current_context'
lib/gitlab/application_context.rb:52:in `block in use'
lib/gitlab/application_context.rb:52:in `use'
lib/gitlab/application_context.rb:20:in `with_context'
app/controllers/application_controller.rb:462:in `set_current_context'
lib/gitlab/request_profiler/middleware.rb:17:in `call'
lib/gitlab/middleware/go.rb:20:in `call'
lib/gitlab/etag_caching/middleware.rb:13:in `call'
lib/gitlab/middleware/multipart.rb:140:in `call'
lib/gitlab/middleware/read_only/controller.rb:51:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/same_site_cookies.rb:27:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'
lib/gitlab/middleware/request_context.rb:23:in `call'
config/initializers/fix_local_cache_middleware.rb:9:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:60:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'

Output of checks

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.6.6p146
Gem Version:	2.7.10
Bundler Version:1.17.3
Rake Version:	12.3.3
Redis Version:	5.0.9
Git Version:	2.27.0
Sidekiq Version:5.2.9
Go Version:	unknown

GitLab information
Version:	13.2.0
Revision:	d47fc5085a7
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	11.7
URL:		https://gitlab.iqrf.org
HTTP Clone URL:	https://gitlab.iqrf.org/some-group/some-project.git
SSH Clone URL:	ssh://git@gitlab.iqrf.org:2222/some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: github

GitLab Shell
Version:	13.3.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
GitLab Shell: ... GitLab Shell version >= 13.3.0 ? ... OK (13.3.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? ... Checking gitlab@iqrf.org 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: ... 3/1 ... yes 3/2 ... yes 27/4 ... yes 3/5 ... yes 51/7 ... yes 1/9 ... yes 27/10 ... yes 40/11 ... yes 30/14 ... yes 3/15 ... yes 31/16 ... yes 27/17 ... yes 40/18 ... yes 31/19 ... yes 27/20 ... yes 27/24 ... yes 27/25 ... yes 47/26 ... yes 47/27 ... yes 47/28 ... yes 47/29 ... yes 51/30 ... yes 51/31 ... yes 60/32 ... yes 57/33 ... yes 57/34 ... yes 63/35 ... yes 61/36 ... yes 63/37 ... yes 64/38 ... yes 31/39 ... yes 51/40 ... yes 51/41 ... yes 51/42 ... yes 51/43 ... yes 3/45 ... yes 1/47 ... yes 66/48 ... yes 67/49 ... yes 51/50 ... yes 3/51 ... yes 27/52 ... yes 3/53 ... yes 67/54 ... yes 67/55 ... yes 118/56 ... yes 3/57 ... yes 67/58 ... yes 3/59 ... yes 51/60 ... yes 67/61 ... yes 67/62 ... yes 27/63 ... yes 67/64 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.6) Git version >= 2.22.0 ? ... yes (2.27.0) Git user has default SSH configuration? ... yes Active users: ... 55 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... no Try fixing it: Please migrate all projects to hashed storage as legacy storage is deprecated in 13.0 and support will be removed in 14.0. For more information see: doc/administration/repository_storage_types.md

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished