-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operating system error 5(Access is denied.) #46
Comments
With the information you provided I unfortunately cannot give you any help.
We are running this container in a Docker swarm using a docker-compose file and with a NFS share without any problem. |
I have the same issue as well. - Using SQL Server 2022
|
@Hamsterman I’ll try to find some time next days to reproduce your issue. In your docker-compose example you are mounting in both containers the backup folder to the same local folder. Maybee one container locks the directory… can you use another one for each container? We are writing the files on a nfs share (mounted in the compose file) and we don‘t have any problem. The reason we do this is that we are running the containers in a Docker Swarm (not Kubernetes) and each worker should have access to the same path… |
From the readme
|
There I made it work Firstly the docker compose that will both create the msql and the backup container.
Then to fix a "bug" in mssql you have to fix the permissions.
It's important that you do that after the container is running. |
Hello I have same situation :)
Also, if I will login into the container, I can create any files in that directory :)
|
Have anyone solution? |
@christianbumann could you please take a look? |
@pompushko the issue is primary not related to this docker-backup container but to the SQL container from Microsoft itself. We don‘t use local storage for the mounts so we never had this problem. Please try to find a solution searching the error message related to the SQL Server container from Microsoft - I am sure you will find a solution which works for you. You can create the file inside the container to the backup folder because you are the root user - this is another user as the SQL Server is using for backups |
Hello everyone, could you please help me with the error 5, which I'm getting when backup is trying to create?
Backup started at 2022-08-19 01:00:01
Backup database $$$ to /backup/202208190100/202208190100.$$$.bak on sqlserver...
Msg 3201, Level 16, State 1, Server 5e56e03d94c6, Line 1
Cannot open backup device '/backup/202208190100/202208190100.$$$.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Server 5e56e03d94c6, Line 1
BACKUP DATABASE is terminating abnormally.
Error creating database backup
Backup of log skipped.
Copy backup files to target directory
find: ‘/backup/202208190100’: No such file or directory
find: ‘/backup/202208190100’: No such file or directory
Cleanup intermediate directory
find: ‘/backup/202208190100’: No such file or directory
Backup files cleanup is disabled
I tried to bring full rights to all users of my local machine, but it doesn't help. Does anyone faced with this issue? Thank you in advance
The text was updated successfully, but these errors were encountered: