Unable to auto mount google drive using rclone

  • I want plex to have access to my media files stored on google drive. In order to do that I am trying to mount my google teamdrive as a local network drive on my raspberry pi 4 running omv5.


    I installed & configured rclone using the following link. I didn’t use Docker for rclone.


    https://medium.com/@artur.klau…raspberry-pi-f5002c7095c2


    I am manually able to Mount a google teamdrive but when I try to setup for auto mount, I get error.


    My home directory is located on an external drive. User name is pcmac


    I created a rclone@.service file at this location ~/.config/systemd/user/





    I was able to enable it using

    Code
    systemctl --user enable rclone@gdrive

    Now, I try to start rclone@.service I get error.

    Code
    systemctl --user start rclone@gdrive


    I get error when I run the above command. This is the error :-

    Code
    Job for rclone@gdrive.service failed because the control process exited with error code.
    See "systemctl --user status rclone@gdrive.service" and "journalctl --user -xe" for details.


    Name of my rclone remote is jj and I mounted that remote on a local directory called gdrive on $HOME/mnt


    when I run systemctl —user status rclone@gdrive.service, I get the following output

    Code
    rclone@gdrive.service - rclone: Remote FUSE filesystem for cloud storage config gdrive
       Loaded: loaded (/srv/dev-disk-by-id-ata-ST1500LM012-1R817G_WDZG5R9V-part1/containers/pcmac/.config/syst   Active: failed (Result: exit-code) since Wed 2020-06-17 10:45:31 IST; 7min ago
         Docs: man:rclone(1)
      Process: 15463 ExecStartPre=/bin/mkdir -p /srv/dev-disk-by-id-ata-ST1500LM012-1R817G_WDZG5R9V-part1/cont  Process: 15464 ExecStart=/usr/bin/rclone mount --fast-list --vfs-cache-mode writes --vfs-cache-max-size  Main PID: 15464 (code=exited, status=1/FAILURE)
    
    Jun 17 10:45:31 raspberrypi systemd[822]: Starting rclone: Remote FUSE filesystem for cloud storage configJun 17 10:45:31 raspberrypi rclone[15464]: 2020/06/17 10:45:31 Failed to create file system for "gdrive:":Jun 17 10:45:31 raspberrypi systemd[822]: rclone@gdrive.service: Main process exited, code=exited, status=Jun 17 10:45:31 raspberrypi systemd[822]: rclone@gdrive.service: Failed with result 'exit-code'.
    Jun 17 10:45:31 raspberrypi systemd[822]: Failed to start rclone: Remote FUSE filesystem for cloud storage


    *

    Code
    journalctl --user -xe


    gives following output


    Code
    No journal files were found.
    ~
    ~
    ~
    ~

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!