opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file' opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:23:in `from_file' opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:100:in `from_file' opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:28:in `auto_vivify' opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:100:in `block in from_file'
![cannot install git lfs linux cannot install git lfs linux](https://victorkarp.com/wp-content/uploads/2020/06/git_setup_3.png)
![cannot install git lfs linux cannot install git lfs linux](https://about.gitlab.com/images/blogimages/getting-started-with-git-lfs-tutorial/lfs-website.png)
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb I’ve updated the permissions of the folders.Īnd I also found the GitLab website can be accessed after restoring the backup even there is the “ Errno::EACCES: Permission denied” error mentioned above.īut after upgrading from 11.11.8 to 12.0.12 and executing the “ gitlab-ctl reconfigure” command, it returns error message as follows: Starting Chef Client, version 14.13.11 opt/gitlab/embedded/bin/bundle:23:in `load' opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:61:in `block (3 levels) in ' opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:197:in `block (4 levels) in ' opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:37:in `restore' opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:46:in `backup_existing_files_dir' The correct version I used to restore is 1638294307_2021_12_01_10.1.1_gitlab_backup.tar.Īfter executing the restoring command, it returns an error while restoring lfs objects: Put GitLab hooks in repositories dirs Įrrno::EACCES: Permission denied rb_file_s_rename - (/data/storage/lfs-objects, /data/storage/lfs.1638792043) It has always worked for me by following those steps completely. Providing that the gitlab version is the same as the backup, and all the other steps I wrote above, it should restore without any problems whatsoever. Once that part has been done, you can then copy the backup to /var/opt/gitlab/backups and make sure permissions are set with chown git:git /var/opt/gitlab/backups/backup-file.tar so that when you run the restore command, it would be able to access the backup file and restore correctly. Then, once that has been done you run gitlab-ctl reconfigure so that Gitlab and the database is ready with an empty configuration and services running. or any other version number if it doesn’t match.Īlso, once gitlab has been installed, you also need to copy gitlab.rb and gitlab-secrets.json from /etc/gitlab on your old server to the new server. Therefore, if you want to restore 10.5.3 then gitlab-ce_10.5.3 must be installed on your new server. You can only restore to the exact same version of Gitlab.
#Cannot install git lfs linux full#
(See full trace by running task with -trace)Ĭould you please give me the solution to restore the backup successfully?Īccording to your output above, the backup you are trying to restore is 10.5.3. opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:56:in block (3 levels) in ' /opt/gitlab/embedded/bin/bundle:23:in load’ opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb:73:in restore' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:83:in block (4 levels) in ’ opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb:141:in path_to_repo' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb:75:in block in restore’ opt/gitlab/embedded/service/gitlab-rails/app/models/repository.rb:96:in join' /opt/gitlab/embedded/service/gitlab-rails/app/models/repository.rb:96:in path_to_repo’
![cannot install git lfs linux cannot install git lfs linux](https://phoenixnap.com/kb/wp-content/uploads/2021/04/git-installation-component-selection-screen.png)
TypeError: no implicit conversion of nil into String The command to create the backup is “gitlab-rake gitlab:backup:create STRATEGY=copy -trace”.Īnd the command to restore the backup is “gitlab-backup restore BACKUP=1521884424_2018_03_24_10.5.3”.īut after executing the backup command, it returns the error messages as follows:
![cannot install git lfs linux cannot install git lfs linux](https://weirdbearddev.files.wordpress.com/2020/07/gitlfsdbx.png)
I am trying to restore the GitLab backup to a new server.