itsToggle / plex_debrid

Plex torrent streaming through Debrid Services
1.53k stars 136 forks source link

Docker setup error: plugin rclone found but disabled #560

Open BenJackGill opened 1 year ago

BenJackGill commented 1 year ago

I'm on MacOS and since I can't find any setup details for that I am trying to use Docker instead.

I'm a programmer, but a noob with Docker and rclone and Debrid and all this stuff.

I downloaded Docker desktop, started it up, made a new "plex" folder, and started to follow the commands in the help doc for Docker (as seen below):

BenJackGill@192 plex % sudo mkdir -p ~/rclone/config
BenJackGill@192 plex % sudo mkdir -p ~/rclone/cache
BenJackGill@192 plex % docker plugin install itstoggle/docker-volume-rclone_rd:arm64 args="-v" --alias rclone --grant-all-permissions config=~/rclone/config cache=~/rclone/cache
Error response from daemon: plugin rclone:latest already exists
BenJackGill@192 plex % docker volume create realdebrid -d rclone -o type=realdebrid -o realdebrid-api_key=MY_REAL_DEBRID_KEY_GOES_HERE -o allow-other=true -o dir-cache-time=10s
Error response from daemon: create realdebrid: error looking up volume plugin rclone: plugin rclone found but disabled

The first error was Error response from daemon: plugin rclone:latest already exists.

I ignored that because I'm not sure why latest already exists would be a problem or how to fix it.

Then the second error says Error response from daemon: create realdebrid: error looking up volume plugin rclone: plugin rclone found but disabled.

So clearly there is something wrong with rclone. I'm not sure if it's a bug or a problem on my side.

Any help is much appreciated :)

demondamz commented 1 year ago

you should be able to continue by enabling the plugin on some cases the install is successful but the plugin is disabled

below will get the name of the plugin

docker plugin list

below will enable the plugin

docker plugin enable NAMEOFPLUGIN eg. docker plugin enable rclone:latest

hope that helps and solves your issue

christiaan2b commented 10 months ago

I get this error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/ddc91c1b7b3dcd6560f7b6379f1adcc6dd27b9b51067be6f7d87bd9cd7ec1a8c/~/rclone/config" to rootfs at "/data/config": stat /var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/ddc91c1b7b3dcd6560f7b6379f1adcc6dd27b9b51067be6f7d87bd9cd7ec1a8c/~/rclone/config: no such file or directory: unknown

christiaan2b commented 10 months ago

It did say creation failed earlier on too:

~ % sudo mkdir -p ~/rclone/config ~ % sudo mkdir -p ~/rclone/cache ~ % docker plugin install itstoggle/docker-volume-rclone_rd:amd64 args="-v" --alias rclone --grant-all-permissions config=~/rclone/config cache=~/rclone/cache amd64: Pulling from itstoggle/docker-volume-rclone_rd Digest: sha256:4b2ab43484c53e25d4bf0fa3be9def78b13e7c5412dac36be41284cf913166cd 07a6dbcbb6a7: Complete Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/ddc91c1b7b3dcd6560f7b6379f1adcc6dd27b9b51067be6f7d87bd9cd7ec1a8c/~/rclone/config" to rootfs at "/data/config": stat /var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/ddc91c1b7b3dcd6560f7b6379f1adcc6dd27b9b51067be6f7d87bd9cd7ec1a8c/~/rclone/config: no such file or directory: unknown

demondamz commented 10 months ago

If you are running in windows docker your mapping won't work the way you are doing it.

Windows mapping works differently on docker than on Linux

christiaan2b commented 10 months ago

I'm running macos

xrektr commented 10 months ago

I also get this same error running on Linux with docker desktop. (Completely new to linux and docker, I have no idea what I am doing). Currently trying to get it on locally, but stuck on the chown -R plex:plex torrents step. I can't find the folders in my plex server. Though I got everything else to work, with a lot of help of reading forums and reddit.

lazaroshi commented 10 months ago

windows and osx virtualize docker which makes paths to host a little weird

On windows the path to host is accessible by /run/desktop/mnt/host/[drive letter] So an rclone folder on C: would look something like /run/desktop/mnt/host/c/rclone/[cache or config]

On mac the path to host is accessible by /private/var/lib/docker-plugins/ So an rclone folder would look something like /private/var/lib/docker-plugins/rclone/[cache or config]

joelstitch commented 10 months ago

I am also having this error on a Synology NAS.

Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:61: mounting "/run/docker/containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/023c4235a283d2c06ca67ad51c0cd83dc26c0497420fd98304bc52393342ad99/~/rclone/config" to rootfs at "/data/config" caused: stat /run/docker/containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/023c4235a283d2c06ca67ad51c0cd83dc26c0497420fd98304bc52393342ad99/~/rclone/config: no such file or directory: unknown

joelstitch commented 10 months ago

I was able to get it working by removing and reinstalling the plugin