So I’m using the rclone mount checking script found here in cron https://github.com/ajkis/scripts/blob/master/rclone/rclone-mount.cron
I changed all of the pathing to fit my setup and it’ll respond telling me that the mount is up from cron, and even will mount it if I run the script out side of crontab. But once in crontab if I unmount the script will just say that it’s having a critical error and cannot remount
20.04.2017 19:00:21 CRITICAL: Remount failed.
something like this, does anyone know how to fix this issue? I’ve tried everything that I can think of.
Did you create the mountcheck file on your cloud provider?
It looks to be erroring when it checks if it exists
From the script:----------- if [[ -f "/home/plex/acdcrypt/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Remount successful." | tee -a "$logfile" else echo "$(date "+%d.%m.%Y %T") CRITICAL: Remount failed." | tee -a "$logfile" fi
Is that a file or a folder?
What I wound up doing was create a mountcheck.txt file and that seemed to fix the issue for me, and then of course modify the script accordingly
When i use Ajkis version, and add it to crontab via plexuser with sudo access. After a while the cron change the rclone.conf from plex:plex to root:plex and the system demounts without remounting?
I can see that its working and checking for the mountcheck.txt file and logs it too, but all of a sudden , it changes the user for the rclone.conf ?