[Closed] Errno::EACCES: Permission denied @ rb_file_s_rename - (/var/opt/artifacts, /var/opt/artifacts.1523033853)

Hi,

I’m restoring a backup from on gitlab docker-ce.

After unpack and start restoring i get this error:

Put GitLab hooks in repositories dirs [DONE]
done
Restoring uploads …
done
Restoring builds …
done
Restoring artifacts …
rake aborted!
Errno::EACCES: Permission denied @ rb_file_s_rename - (/var/opt/artifacts, /var/opt/artifacts.1523033853)
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:46:in backup_existing_files_dir' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:37:in restore’
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:165:in block (4 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:65:in block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in

Already give 777 permissions on folder /var/opt/artifacts/
also,
I have a mapped folder to “/var/opt/artifacts” also with 777 permissions.

Any ideas?

Thanks,
Emanuel Guerra

Hi,
Could you solve this?

Hi,

Not yet, I will be looking at this today.

Passed over the problem by:

1- Clean docker image;
2- Delete folders on root server ( the ones that are mapped to the docker);
3- Create all the folder structures again with “777” permission;
4- Backup old Git;
5- Copy t the new one;
6- Restore;

It worked at first try.