-
Notifications
You must be signed in to change notification settings - Fork 104
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
attic hangs when initializing repository on a cifs mount #201
Comments
I'm not in the need of creating archives on CIFS myself, but tried this anyhow since I have the environment set up for it. Using a Windows 2008 R2 Server with a Windows share and initialized an repository as specified in the first post. The init-phase just gets stuck forever. When aborting and checking the directory afterwards I can see that there are some files created (config, README and an empty data-folder). Attic fails with message "Error: Object with key b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' not found in repository test.attic" if creating an archive to this repository. Not particularly strange, as the init part was previously incomplete. Tried a workaround. Initialized the repository directly on an ext4 drive, which worked, whereas I moved the repository to the Windows share. So far so good, but when executing "attic create", it gets stuck forever again. attic create test.attic::test-1 /home/user/ Edit: The user has permissions needed to read, write, delete, change files and folder in the destination. Share has full control for everyone and the NTFS permissions is modify for this particular user. Edit: Tests were performed from a Debian Wheezy machine with Attic 0.14 installed with pip3.2. |
The key 0 is the manifest, which is needed pretty much as the first thing everywhere. So we need to find out why init is stuck... |
I just got the same issue. attic init just hung on the CIFS mount while it created a repository successfully on local disk.
The third last line is where attic hangs and before I cancelled the process with Ctrl-C. I then read the mapage of mount.cifs to check if there are any locking-related options and actually there is: "byte range lock". The manpage says:
Adding this option to the mount options in /etc/fstab (or however you mount your storage) and remounting the storage, enables attic to create a repository and successfully perform backups. HTH. |
Just wanted to add that I've tested to mount with the setting given by eht16 and can confirm that Attic is able to initialize archives and create backups on CIFS shares now. |
The remaining question is just whether locking still works as intended. |
I am experiencing the same thing. Attic hangs at
Setting the nobrl flag does seem to fix the issue. I can test the lock further if you can provide information about what I am supposed to look for. |
I'd like to test it but the patch from borgbackup/borg#94 doesn't apply to Attic 0.16. |
Sorry to say, but attic and borg diverged here a bit (e.g. the new locking code tests use py.test, a mock issue showed up and was fixed, etc.) - making a patch would be a bit more work than usual. Also, I am not sure if it would be acceptable for attic, there is quite a backlog of not accepted (yet?) pull requests. BTW, after writing above post, I did some practical tests with a CIFS mount myself and it worked. |
Ok, I was just confused because you ask for testing a patch for borg on an issue on attic. |
When will there be a fix? I have the problem everywhere: debian 8.1 --> qnap nas, debian 8.1 --> windows 7. "nobrl" in mount options does not help. On the shares everyone can do everything. At the moment I see no way to backup to Windows. I tested attic 1.6 and the newest from git on python 3.4.2. Attic init worked, attic create not. Backup command: The error: My mount command: |
I am currently experiencing the same problem. I waited for... however long it took to have a bath. Long enough :) |
I'm experiencing the same issue with my CIFS mount to a QNAP NAS.
Some files are created with the
$ tree
.
├── config
├── data
└── README
1 directory, 2 files
The $ cat config
[repository]
version = 1
segments_per_dir = 10000
max_segment_size = 5242880
id = 8cc2a93df9212bfbae11b23b9d2bbba5f8239dd6e1c4354e4c377ea4ecb16bf2
$ cat README
This is an Attic repository |
Hi,
I hit the following problem: when initializing a repository on a cifs mount, attic hangs:
$ sudo attic init ~/Tmp/mnt/Dir1/dir2
Initializing repository at "/home/myuser/Tmp/Dir1/dir2"
Encryption NOT enabled.
Use the "--encryption=passphrase|keyfile" to enable encryption.
And it stays stuck like this. I left it even half an hour and nothig else happens after the "Use the..." line gets printed on the screen.
I can read/write with sudo the files from the ~/Tmp/mnt mount just fine. I can even backup files with attic from that mount.
I'm using Ubuntu 14.10. I've tried this with attic 0.13 from the official Ubuntu repository, and also with attic 0.14 installed with pip3.
The mount is created like this:
sudo mount -t cifs -o user=my-windows-user //lan-ip-address-of-win7-machine/d$ ~/Tmp/mnt
Please help.
Thanks,
Alin.
Edit: I had to correct a couple of commands because they were showing incorrectly.
The text was updated successfully, but these errors were encountered: