Giter VIP home page Giter VIP logo

Comments (3)

danyill avatar danyill commented on May 29, 2024

After more carefully examining the crontab for the git user, the command run is:

cd /home/git/gitlab && bundle exec rake gitlab:backup:create SKIP= RAILS_ENV=production

This runs fine up until the end and then I get:

2024-02-10 15:47:32 +1300 -- Cleaning up /home/git/data/backups/packages.tar.gz
2024-02-10 15:47:32 +1300 -- Deleting tar staging files ... done
2024-02-10 15:47:32 +1300 -- Deleting backups/tmp ... 
2024-02-10 15:47:32 +1300 -- Deleting backups/tmp ... done
2024-02-10 15:47:32 +1300 -- Deleting backup and restore PID file ... done
rake aborted!
Errno::ENOENT: No such file or directory @ rb_check_realpath_internal - /home/git/data/shared/ci_secure_files
/home/git/gitlab/lib/backup/files.rb:156:in `realpath'
/home/git/gitlab/lib/backup/files.rb:156:in `app_files_realpath'
/home/git/gitlab/lib/backup/files.rb:46:in `dump'
/home/git/gitlab/lib/backup/manager.rb:71:in `run_create_task'
/home/git/gitlab/lib/backup/manager.rb:227:in `block in run_all_create_tasks'
/home/git/gitlab/lib/backup/manager.rb:226:in `each_key'
/home/git/gitlab/lib/backup/manager.rb:226:in `run_all_create_tasks'
/home/git/gitlab/lib/backup/manager.rb:47:in `create'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:13:in `block in create_backup'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:62:in `lock_backup'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:10:in `create_backup'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:101:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/3.1.0/gems/sentry-ruby-5.10.0/lib/sentry/rake.rb:26:in `execute'
/home/git/gitlab/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => gitlab:backup:create
(See full trace by running task with --trace)
git@7d80927e75ad:~/gitlab$ 

It seemed possible that making this directory ( /home/git/data/shared/ci_secure_files) would help so I did, and the backup functioned normally.

Happy for this issue to be closed unless there is some value in having the container automatically create this directory if it doesn't exist.

from docker-gitlab.

kkimurak avatar kkimurak commented on May 29, 2024

Thank you for your report but duplicate of #2790 for braked backup because of non existing directory ci_secure_files.

from docker-gitlab.

danyill avatar danyill commented on May 29, 2024

Oh quite right, thanks for the response, closing.

from docker-gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.