Unable to create new project in gitlab 11.8.1, error 500
Summary
When creating a new project the server returns an error 500.
Steps to reproduce
- Click on "Start new project"
- Fill in the form (if it matters, create a project in a group rather than your own account)
- Send in the form
Example Project
N/A
What is the current bug behavior?
Upon sending in the form the server waits for a while and then returns an error 500.
What is the expected correct behavior?
The new project gets created and I get redirected to the new project's page.
Relevant logs and/or screenshots
sudo gitlab-ctl tail
:
==> /var/log/gitlab/gitlab-rails/production.log <==
Unable to save project. Error: 4:Deadline Exceeded
/var/log/gitlab/gitlab-rails/production.log
:
Started POST "/projects" for 127.0.0.1 at 2019-03-08 10:31:13 +0100
Processing by ProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "project"=>{"ci_cd_only"=>"false", "name"=>"example-site", "namespace_id"=>"14", "path"=>"example-site", "description"=>"", "visibility_level"=>"0"}}
Started GET "/-/metrics" for 127.0.0.1 at 2019-03-08 10:31:21 +0100
Processing by MetricsController#index as HTML
Completed 200 OK in 7ms (Views: 3.1ms)
Unable to save project. Error: 4:Deadline Exceeded
Completed 500 Internal Server Error in 20305ms (ActiveRecord: 50.2ms)
ActionView::Template::Error (4:Deadline Exceeded):
15: %meta{ property: 'og:site_name', content: site_name }
16: %meta{ property: 'og:title', content: page_title }
17: %meta{ property: 'og:description', content: page_description }
18: %meta{ property: 'og:image', content: page_image }
19: %meta{ property: 'og:image:width', content: '64' }
20: %meta{ property: 'og:image:height', content: '64' }
21: %meta{ property: 'og:url', content: request.base_url + request.fullpath }
lib/gitlab/gitaly_client.rb:166:in `call'
lib/gitlab/gitaly_client/ref_service.rb:42:in `default_branch_name'
lib/gitlab/git/repository.rb:109:in `root_ref'
app/models/repository.rb:535:in `root_ref'
lib/gitlab/repository_cache_adapter.rb:21:in `block (2 levels) in cache_method'
lib/gitlab/repository_cache.rb:24:in `fetch'
lib/gitlab/repository_cache_adapter.rb:99:in `block in cache_method_output'
lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
lib/gitlab/repository_cache_adapter.rb:127:in `block in memoize_method_output'
lib/gitlab/repository_cache_adapter.rb:136:in `no_repository_fallback'
lib/gitlab/repository_cache_adapter.rb:126:in `memoize_method_output'
lib/gitlab/repository_cache_adapter.rb:98:in `cache_method_output'
lib/gitlab/repository_cache_adapter.rb:20:in `block in cache_method'
app/models/repository.rb:667:in `head_commit'
app/models/repository.rb:678:in `tree'
app/models/repository.rb:993:in `file_on_head'
app/models/repository.rb:587:in `block in avatar'
lib/gitlab/gitaly_client.rb:304:in `allow_n_plus_1_calls'
app/models/repository.rb:586:in `avatar'
lib/gitlab/repository_cache_adapter.rb:21:in `block (2 levels) in cache_method'
lib/gitlab/repository_cache.rb:24:in `fetch'
lib/gitlab/repository_cache_adapter.rb:99:in `block in cache_method_output'
lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
lib/gitlab/repository_cache_adapter.rb:127:in `block in memoize_method_output'
lib/gitlab/repository_cache_adapter.rb:136:in `no_repository_fallback'
lib/gitlab/repository_cache_adapter.rb:126:in `memoize_method_output'
lib/gitlab/repository_cache_adapter.rb:98:in `cache_method_output'
lib/gitlab/repository_cache_adapter.rb:20:in `block in cache_method'
app/models/project.rb:1112:in `avatar_in_git'
app/models/project.rb:1116:in `avatar_url'
app/models/concerns/avatarable.rb:24:in `avatar_url'
app/helpers/page_layout_helper.rb:52:in `page_image'
app/views/layouts/_head.html.haml:18:in `_app_views_layouts__head_html_haml__2221105163712592707_69960524284700'
app/views/layouts/application.html.haml:3:in `_app_views_layouts_application_html_haml___4213213994417979435_69960546700000'
app/controllers/application_controller.rb:113:in `render'
app/controllers/projects_controller.rb:60:in `create'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:423:in `set_locale'
lib/gitlab/middleware/multipart.rb:103:in `call'
lib/gitlab/request_profiler/middleware.rb:16:in `call'
lib/gitlab/middleware/go.rb:20:in `call'
lib/gitlab/etag_caching/middleware.rb:13:in `call'
lib/gitlab/middleware/correlation_id.rb:16:in `block in call'
lib/gitlab/correlation_id.rb:15:in `use_id'
lib/gitlab/middleware/correlation_id.rb:15:in `call'
lib/gitlab/middleware/read_only/controller.rb:40:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:20:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:29:in `call'
lib/gitlab/middleware/release_env.rb:13:in `call'
Output of checks
N/A (If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.6
Bundler Version:1.16.6
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.18.1
Sidekiq Version:5.2.5
Go Version: unknown
GitLab information
Version: 11.8.1
Revision: 657d508
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://git.example.com
HTTP Clone URL: https://git.example.com/some-group/some-project.git
SSH Clone URL: git@git.example.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.4.4
Repository storage paths:
- default: /mnt/nas/gitlab/data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4)
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 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: ... Reply by email is disabled in config/gitlab.yml
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: ...
2/3 ... yes
2/4 ... yes
2/7 ... yes
2/8 ... yes
2/9 ... yes
2/10 ... yes
6/11 ... yes
2/12 ... yes
3/13 ... yes
2/15 ... yes
13/17 ... yes
13/18 ... yes
13/19 ... yes
13/20 ... yes
13/21 ... yes
2/22 ... yes
14/23 ... yes
14/24 ... yes
2/25 ... yes
2/26 ... yes
2/27 ... yes
2/28 ... yes
2/29 ... yes
2/30 ... yes
2/31 ... yes
2/32 ... yes
2/33 ... yes
2/34 ... yes
14/35 ... yes
2/36 ... yes
2/37 ... yes
14/38 ... yes
14/39 ... yes
2/40 ... yes
2/41 ... yes
2/42 ... yes
2/43 ... yes
2/44 ... yes
2/45 ... yes
2/46 ... yes
2/47 ... yes
2/48 ... yes
4/49 ... yes
2/50 ... yes
2/51 ... yes
2/52 ... yes
2/53 ... yes
2/54 ... yes
2/55 ... yes
2/56 ... yes
14/57 ... yes
14/58 ... yes
2/59 ... yes
2/60 ... yes
2/61 ... yes
2/62 ... yes
2/63 ... yes
2/64 ... yes
2/65 ... yes
2/66 ... yes
2/67 ... yes
14/68 ... yes
16/69 ... yes
4/71 ... yes
16/72 ... yes
16/73 ... yes
14/74 ... yes
13/75 ... yes
2/76 ... yes
2/77 ... yes
2/78 ... yes
2/79 ... yes
2/80 ... yes
13/81 ... yes
9/82 ... yes
4/83 ... yes
7/84 ... yes
2/85 ... yes
3/86 ... yes
2/87 ... yes
4/88 ... yes
23/89 ... yes
2/90 ... yes
24/91 ... yes
24/92 ... yes
4/93 ... yes
14/94 ... yes
9/95 ... yes
4/96 ... yes
3/97 ... yes
2/99 ... yes
3/100 ... yes
4/101 ... yes
27/102 ... yes
24/103 ... yes
2/104 ... yes
24/105 ... yes
27/106 ... yes
2/107 ... yes
2/108 ... yes
2/109 ... yes
2/110 ... yes
14/111 ... yes
2/112 ... yes
24/113 ... yes
2/114 ... yes
2/115 ... yes
14/116 ... yes
2/117 ... yes
2/118 ... yes
9/119 ... yes
2/120 ... yes
2/121 ... yes
2/122 ... yes
3/123 ... yes
2/124 ... yes
2/125 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.1)
Git user has default SSH configuration? ... yes
Active users: ... 19
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
N/A
Edited by Vashiru