500 Error when trying to create a new project (EE Evaluation related)
Summary
I opted into Gitlab EE evaluation. Evaluation time finished, and I switched back to the free version. Now I can't create new projects anymore, I get a 500 Error. In the production.log there's an ActionView::Template::Error
Exception (Project#closest_gitlab_subscription delegated to namespace.closest_gitlab_subscription, but namespace is nil).
What is the current bug behavior?
When clicking on New Project
I get an HTTP Error 500.
What is the expected correct behavior?
The form for creating a new Project should open
Relevant logs and/or screenshots
gitlab-rails/production.log
ActionView::Template::Error (Project#closest_gitlab_subscription delegated to namespace.closest_gitlab_subscription, but namespace is nil: #>): 21: - if subscribable.block_changes? 22: = link_to _('Upgrade your plan'), upgrade_subscription_path, class: 'btn gl-button btn-primary', data: { track_event: 'click_text', track_label: 'subscribable_action', track_property: 'upgrade' } 23: - else 24: = link_to _('Renew subscription'), renew_subscription_path, class: 'btn gl-button btn-primary gl-mr-3 gl-mb-2', data: { track_event: 'click_text', track_label: 'subscribable_action', track_property: 'renew' } 25: = link_to _('That is ok, I do not want to renew'), '#', data: { track_event: 'click_text', track_label: 'subscribable_action', track_property: 'thats_ok' }, 'aria-label' => 'Dismiss', class: 'btn gl-button btn-info btn-info-secondary js-close gl-mb-2'ee/app/models/ee/project.rb:202:in
rescue in closest_gitlab_subscription' ee/app/models/ee/project.rb:202:in
closest_gitlab_subscription' ee/app/helpers/ee/subscribable_banner_helper.rb:61:indecorated_subscription' ee/app/helpers/ee/subscribable_banner_helper.rb:25:in
renew_subscription_path' ee/app/views/layouts/header/_ee_subscribable_banner.html.haml:24 app/helpers/application_helper.rb:17:inrender_if_exists' app/views/layouts/_page.html.haml:18 app/views/layouts/application.html.haml:13 app/controllers/application_controller.rb:125:in
render' ee/lib/gitlab/ip_address_state.rb:10:inwith' ee/app/controllers/ee/application_controller.rb:44:in
set_current_ip_address' app/controllers/application_controller.rb:482:inset_current_admin' lib/gitlab/session.rb:11:in
with_session' app/controllers/application_controller.rb:473:inset_session_storage' lib/gitlab/i18n.rb:73:in
with_locale' lib/gitlab/i18n.rb:79:inwith_user_locale' app/controllers/application_controller.rb:467:in
set_locale' lib/gitlab/error_tracking.rb:52:inwith_context' app/controllers/application_controller.rb:532:in
sentry_context' app/controllers/application_controller.rb:460:inblock in set_current_context' lib/gitlab/application_context.rb:56:in
block in use' lib/gitlab/application_context.rb:56:inuse' lib/gitlab/application_context.rb:22:in
with_context' app/controllers/application_controller.rb:451:inset_current_context' lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in
call' lib/gitlab/middleware/rails_queue_duration.rb:33:incall' lib/gitlab/metrics/rack_middleware.rb:16:in
block in call' lib/gitlab/metrics/transaction.rb:56:inrun' lib/gitlab/metrics/rack_middleware.rb:16:in
call' lib/gitlab/request_profiler/middleware.rb:17:incall' lib/gitlab/jira/middleware.rb:19:in
call' lib/gitlab/middleware/go.rb:20:incall' lib/gitlab/etag_caching/middleware.rb:21:in
call' lib/gitlab/middleware/multipart.rb:172:incall' lib/gitlab/middleware/read_only/controller.rb:50:in
call' lib/gitlab/middleware/read_only.rb:18:incall' lib/gitlab/middleware/same_site_cookies.rb:27:in
call' lib/gitlab/middleware/handle_malformed_strings.rb:21:incall' lib/gitlab/middleware/basic_health_check.rb:25:in
call' lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:incall' lib/gitlab/middleware/request_context.rb:21:in
call' config/initializers/fix_local_cache_middleware.rb:11:incall' lib/gitlab/metrics/requests_rack_middleware.rb:76:in
call' lib/gitlab/middleware/release_env.rb:12:in `call'
Output of checks
Results of GitLab environment info
gitlab-rake gitlab:env:info
System information System: Debian 10 Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.10 Git Version: 2.29.0 Sidekiq Version:5.2.9 Go Version: unknownGitLab information Version: 13.9.3-ee Revision: 332cf9cc57c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.5 URL: http://git.jogoit.at HTTP Clone URL: http://git.jogoit.at/some-group/some-project.git SSH Clone URL: git@git.jogoit.at:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 13.17.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
gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.17.0 ? ... OK (13.17.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: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain not verifying SSL hostname of LDAPS server '192.168.100.100:636' LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 1 users of 100 limit.
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: ... 1/1 ... yes 1/2 ... yes 1/3 ... yes 1/4 ... yes 1/5 ... yes 2/7 ... yes 2/8 ... yes 1/9 ... yes 1/10 ... yes 1/11 ... yes 1/12 ... yes 1/13 ... yes 1/14 ... yes 1/16 ... yes 1/17 ... yes 2/18 ... yes 2/19 ... yes 2/20 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.2) Git version >= 2.29.0 ? ... yes (2.29.0) Git user has default SSH configuration? ... yes Active users: ... 2 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished