Project export error

Problem to solve

Hi all,
We get an immediate error while trying to export the project.

Email is like;

Project couldn't be exported.

The errors we encountered were:

* undefined method `local?' for nil:NilClass

Steps to reproduce

We checked the logs and the same output on the exporter log

==> /var/log/gitlab/gitlab-rails/exceptions_json.log <==
{"severity":"ERROR","time":"2024-05-22T06:31:47.134Z","correlation_id":"01HYFFZB3C19QWQ4R76R5AJ920","exception.class":"NoMethodError","exception.message":"undefined method `local?' for nil:NilClass","exception.backtrace":["lib/gitlab/import_export/uploads_manager.rb:50:in `block in copy_project_uploads'","lib/gitlab/import_export/uploads_manager.rb:68:in `each_uploader'","lib/gitlab/import_export/uploads_manager.rb:47:in `copy_project_uploads'","lib/gitlab/import_export/uploads_manager.rb:17:in `save'","lib/gitlab/import_export/avatar_saver.rb:21:in `block in save'","lib/gitlab/import_export/duration_measuring.rb:15:in `block in with_duration_measuring'","lib/gitlab/import_export/duration_measuring.rb:14:in `with_duration_measuring'","lib/gitlab/import_export/avatar_saver.rb:14:in `save'","app/services/projects/import_export/export_service.rb:68:in `block in save_exporters'","app/services/projects/import_export/export_service.rb:65:in `all?'","app/services/projects/import_export/export_service.rb:65:in `save_exporters'","app/services/projects/import_export/export_service.rb:57:in `save_all!'","app/services/projects/import_export/export_service.rb:18:in `execute'","app/workers/project_export_worker.rb:25:in `perform'","lib/gitlab/database/load_balancing/sidekiq_server_middleware.rb:26:in `call'","lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/until_executing.rb:16:in `perform'","lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb:44:in `perform'","lib/gitlab/sidekiq_middleware/duplicate_jobs/server.rb:8:in `call'","lib/gitlab/sidekiq_middleware/worker_context.rb:9:in `wrap_in_optional_context'","lib/gitlab/sidekiq_middleware/worker_context/server.rb:19:in `block in call'","lib/gitlab/application_context.rb:118:in `block in use'","lib/gitlab/application_context.rb:118:in `use'","lib/gitlab/application_context.rb:57:in `with_context'","lib/gitlab/sidekiq_middleware/worker_context/server.rb:17:in `call'","lib/gitlab/sidekiq_status/server_middleware.rb:7:in `call'","lib/gitlab/sidekiq_versioning/middleware.rb:9:in `call'","lib/gitlab/sidekiq_middleware/query_analyzer.rb:7:in `block in call'","lib/gitlab/database/query_analyzer.rb:37:in `within'","lib/gitlab/sidekiq_middleware/query_analyzer.rb:7:in `call'","lib/gitlab/sidekiq_middleware/admin_mode/server.rb:14:in `call'","lib/gitlab/sidekiq_middleware/instrumentation_logger.rb:9:in `call'","lib/gitlab/sidekiq_middleware/batch_loader.rb:7:in `call'","lib/gitlab/sidekiq_middleware/extra_done_log_metadata.rb:7:in `call'","lib/gitlab/sidekiq_middleware/request_store_middleware.rb:10:in `block in call'","lib/gitlab/with_request_store.rb:17:in `enabling_request_store'","lib/gitlab/with_request_store.rb:10:in `with_request_store'","lib/gitlab/sidekiq_middleware/request_store_middleware.rb:9:in `call'","lib/gitlab/sidekiq_middleware/server_metrics.rb:76:in `block in call'","lib/gitlab/sidekiq_middleware/server_metrics.rb:103:in `block in instrument'","lib/gitlab/metrics/background_transaction.rb:33:in `run'","lib/gitlab/sidekiq_middleware/server_metrics.rb:103:in `instrument'","lib/gitlab/sidekiq_middleware/server_metrics.rb:75:in `call'","lib/gitlab/sidekiq_middleware/monitor.rb:10:in `block in call'","lib/gitlab/sidekiq_daemon/monitor.rb:46:in `within_job'","lib/gitlab/sidekiq_middleware/monitor.rb:9:in `call'","lib/gitlab/sidekiq_middleware/size_limiter/server.rb:13:in `call'","lib/gitlab/sidekiq_logging/structured_logger.rb:21:in `call'"],"user.username":"tasdemir","tags.program":"sidekiq","tags.locale":"en","tags.feature_category":"importers","tags.correlation_id":"01HYFFZB3C19QWQ4R76R5AJ920","extra.sidekiq":{"retry":false,"queue":"project_export","version":0,"backtrace":5,"dead":false,"status_expiration":21600,"args":["251","48","","{}"],"class":"ProjectExportWorker","jid":"e46078a9e8b1b2fa70095cd1","created_at":1716359507.092055,"correlation_id":"01HYFFZB3C19QWQ4R76R5AJ920","meta.caller_id":"ProjectsController#export","meta.remote_ip":"","meta.feature_category":"importers","meta.user":"*****","meta.user_id":251,"meta.project":"****","meta.root_namespace":"****","meta.client_id":"user/251","meta.root_caller_id":"ProjectsController#export","worker_data_consistency":"always","idempotency_key":"resque:gitlab:duplicate:project_export:16a5c467f68982a9068a755f4b78c071f968ac5417f0b18491bd365bb593806f","size_limiter":"validated","enqueued_at":1716359507.0938265},"extra.importer":"Import/Export","extra.project_id":48,"extra.project_name":"***","extra.project_path":"****","extra.import_jid":null}

Versions

GitLab Community Edition 15.11.13

Please select whether options apply, and add the version information.

Versions

Helpful resources

  1. Before opening a new topic, make sure to search for keywords in the forum search
  2. Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
  3. Troubleshooting docs: Self-managed GitLab instances.

Thanks for taking the time to be thorough in your request, it really helps! :blush: