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


#1

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:inrestore’
/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:inblock (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


#2

Hi,
Could you solve this?


#3

Hi,

Not yet, I will be looking at this today.


#4

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.