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

Cloud-decrypt : Input/output error #28

Closed bounty1342 closed 6 years ago

bounty1342 commented 6 years ago

Hi,

When I do a ls on the cloud-decrypt file, it gives an error message: ll cloud-decrypt

Strange thing is that when doing a rclone lsd on the drive, the folder are there : rclone lsd gd-crypt

Any idea how to give more information do help debug it ?

madslundt commented 6 years ago

Did you configure rclone correctly? gd-crypt looks like to be the endpoint to Drive. cloud-decrypt only uses rclone crypt (type = crypt). You can view an example of an rclone.conf over here

bounty1342 commented 6 years ago

My sanitised version of rclone.conf :

[gd] type = drive client_id = xxxxxx.apps.googleusercontent.com client_secret = xxxxxx token = {"access_token":"xxxxxx","token_type":"Bearer","refresh_token":"xxxxxx","expiry":"2018-01-22T01:48:50.78353922Z"}

[gd-crypt] type = crypt remote = gd:Save filename_encryption = standard password = xxxxxx password2 = xxxxxx

[local-crypt] type = crypt remote = /cloud-encrypt/Save filename_encryption = standard password = xxxxxx password2 = xxxxxx

It was working fine, but suddently wasn't able to list the files anymore ! The guilty part is certainly the expiry date of the token !

Maybe an idea of improvement, to at list warn users about it :)

Keep up the good work, thanks for looking into this.