Skip to content

Install: Plexdrive 4

desimaniac edited this page May 27, 2019 · 1 revision

Plexdrive (by Dominik Weidenfeld) is an app that mounts Google Drive on a server. It works better than others mounting solutions because it caches the stream data for smooth playback of media and and prevention Google Drive API bans.

  1. Create a Google Drive API Client ID and Client Secret for Plexdrive.

    Note 1: this will be different from the Rclone one. You can use the same Google account; but just create a different project for Plexdrive.

    Note 2: It is recommended that you create another set of Client ID/Secret separate from the one you used for Rclone.

  2. Run the following command:

    /opt/plexdrive5/plexdrive mount -v 3 --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-load-ahead=4 --max-chunks=100 --fuse-options=allow_other,read_only --config=/opt/plexdrive5 --cache-file=/opt/plexdrive5/cache.bolt /mnt/remote

  3. At Enter your generated client ID:, paste in the Google API Client ID from Step #1 and press Enter.

  4. At Enter your generated client secret:, paste in the Google API Client Secret from Step #1 and press Enter.

  5. Copy the link on the screen and paste it in your host computer's internet browser. Login with your Google account, if asked, and click Allow. You will copy the authorization code from your browser, paste it at the prompt, and press Enter.

    Note 1: You must use the same Google account as the one you are planning to use for Google Drive (see Prerequisites).

    Note 2: If you keep getting the prompt for the authorization code or any other type of error, you might have used an incorrect Client ID/Secret. Remove the config.json and token.json files from /opt/plexdrive5/ and retry Step #2.

  6. When you see First cache build process started..., press ctrl+c on your keyboard to exit.

    Note: Any errors, such as, WARNING: Could not get object root from API or mount helper error, means this failed somewhere and you need to figure out why.

  7. Enable the Plexdrive service:

    sudo systemctl enable plexdrive5
  8. Start the Plexdrive service:

    sudo systemctl start plexdrive5
  9. Verify Plexdrive is running ok:

    sudo systemctl status plexdrive5

    You should see it as being Active: active (running).

    plexdrive5.service - Plexdrive 5
    Loaded: loaded (/etc/systemd/system/plexdrive5.service; enabled; vendor preset: enabled)
    Active: active (running) since Sat 2017-10-14 12:41:01 CEST; 8h ago
    Main PID: 1025 (plexdrive)
    Tasks: 21
    Memory: 2.7G
    CPU: 23.494s
    CGroup: /system.slice/plexdrive5.service
           └─1025 /opt/plexdrive5/plexdrive mount -v 3 --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-

    Note: If you see an error here, check the FAQ for possible solutions.

  10. Restart Unionfs:

    sudo systemctl restart unionfs
  11. Restart Docker containers:

    docker restart $(docker ps --format '{{ .Names}}' --filter label=com.github.cloudbox.cloudbox_managed=true | xargs echo -n)
  12. After the cache is built (see log), all your media files (on the server and on Google Drive - combined) will start showing up under /mnt/unionfs/Media/.

    Note: If your media files are not showing up, then either something went wrong during the setup of Plexdrive (i.e. this page) or your media is not located in the correct folder in Google Drive (see Prerequisites and Paths).

Basics

  1. Introduction
  2. Cloudbox Install Types
  3. Cloudbox Paths
  4. Accessing Cloudbox Apps

Prerequisites

  1. Overview
  2. Presumptions
  3. Server
  4. Domain Name
  5. Cloudflare
  6. Cloud Storage
  7. Plex / Emby - Account
  8. Usenet vs. BitTorrent

Install Cloudbox

Cloudbox
  1. Overview
  2. Dependencies (Choose only one of these)
  3. Settings
  4. Preinstall (Choose only one of these)
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Cloudbox (Choose only one of these)
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Plex Media Server
    6. Plex Autoscan
    7. Sonarr
    8. Radarr
    9. Lidarr
    10. PlexPy (Tautulli)
    11. Ombi
    12. Portainer
    13. Organizr
  10. Next Steps

Install Feederbox / Mediabox

Feederbox (do this first)
  1. Overview
  2. Dependencies
  3. Settings
  4. Preinstall
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Feederbox (Choose only one of these)
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Sonarr
    6. Radarr
    7. Lidarr
    8. Portainer
    9. Organizr
  10. Next Steps

Mediabox
  1. Overview
  2. Dependencies
  3. Settings
  4. Preinstall
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Mediabox (Choose only one of these)
  9. Application Setup
    1. Feeder Mount
    2. Plex Media Server
    3. Plex Autoscan
    4. PlexPy (Tautulli)
    5. Ombi
  10. Next Steps

Recommended Reading

Backup and Restore

More Information

Advanced Configuration

Experimental

Extras

Misc

Community-Submitted

See Community Wiki.

Reference

Troubleshooting

Links

Clone this wiki locally