Closed coletonodonnell closed 4 years ago
Hi. Interesting.
This log line is from rclone, perhaps based on how rclonesync invokes rclone. It looks like the encoding is ISO-8859-1, aka Latin-1. rclonesync is currently hard-coded to expect utf-8 encoding, fyi.
2020/06/03 13:34:59 NOTICE: Local file system at /mnt/hhd/Files/: Replacing invalid UTF-8 characters in "Documents/Programming/Learning/Python/Learn Python the Hard Way/Course/Book/\x99\x91\xdb.\x87␄␘=V~␕\xa2\x90H~\xc1␂^\xb6b\xe6C␙L␞Ƌ\xfc␔h␞␑x\x8c␟\xcd\xe6=\xe2\xc5=\xee\xe5\xd8N␆\x9d\x93"
To see if its rclonesync specific or related to your environment, please try running this from the command line and check the output for the above file: rclone lsl /mnt/hhd/Files
as the same user (root?) and LANG locale setting. Also, please try to set your locale to LANG="en_US.UTF-8"
, if possible.
Sorry for taking some time to respond, got a little busy:
Output to sudo rclone lsl /mnt/hhd/Files
was a lot of files, and they were accurate at that.
As for the lang, according to the arch wiki, you shouldn't include quotes when setting your LANG variable, but I decided to try it just in case. It was the same error though.
In /root/.rclonesyncwd you should have an LSL__mnt_hhd... __Path1
file. Check with a hex dump viewer if the file name characters for the suspect files are utf8 or latin1 encoding. I suspect they are latin1 encoded, which is why load_list is choking.
Also run the same with -v -v --rc-verbose --rc-verbose
to get the debug level logging from both rclonesync and rclone, respectively, which might have some clues. I'm not sure where/when these error lines are coming up
2020/06/03 13:34:59 NOTICE: Local file system at /mnt/hhd/Files/: Replacing invalid UTF-8 characters in "Documents/Programming/Learning/Python/Learn Python the Hard Way/Course/Book/\x99\x91\xdb.\x87␄␘=V~␕\xa2\x90H~\xc1␂^\xb6b\xe6C␙L␞Ƌ\xfc␔h␞␑x\x8c␟\xcd\xe6=\xe2\xc5=\xee\xe5\xd8N␆\x9d\x93"
Try dropping this file onto your local drive to see if it is represented correctly, and rclonesyncs correctly (create a small test tree for debugging)... Русский.txt
Please post a text file with the problematic file name. If we're lucky I can download it and try to find a solution locally.
If you move those 3 files out does rclonesync work correctly?
My reading on locale handling suggests this problem is messy.
On further inspection, a bunch of glitched files were there that shouldn't have been. I deleted them. It works now! I don't know what the real underlying issue was, but those files weren't supposed to be there in the first place.
Please try dropping the above .txt file onto your sync tree to check that it's properly handled, considering that your LANG isn't set to utf8. This will help confirm that the locale LANG setting is or isn't a factor for this tool.
Also, if you still have one of those problematic filenames it would be quite helpful if you would post a .txt file with just a few characters in it and named with the problem name.
Thx.
Please try dropping the above .txt file onto your sync tree to check that it's properly handled, considering that your LANG isn't set to utf8. This will help confirm that the locale LANG setting is or isn't a factor for this tool.
Sure thing, I dropped that into my Documents directory, and it backed it up successfully! It was stored as "default.txt" and had "Russian" as it's contents. I don't know if that was supposed to happen though.
Also, if you still have one of those problematic filenames it would be quite helpful if you would post a .txt file with just a few characters in it and named with the problem name.
I deleted them earlier, I honestly think it was my own fault those files were like that. I apologise, if I encounter the issue ever again though I will reopen this with the txt files.
It looks like we lost the Cyrillic script name for the file. Try to rename default.txt to "Русский.txt". Hopefully this name survives through github. For me the filename looks like:
It looks like we lost the Cyrillic script name for the file. Try to rename default.txt to "Русский.txt". Hopefully this name survives through github. For me the filename looks like:
Alright, so I made a file named "Русский.txt" and inside of it I put "Русский.txt" as well, just so there was something in there. From here, I ran the script and it saved properly as "Русский.txt" in the drive.
For giggles, try some renames and deletes on each side to exercise more of the logic. For now we call this a sighting and leave it closed. Thanks for your debug assistance.
It seemed to have worked when I renamed it, and when I deleted it. Though, I did accidentally delete on my computer twice, and it didn't sync the second time, but I don't really know why.
OS:
Error:
Full Output:
Locale Settings:
locale -a
locale
localectl list-locales
Notes:
I have
chmod +x rclonesync.py
and my rclone is setup properly.