Bug!?: "Cannot open directory" error with RealTimeSync

Get help for specific problems
Posts: 2
Joined: 27 Dec 2020

tanni

Hi,

I'm using Linux Mint 19.3 and I'm having a batch file to backup my home directory (left side)
/home/tanni
using the mirror method to my USB drive (right side)
/media/tanni/Backup USB/home
This batch file works perfectly fine with FFS but with RTS I get the error:
Cannot open directory "/home/tanni/.anydesk/AnyDesk"
EACCES: Permission denied [opendir]
1. I have the rights to access .anydesk/Anydesk because I am its owner, so that error doesn't even make sense
2. I excluded all .* files and folders with my filter list anyway. So RTS shouldn't even check for these folders.

Like I said, with FFS I don't get ANY of these errors..

My filter list:
*/.Trash-*/
*/.recycle/
*/lost+found/
/.*
/.*/
I also tried all these list entries with "" or a * in front but nothing worked.

It seems this bug might be related to these other unsolved topics:
viewtopic.php?t=6740&p=22343
viewtopic.php?t=7882
viewtopic.php?t=7842&p=27000

However, they experience these errors with FFS, I only with RTS.
User avatar
Posts: 2947
Joined: 22 Aug 2012

Plerry

> 1. I have the rights to access .anydesk/Anydesk because I am its owner, so that error doesn't even make sense

Depending on how you start RTS, that message may make perfect sense.
If you do not start the RTS task yourself, but run RTS as a scheduled task you need to make sure the scheduled (RTS) task is run under user credentials that provide access to the folders involved.
In Windows, tasks are by default run as the System user (that very likely has no access to /home/tanni.
If you want or need to run a task as a specific user, you need to explicitly specify that when defining the scheduled task.
Posts: 2
Joined: 27 Dec 2020

tanni

I have started FFS and RTS in the same way: by manually double clicking on the respective executables. So I guess this shouldn't be the problem?