tynor88 / docker-rclone

Docker for Rclone - a command line program to sync files and directories to and from various cloud services.
GNU General Public License v3.0
32 stars 32 forks source link

Invalid value for environment variable "RCLONE_VERSION"? #19

Open Brian78912 opened 4 years ago

Brian78912 commented 4 years ago

Hi great solution, i use it to backup zoneminder pictures to the cloud :)

But sometime ago i started to get strange erros, and no data i synchronized

Error: Invalid value for environment variable "RCLONE_VERSION": strconv.ParseBool: parsing "current": invalid syntax

I have tryied to delte container and set it up again.

Hope sombody can help :)

Picture form portainer.io image

SlothCroissant commented 4 years ago

+1 - I forked the project in an attempt to submit a PR to fix it, but by simply forking it and making no changes, the subsequent docker hub build succeeded and my same exact config now works. I think @tynor88 may just need to trigger a build or something.

ref: https://hub.docker.com/r/slothcroissant/rclone

tynor88 commented 4 years ago

Hi @Brian78912 and @SlothCroissant I just triggered a build. Will be done in 10 minutes. Let me know if it works.

Brian78912 commented 4 years ago

Hi @SlothCroissant and @tynor88 thanks, i have just run a test it's unfortunately not resolved in my case :( Removed the container recreated it with same .rclone.config, in config folder.

SlothCroissant commented 4 years ago

Be sure to remove the container with docker rm -fv <name> so it purges the images and volumes and Docker has to re-pull them.

Does this happen on both images? @tynor88’s and my test fork?

Brian78912 commented 4 years ago

Be sure to remove the container with docker rm -fv <name> so it purges the images and volumes and Docker has to re-pull them.

Does this happen on both images? @tynor88’s and my test fork?

Done, same problem :(

Brian78912 commented 4 years ago

@SlothCroissant your build works, thanks :) at the moment i cannot get tynors to work, same error.

dsluijk commented 4 years ago

I had the same issue before, but I did end up solving it like this:

rclone:
    image: tynor88/rclone
    environment:
      SYNC_DESTINATION: "ftp"
      SYNC_COMMAND: "env RCLONE_VERSION=true rclone copy /data ftp:/**path_to_destination** --config /config/rclone.conf"
    volumes:
      - ./:/config
      - /data:/data:ro

Not the prettiest, but it gets the job done.

Brian78912 commented 4 years ago

@dsluijk Thanks, this works great thank you :)

timdonovanuk commented 3 years ago

Still an issue. I don't get how a fork of this can have 1M+ pulls from dockerhub but not actually work?!

https://hub.docker.com/r/that1guy/docker-rclone

tynor88 commented 3 years ago

Which fork?

On Thu, 4 Mar 2021, 12:46 timdonovanuk, notifications@github.com wrote:

Still an issue. I don't get how a fork of this can have 1M+ pulls from dockerhub but not actually work?!

https://hub.docker.com/r/that1guy/docker-rclone

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tynor88/docker-rclone/issues/19#issuecomment-790555749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV6P7YO2SLQSNRIJ6PUW7DTB5XJZANCNFSM4OKCA4WQ .

smartnet-club commented 2 years ago

RCLONE_* is a predefined prefix of rclone options. just rename env variable. for ex MY_RCLONE_VERSION