I've recently decided to create a crypt drive alongside with my unencrypted rclone drive and to slowly start moving files to the crypt one.
The issue that I'm experiencing is that if I add an episode mid-season to a TV show that's already uploaded to the normal rclone drive is uploaded to the crypt, the new episode it not visible in Union. It seems like if a folder is present in both the normal rclone drive and the crypt it only allows you to use 1 and not both. The issues that's causing is that, Plex won't see the episodes I add to crypt unless the whole TV show is moved to crypt.
Is there any way around that, so that even if I have files in a folder called 'Test' both in normal rclone drive and a crypt it shows the combined files from both?
I've tried with the new beta (rclone v1.51.0-163-ge2bf9145-beta) but I still get the same issue. While I was investigating I noticed, that the issue is not happening for all files but it seems to be happening at random.
I've checked the permissions and they are the same. I've also tried with a different show and it worked fine, so I'm not sure why it breaks for some but not others.
Edit: I've also found that if I manually rename the missing file on Crypt and bring it back to original name, the file appears. Would that give any clues?
Here are my mount settings (anything wrong with them? I basically copy-pasted them for all mounts). I haven't tried the vfs refresh as I haven't got it to happen again, but will try it when it happens.
The XxX is just my username, I haven't removed anything else from the config.
I was looking wondering if I remove the vfs from the mount settings for the union, if there would be any performance impact and if it would solve it, as it seems like a caching issue as you said.
I'm stuck, I think I will just stick with the unencrypted one for now instead of using union. It should be okay for now until I copy over everything until the end of the year to the crypt one.
On the union mount when I try to rename a file or rename it I get a 'Input/Output' error (works if I directly rename it from the rclone drive itself), I get a similar error when I try to send a file to that 'Trash'. In the folder in the terminal it shows me (btw the red part it only my username (non root user):
I think you are being bitten by directory cache invalidation somewhere...
The error in the log "Permission denied" is probably being generated by the union backend itself. I suspect when you try to rename stuff that is on gdrive:All it will give that error but it will be ok on gcrypt:.
The "no such file or directory" in your listing is strange, that indicates union has got confused somehow.
Yes, I can confirm that renaming items on the crypt causes no such issue, so only renaming on crypt works at the moment when I use Union. What do you reckon is the best way to simplify my config?
I think this is probably a bug... I haven't managed to replicate it though. Any chance you could give me instructions to reproduce? As precisely as possible preferably with shell commands! Thanks!
There is one thing that jumps out to me is that your crypted files and non crypted files overlap. I'm not sure that is causing a problem or not, but I would fix it so they don't overlap.
Will do that as soon as I can, just to check, is it possible this is caused by the following (mentioned in the rclone config for union)
The last remote is used to write to.
From what it seems when using Union, the 1st location doesn't have sufficient permissions to create/delete files, the 2nd one does. Is it possible that's the cause of the issues?
I'll post the rest whenever I can. Thanks for the help.
Yes that is an accurate summary. I'm assuming that you can write to the 1st location? If not then suffix it with :ro and union won't attempt to write to it.
I managed to sort my issue. When using mergerfs I don't get the same issue and can edit files in both rclone and crypt. Also when transferring files from local to crypt and merging with an unencrypted file, they are appearing immediately. I'll still try to get you the steps I used for union if you want it (whenever I get the time I will sit and write it down), so that we can get that issue sorted.