Skip to content

Restoring a wiki that doesn't exist should produce a warning

Summary

Currently when restoring GitLab with /opt/gitlab/bin/gitlab-backup create REPOSITORIES_SERVER_SIDE=true SKIP=db CRON=1 if GitLab tries to restore a repository that doesn't exist, such as the design.git or wiki.git for a project they produce an error.

Given that the log level for this message is an error users (incorrectly) assume that something may have gone wrong. Considering that projects may not even have a wiki we should change the log level to a warning if it's a wiki.

Steps to reproduce

  1. Create a project without a wiki
  2. Do a backup of the gitlab instance
  3. restore the backup
  4. observe errors in the output

Example errors:

{"level":"error","msg":"restore: pipeline: 43 failures encountered: @hashed/10/f6/10f6b6ad5e069f3b97acb8979dc276b9a1c04beb48dd9fa7c8169a142879474a.wiki.git (path/to/project.wiki): server-side restore: repository not found
(...)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information