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
Error with UnicodeDecode #351
Comments
the problem is caused by a non-ascii access control list (maybe a user or group name with non-ascii chars). |
I know it. I'm ready to backup without ACL but how? In documentation is not written about ACL. |
There is no attic option to switch that off. You'ld have to edit attic/platform.py so it runs into the "else" case there. |
Thank you. It works. |
@namepunk can you provide the filename that triggers the crash? you should be able to see where it fails using i wonder if it's a good idea to assume the ACLs are encoded in utf-8... |
@anarcat this is not the filename, but likely some non-ascii user or group name inside the acl. |
from irc://irc.freenodenet/#borg:
|
I have used the drive as a SAMBA file share for document folders. Folders are used by windows customers. If i try to backup this folder receive an error
_root@test:~# attic create -s -v /mnt/backup/attic::test2 /test/docs/test
/test/docs/test
Traceback (most recent call last):
File "/usr/local/bin/attic", line 3, in
main()
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 730, in main
exit_code = archiver.run(sys.argv[1:])
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 720, in run
return args.func(args)
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 129, in do_create
self._process(archive, cache, args.excludes, args.exclude_caches, skip_inode s, path, restrict_dev)
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 170, in process
archive.process_item(path, st)
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 375, in p rocess_item
item.update(self.stat_attrs(st, path))
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 370, in s tat_attrs
acl_get(path, item, st, self.numeric_owner)
File "attic/platform_linux.pyx", line 101, in attic.platform_linux.acl_get (at tic/platform_linux.c:2480)
File "attic/platform_linux.pyx", line 65, in attic.platform_linux.acl_numeric ids (attic/platform_linux.c:1698)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 97: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: