doc/user/import/troubleshooting.md
{{< details >}}
Tier: Free, Premium, Ultimate Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
{{< /details >}}
When migrating to GitLab, you might encounter the following issues.
If an imported repository does not contain all branches of the source repository:
IMPORT_DEBUG=true.importer.log
(for example, with jq).Error Importing repository - No such file or directory @ rb_sysopen - (filename)The error occurs if you attempt to import a tar.gz file download of a repository's source code.
Imports require a GitLab export file, not just a repository download file.
If you're experiencing prolonged delays or failures with file-based imports, especially those using S3, the following may help identify the root cause of the problem:
Check the import status:
status and import_error values.correlation_id in the response, as it's crucial for further troubleshooting.Search logs for relevant information:
For GitLab Self-Managed instances:
exceptions_json logs.RepositoryImportWorker and the correlation ID from check import status.job_status, interrupted_count, and exception.For GitLab.com (GitLab team members only):
Use Kibana to search the Sidekiq logs with queries like:
Target: pubsub-sidekiq-inf-gprd*
json.class: "RepositoryImportWorker" AND json.correlation_id.keyword: "<CORRELATION_ID>"
or
json.class: "RepositoryImportWorker" AND json.meta.project: "<project.full_path>"
Look for the same fields as mentioned for GitLab Self-Managed instances.
Check the information gathered in the review logs against the following common issues:
interrupted_count or job_status indicating failure, the import job may have been interrupted multiple times and placed in a dead queue.If you're still having issues, see the GitLab Support knowledge base.