madslundt / docker-cloud-media-scripts

Upload and stream media from the cloud with or without encryption. Cache all new and recently streamed media locally to access quickly and reduce API calls
MIT License
100 stars 34 forks source link

ls: cannot access '/cloud-encrypt': Transport endpoint is not connected #13

Open SalkinDK opened 7 years ago

SalkinDK commented 7 years ago

Hey there.

I have tried for several days to follow you tutorial to make this awesome docker container to work, but I keep getting this error.

Plexdrive is not running ls: cannot access '/cloud-encrypt': Transport endpoint is not connected Waiting for /cloud-encrypt

My docker create command looks like this. docker create \ --name cloud-media-scripts \ -v /volume1/docker/Cloud-Media/media:/local-media:shared \ -v /volume1/docker/Cloud-Media/mnt/external/media:/local-decrypt:shared \ -v /volume1/docker/Cloud-Media/configurations:/config \ -v /volume1/docker/Cloud-Media/mnt/external/plexdrive:/chunks \ -v /volume1/docker/Cloud-Media/logs:/log \ -v /volume1/docker/Cloud-Media/cloud-encrypt:/cloud-encrypt:shared \ -e PGID="1000" \ -e PUID="1000" \ -e CLEAR_CHUNK_MAX_SIZE="200G" \ --privileged --cap-add=MKNOD --cap-add=SYS_ADMIN --device=/dev/fuse \ madslundt/cloud-media-scripts \ I have tried both with and without the PGID & PUID but with the same result.

Any good idea on what I am doing wrong?

THX in Advance

EDIT: BTW i am running this container gonna Synology 916+ 8gb. But have tried on a ubuntu vm with the same problem.

madslundt commented 7 years ago

Do you have anything inside your cloud-encrypt folder? Try running fusermount -uz /volume1/docker/Cloud-Media/cloud-encrypt and then run your docker container again.

If that doesn't work try remove -v /volume1/docker/Cloud-Media/cloud-encrypt:/cloud-encrypt:shared from your docker command

SalkinDK commented 7 years ago

No, nothing inside the folder. Tried with a brand new one as well.

I get this response to the fusermount command. fusermount: failed to unmount /volume1/docker/Cloud-Media/cloud-encrypt: Invalid argument

I tried adding the line after the problem startet to see if that would solve anything, but I have just removed it and still have the same problem.

madslundt commented 7 years ago

Does the error with cloud-encrypt still occur when you don't bind it to the docker command?

If it doesn't try running with the scripts outside docker (https://github.com/madslundt/cloud-media-scripts). Docker can have some problems running mount inside

SalkinDK commented 7 years ago

Yes, the error still occur.

I just tried adding it after I got the error to see if it did anything different.

Hmm ok, I would just like to have it inside a docker so I don't have to mess with the Synology OS. So i am sure it will stil work after upgrading the DSM.

madslundt commented 7 years ago

Okay I'll try see if I can enforce the error on my machine and maybe fix it

SalkinDK commented 7 years ago

Ok, thx alot.

I have just tried agian and when i have inputtet the stuff in plexdrive_setup, nothing happens. After i have set the auth code it just hangs in ssh, no now line or anything. If i check the log on the docker container i get this error:

7. Enter your generated client ID: [PLEXDRIVE] [2017-10-12 08:45] ERROR  : Could not read configuration

2017/10/12 08:45:04 NOTICE: Config file "/config/rclone.conf" not found - using defaults

This time i tried with the same google credentials for both rclone and plexdrive, not sure if that is the matter with the rclone config?

EDIT: i tried messing around a bit. I can upload to gd but only if i put files directly into /local-decrypt. I can't see any files in /local-media only if i run bash directly inside the container, so i can see them inside the container på not in filestation in the synology. if i try to run plexdrive_setup i get the following error:

2017/10/12 13:42:12 mount helper error: fusermount: mountpoint is not empty
2017/10/12 13:42:12 mount helper error: fusermount: if you are sure this is safe, use the 'nonempty' mount option

i tried adding the nonempty argument in the mount.script but not sure i did it in the right line or the right file.

Hope this help a bit to find the error. i would love to use this container together with my plex.

maybe this picture will help, since you can see the plexdrive cmd, although not all of it.

skaermbillede 2017-10-12 kl 16 29 20
Symbiot78 commented 5 years ago

I'm seeing something like this. running docker exec docker-plexdrive check

gives me

Waiting for /cloud-encrypt

looking in the logs there's not much there apart from the above.

Symbiot78 commented 5 years ago

oh.. and of course:

plexdrive not running

so entering the docker and running: plexdrive

gives me

" panic: Mountpoint not specified

goroutine 1 [running]: main.main() /go/src/github.com/dweidenfeld/plexdrive/main.go:64 +0x1eb3"