docker-rclone icon indicating copy to clipboard operation
docker-rclone copied to clipboard

Invalid value for environment variable "RCLONE_VERSION"?

Open Brian78912 opened this issue 4 years ago • 11 comments

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

Brian78912 avatar Jun 27 '20 14:06 Brian78912

+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

SlothCroissant avatar Jun 28 '20 14:06 SlothCroissant

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

tynor88 avatar Jun 28 '20 14:06 tynor88

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.

Brian78912 avatar Jun 28 '20 14:06 Brian78912

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?

SlothCroissant avatar Jun 28 '20 16:06 SlothCroissant

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 avatar Jun 28 '20 16:06 Brian78912

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

Brian78912 avatar Jul 02 '20 07:07 Brian78912

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.

dsluijk avatar Jul 08 '20 23:07 dsluijk

@dsluijk Thanks, this works great thank you :)

Brian78912 avatar Jul 09 '20 10:07 Brian78912

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

timdonovanuk avatar Mar 04 '21 11:03 timdonovanuk

Which fork?

On Thu, 4 Mar 2021, 12:46 timdonovanuk, [email protected] 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 .

tynor88 avatar Mar 04 '21 19:03 tynor88

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

smartnet-club avatar Sep 10 '22 20:09 smartnet-club