borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.15k stars 742 forks source link

Borgbackup in Docker can't find /repo/data/0/1 #4149

Closed shadowrylander closed 5 years ago

shadowrylander commented 5 years ago

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Bug / Question

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

1.1.7

Operating system (distribution) and version.

WSL running Docker, with a container of Minideb

Hardware / network configuration, and filesystems used.

How much data is handled by borg?

N/A

Full borg commandline that lead to the problem (leave away excludes and passwords)

Any command trying to access the repo.

Describe the problem you're observing.

Any command trying to access a mounted repository, whether mounting the repository itself in docker, or else mounting the folder containing the repo, via -v /drive/host_repo:/path/container_repo, is resulting in something similar to FileNotFoundError: [Errno 2] No such file or directory: '/psntest/data/0/1' every single time, whether in a newly created repo in the mounted folder, or a pre-established repo. However, repositories created in the container itself are accessed just fine, leading me to believe this is a problem with docker. This problem occurs on the minideb and alpine images, which I chose due to their small size.

The command I'm using is essentially this:

docker run -v /s/etc/repo:/repo -v /s/etc/source:/source --rm container

Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

Described in the previous statement.

Include any warning/errors/backtraces from the system logs

FileNotFoundError: [Errno 2] No such file or directory: '/repo/data/0/1'

shadowrylander commented 5 years ago

I would also like to note that:

  1. There are other borgbackup docker containers available, and
  2. I tried installing ntfs-3g within the container, as the /s/, i.e. S:\, drive is NTFS, but apparently, that didn't work.
ThomasWaldmann commented 5 years ago

If you run into fundamental issues like files not behaving as they should and the issues are not present when using some proven filesystem (like ext4), the likelihood that it's just your filesystem being crappy is rather high. I mean the filesystem which is visible to / used by borg here.

I don't know much about how docker deals with that stuff, so I can't comment on that specifically.

shadowrylander commented 5 years ago

Ah; ok. If that's the case, I'll ask this on the Docker [forum] as well. Thank you!

shadowrylander commented 5 years ago

It's... fixed? Maybe after running a TRIM operation? Dunno. Thanks anyway!