Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid value for environment variable "RCLONE_VERSION"? #19

Open
Brian78912 opened this issue Jun 27, 2020 · 11 comments
Open

Invalid value for environment variable "RCLONE_VERSION"? #19

Brian78912 opened this issue Jun 27, 2020 · 11 comments

Comments

@Brian78912
Copy link

Brian78912 commented Jun 27, 2020

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
Copy link

+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
Copy link
Owner

tynor88 commented Jun 28, 2020

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

@Brian78912
Copy link
Author

Brian78912 commented Jun 28, 2020

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
Copy link

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
Copy link
Author

Brian78912 commented Jun 28, 2020

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
Copy link
Author

Brian78912 commented Jul 2, 2020

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

@dsluijk
Copy link

dsluijk commented Jul 8, 2020

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
Copy link
Author

@dsluijk Thanks, this works great thank you :)

@timdonovanuk
Copy link

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
Copy link
Owner

tynor88 commented Mar 4, 2021 via email

@smartnet-club
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants