Cannot create a project via API if import_url has non-default SSH port
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Creation of a project via import using API fails if the link to the project has non-default SSH port.
Steps to reproduce
- have some repository accessible via custom SSH port e.g.
ssh://git@hostname.tld:2222/root/test-repo.git
. To configure it on a GitLab instance, you need to set upgitlab_rails['gitlab_shell_ssh_port']
ingitlab.rb
- run the API to create a project by importing this repository:
$ curl --request POST --header "PRIVATE-TOKEN: ***" --form "name=new-repo001" --form "mirror=true" --form "import_url=ssh://git@hostname.tld:2222/root/test-repo.git" https://gitlabhost.tld/api/v4/projects
What is the current bug behavior?
The error As of GitLab 15.2, API fails with {"message":{"import_url":["is blocked: Only allowed schemes are http, https, git"],"name":[],"limit_reached":[]}}
is thrown.{"message":"500 Internal Server Error"}
. The detailed error is shown in production.log
:
Started POST "/api/v4/projects" for 34.67.52.191 at 2022-08-18 06:35:59 +0000
HTTParty::UnsupportedURIScheme ('ssh://git@hostname.tld:2222/root/test-repo.git/info/refs?service=git-upload-pack' Must be HTTP, HTTPS or Generic):
What is the expected correct behavior?
Creation of a project should be successful.
Relevant logs and/or screenshots
Expand to see the full error message from production.log
Started POST "/api/v4/projects" for 34.67.52.191 at 2022-08-18 06:35:59 +0000 HTTParty::UnsupportedURIScheme ('ssh://git@hostname.tld:2222/root/test-repo.git/info/refs?service=git-upload-pack' Must be HTTP, HTTPS or Generic): /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/httparty-0.16.4/lib/httparty/request.rb:113:in `uri' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/httparty-0.16.4/lib/httparty/request.rb:208:in `setup_raw_request' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/httparty-0.16.4/lib/httparty/request.rb:143:in `perform' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/httparty-0.16.4/lib/httparty.rb:573:in `perform_request' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/http.rb:48:in `perform_request' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/httparty-0.16.4/lib/httparty.rb:491:in `get' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/http.rb:74:in `try_get' /opt/gitlab/embedded/service/gitlab-rails/app/services/import/validate_remote_git_endpoint_service.rb:33:in `execute' /opt/gitlab/embedded/service/gitlab-rails/lib/api/helpers/projects_helpers.rb:196:in `validate_git_import_url!' /opt/gitlab/embedded/service/gitlab-rails/lib/api/projects.rb:279:in `block (2 levels) in ' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:59:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:59:in `block (2 levels) in generate_api_method' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb:205:in `instrument' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:58:in `block in generate_api_method' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:341:in `execute' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:267:in `block in run' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb:205:in `instrument' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:247:in `run' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:322:in `block in build_stack' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:36:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:36:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/service/gitlab-rails/ee/lib/gitlab/middleware/ip_restrictor.rb:14:in `block in call' /opt/gitlab/embedded/service/gitlab-rails/ee/lib/gitlab/ip_address_state.rb:10:in `with' /opt/gitlab/embedded/service/gitlab-rails/ee/lib/gitlab/middleware/ip_restrictor.rb:13:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:36:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/api/api_guard.rb:213:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:36:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-oauth2-1.19.0/lib/rack/oauth2/server/resource.rb:20:in `_call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-oauth2-1.19.0/lib/rack/oauth2/server/resource/bearer.rb:8:in `_call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-oauth2-1.19.0/lib/rack/oauth2/server/abstract/handler.rb:17:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/error.rb:39:in `block in call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/error.rb:38:in `catch' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/error.rb:38:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape_logging-1.8.4/lib/grape_logging/middleware/request_logger.rb:60:in `block in call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape_logging-1.8.4/lib/grape_logging/middleware/request_logger.rb:58:in `catch' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape_logging-1.8.4/lib/grape_logging/middleware/request_logger.rb:58:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/middleware/base.rb:29:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/head.rb:12:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:231:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/endpoint.rb:225:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router/route.rb:58:in `exec' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:116:in `process_route' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:72:in `block in identity' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:91:in `transaction' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:70:in `identity' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:55:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:132:in `with_optimization' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/router.rb:54:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/api/instance.rb:167:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/api/instance.rb:71:in `call!' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/grape-1.5.2/lib/grape/api/instance.rb:66:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/mapper.rb:20:in `block in ' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/mapper.rb:49:in `serve' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb:50:in `block in serve' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb:32:in `each' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb:32:in `serve' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb:842:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/gitlab-experiment-0.7.1/lib/gitlab/experiment/middleware.rb:19:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/flipper-0.21.0/lib/flipper/middleware/memoizer.rb:77:in `memoized_call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/flipper-0.21.0/lib/flipper/middleware/memoizer.rb:42:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/memory_report.rb:13:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/speedscope.rb:13:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/rails_queue_duration.rb:33:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/rack_middleware.rb:16:in `block in call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/web_transaction.rb:46:in `run' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/rack_middleware.rb:16:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/jira/middleware.rb:19:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/go.rb:20:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/etag_caching/middleware.rb:21:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/query_analyzer.rb:11:in `block in call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/query_analyzer.rb:37:in `within' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/query_analyzer.rb:11:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/batch-loader-2.0.1/lib/batch_loader/middleware.rb:11:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-attack-6.6.1/lib/rack/attack.rb:103:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/apollo_upload_server-2.1.0/lib/apollo_upload_server/middleware.rb:32:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/multipart.rb:173:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-attack-6.6.1/lib/rack/attack.rb:127:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/warden-1.2.8/lib/warden/manager.rb:36:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `catch' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:100:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/etag.rb:27:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/conditional_get.rb:40:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/head.rb:12:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/http/permissions_policy.rb:22:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/http/content_security_policy.rb:18:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/read_only/controller.rb:50:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/read_only.rb:18:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:266:in `context' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:260:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/cookies.rb:689:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/same_site_cookies.rb:27:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb:98:in `run_callbacks' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/handle_malformed_strings.rb:21:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-rails-5.1.1/lib/sentry/rails/rescued_exception_interceptor.rb:12:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry/rack/capture_exceptions.rb:25:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry/hub.rb:58:in `with_scope' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry-ruby.rb:310:in `with_scope' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry/rack/capture_exceptions.rb:16:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/basic_health_check.rb:25:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/rack/logger.rb:37:in `call_app' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/rack/logger.rb:26:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/tagged_logging.rb:99:in `block in tagged' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/tagged_logging.rb:37:in `tagged' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/activesupport-6.1.4.7/lib/active_support/tagged_logging.rb:99:in `tagged' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/rack/logger.rb:26:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/request_context.rb:21:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/webhook_recursion_detection.rb:15:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/request_store-1.5.1/lib/request_store/middleware.rb:19:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/runtime.rb:22:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-timeout-0.6.0/lib/rack/timeout/core.rb:151:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-timeout-0.6.0/lib/rack/timeout/support/timeout.rb:19:in `timeout' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-timeout-0.6.0/lib/rack/timeout/core.rb:150:in `call' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/fix_local_cache_middleware.rb:11:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/compressed_json.rb:26:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/executor.rb:14:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:19:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/sendfile.rb:110:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/sidekiq_web_static.rb:20:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/host_authorization.rb:113:in `call' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/requests_rack_middleware.rb:77:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/gitlab-labkit-0.23.0/lib/labkit/middleware/rack.rb:19:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/gitlab-labkit-0.23.0/lib/labkit/context.rb:36:in `with_context' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/gitlab-labkit-0.23.0/lib/labkit/middleware/rack.rb:18:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/request_id.rb:26:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/sentry-raven-3.1.2/lib/raven/integrations/rack.rb:51:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/engine.rb:539:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/railtie.rb:207:in `public_send' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/railties-6.1.4.7/lib/rails/railtie.rb:207:in `method_missing' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/release_env.rb:13:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/urlmap.rb:74:in `block in call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `each' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/configuration.rb:252:in `call' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/request.rb:77:in `block in handle_request' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/thread_pool.rb:340:in `with_force_shutdown' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/request.rb:76:in `handle_request' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/server.rb:441:in `process_client' /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.6.2/lib/puma/thread_pool.rb:147:in `block in spawn_thread'
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.21.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.0.2-ee Revision: ef76b54fc1e Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: https://gitlabhost.tld HTTP Clone URL: https://gitlabhost.tld/some-group/some-project.git SSH Clone URL: ssh://git@gitlabhost.tld/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: bitbucket
GitLab Shell Version: 9.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
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) 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: ... 6/1 ... yes 1/2 ... yes 1/3 ... yes 1/4 ... yes 4/5 ... yes 5/6 ... yes 1/7 ... yes 6/8 ... yes 1/9 ... yes 1/10 ... yes 1/11 ... yes 1/12 ... yes 6/14 ... yes 1/15 ... yes 1/16 ... yes 1/17 ... yes 1/18 ... yes 1/19 ... yes 1/20 ... yes 1/21 ... yes 1/22 ... yes 1/23 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.21.0 ? ... yes (2.21.0) Git user has default SSH configuration? ... yes Active users: ... 4 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished