Jump to content

DZMM

Members
  • Content Count

    2066
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by DZMM

  1. you've got something in /mount_unionfs/google_vfs/ prior to the unionfs mount being created so it fails. Manually delete whatever's in there (be sure you don't want first!)
  2. Neither do I really! I cobbled these scripts together using other guides and Google.
  3. oh yeah, Krusader seems to have problems if you don't restart it. I don't use so I'm not sure why - I use mc to move files
  4. All looks ok to me - maybe someone else will spot something @Kaizac ??. What happens if you create a few test folders in: (i) /mnt/user/mount_unionfs/google_vfs (ii) directly in /mnt/user/rclone_upload/google_vfs Do they appear in /mnt/user/mount_rclone/google_vfs? (change --min-age 30m to --min-age 1m or delete in the upload script to test) The only thing I can think of is there was a weird gdrive issue last week where uploads from Europe were blocked for a day, but this has been resolved as far as I know
  5. Can you post your rclone config and scripts please
  6. 16gb should be enough. I'd disable the scripts and reboot. Then delete any residual checker files form /mnt/user/appdata/rclone (i think that's where all the script checks are) and then enable the scripts.
  7. your unionfs mount is failing, I think because you created your movies and tv_shows folder incorrectly. you need to delete those folders and then run your mount command/script again, then recreate the folders and they'll be copied to gdrive.
  8. how much ram do you have? Does rebooting help?
  9. It does it when it can't see the files ie the mount isn't mounted. If you want fix ahead of schedule tell Plex to do a manual scan Is all working now?
  10. Does /mnt/user/mount_rclone/google_vfs exist? The Plex behaviour is correct as rclone isn't mounted, so it can't see the files. It will self correct once you fix the mount.
  11. Thanks for posting the thread. I hadn't noticed any problems with playback and none of my users had mentioned anything, but my upload job was getting 429 errors. Adding the user agent to my upload script seems to have got it going again but it seems a bit slower - about 75% of the previous speed. It's a bit worrying if they are targetting the rclone user agent.....
  12. Manually remove this file /mnt/user/appdata/other/rclone/rclone_upload It should get removed at array start/end depending on how you've setup your unmount script
  13. You either need to put the files in the right subfolders in your upload folder, or your scripts aren't quite setup properly - post your upload script
  14. The scripts don't move files to the upload folder - you have to do that, or you've setup radarr to add new files to the mount. The min-age setting tells rclone not to move files from the upload folder to the mount that's younger than 30 mins.
  15. The touch command creates a file - you need to run the next commands to copy it to the mounts: rclone copy mountcheck gdrive_media_vfs: -vv --no-traverse rclone copy mountcheck tdrive_media_vfs: -vv --no-traverse
  16. Playback will be awful if you stream using a normal mount and you'll probably suffer from API bans
  17. Can you post your rclone config (remember to take out any personal info e.g. passwords) and mount script please
  18. not sure what's happening, but try taking: mkdir -p /mnt/user/mount_rclone/google_vfs out of your mount script
  19. Just configure tdrive to not be a crypt and make it a direct mount of your google drive.
  20. Yes, although I'd do every 5 minutes personally and also run the unmount at array start so it runs if you have an unclean shutdown
  21. sorry, @francrouge you were having the problem I just fixed. If the mount was successful it wasn't deleting the /mnt/user/appdata/other/rclone/rclone_mount_running file allowing a manual mount to be run, until the unmount script runs at array stop or start. I've removed this check altogether as it's not needed as the script automatically remounts only if the mountcheck file isn't there, which is the real check that needs doing. Here's your scripts: #!/bin/bash ####### Start rclone mounts ########## # create directories for rclone mount and unionfs mount mkdir -p /mnt/user/appdata/other/rclone mkdir -p /mnt/user/mount_rclone/google_vfs mkdir -p /mnt/user/mount_unionfs/google_vfs mkdir -p /mnt/user/rclone_upload/google_vfs ####### Start rclone gdrive mount ########## # check if gdrive mount already created if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check rclone vfs already mounted." else echo "$(date "+%d.%m.%Y %T") INFO: mounting rclone vfs." rclone mount --allow-other --buffer-size 512M --dir-cache-time 72h --drive-chunk-size 512M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off gdrive_media_vfs: /mnt/user/mount_rclone/google_vfs & # check if mount successful # slight pause to give mount time to finalise sleep 5 if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check rclone gdrive vfs mount success." else echo "$(date "+%d.%m.%Y %T") CRITICAL: rclone gdrive vfs mount failed - please check for problems." exit fi fi ####### End rclone gdrive mount ########## ####### Start unionfs mount ########## if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs already mounted." else unionfs -o cow,allow_other,direct_io,auto_cache,sync_read /mnt/user/rclone_upload/google_vfs=RW:/mnt/user/mount_rclone/google_vfs=RO /mnt/user/mount_unionfs/google_vfs if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs mounted." else echo "$(date "+%d.%m.%Y %T") CRITICAL: unionfs Remount failed." exit fi fi ####### End Mount unionfs ########## ############### starting dockers that need unionfs mount ###################### # only start dockers once if [[ -f "/mnt/user/appdata/other/rclone/dockers_started" ]]; then echo "$(date "+%d.%m.%Y %T") INFO: dockers already started" else touch /mnt/user/appdata/other/rclone/dockers_started echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers." docker start PlexMediaServer docker start tautulli docker start binhex-sonarr docker start binhex-sickchill docker start binhex-jackett docker start binhex-delugevpn docker start binhex-krusader fi ############### end dockers that need unionfs mount ###################### exit #!/bin/bash # unmount to be safe fusermount -uz /mnt/user/mount_unionfs/google_vfs fusermount -uz /mnt/user/mount_rclone/google_vfs # Remove other dummy files if [[ -f "/mnt/user/appdata/other/rclone/rclone_upload" ]]; then echo "upload file present - removing dummy file" rm /mnt/user/appdata/other/rclone/rclone_upload else echo "rclone upload already exited properly" fi if [[ -f "/mnt/user/appdata/other/rclone/rclone_cleanup" ]]; then echo "cleanup file present - removing dummy file" rm /mnt/user/appdata/other/rclone/rclone_cleanup else echo "cleanup already exited properly" fi if [[ -f "/mnt/user/appdata/other/rclone/dockers_started" ]]; then echo "removing dummy docker check file" rm /mnt/user/appdata/other/rclone/dockers_started else echo "docker run once already removed" fi exit
  22. I've fixed some errors in the mount and unmount scripts which might explain why some users were having problems re-mounting
  23. I'm going to try and do a review of the github content this weekend as I haven't updated it for over 4 months now.