openbridge / ob_bulkstash

Bulk Stash is a docker rclone service to sync, or copy, files between different storage services. For example, you can copy files either to or from a remote storage services like Amazon S3 to Google Cloud Storage, or locally from your laptop to a remote storage.
https://www.openbridge.com
MIT License
116 stars 16 forks source link

input too short when revealing password #18

Open Processoriented opened 5 years ago

Processoriented commented 5 years ago

Having a bit of trouble getting rclone to create a file system for sftp... Since the container is running on my NAS inside my home network, and I am still a bit unfamiliar with docker's secrets functionality, I figured I would just put my password in the RCLONE_CONFIG_MYSFTP_PASS environment variable, but when I try this, I get the following error...

Failed to create file system for "MYSFTP:files/subdir": input too short when revealing password - is it obscured?

in my env file I have the following:

RCLONE_CONFIG_MYSFTP_TYPE="sftp"
RCLONE_CONFIG_MYSFTP_HOST="xxx.xxxxx.xxx"
RCLONE_CONFIG_MYSFTP_USER="user"
RCLONE_CONFIG_MYSFTP_PORT=22
RCLONE_CONFIG_MYSFTP_PASS="passwordhere"

Did I miss something? Or do I need to spend some time learning docker secrets before getting this to work?

Processoriented commented 5 years ago

Quick update on this... I was able to work around the issue by pushing my rclone.conf into the container, but I would still love to know why it didn't work setting the password in the env file.

tspicer commented 5 years ago

It might be related to this issue upstream: https://github.com/rclone/rclone/issues/2265