-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
archive/tar: sockets not supported #58
Comments
Thanks for raising this. This is an issue upstream at https://github.com/m90/targz, but luckily I am in control of that repo so we should be able to fix it. I'm not entirely sure how to fix it yet though. It seems that good old command line In the meantine, I think you should be able to work around this by actively excluding the offending sockets from the backup as described in #42 and here: https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder |
For reference, here's a similar issue and fix elsewhere GoogleContainerTools/kaniko#288 |
I looked around more and it seems everyone who creates tar archives in native Go will just skip sockets, so I guess it's ok to do the same here. A fix for this is now included in |
Everything works like expected now. Thank you for fixing the issue that quick! |
I'm submitting a ...
What is the current behavior?
When trying to backup a gitlab docker volume I get an error and no tar file:
level=error msg="Fatal error running backup: takeBackup: error compressing backup folder: archive/tar: sockets not supported"
Do:
docker-compose up -d
docker exec backup backup
level=error msg="Fatal error running backup: takeBackup: error compressing backup folder: archive/tar: sockets not supported"
What is the expected behavior?
Ignore sockets and create tar file. Maybe a info for the user in the log.
What is the motivation / use case for changing the behavior?
Increases the compatibility
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: