v0.10.0 - http_proxy behaviour changed - rclone via proxy might be affected #1560
-
|
I have been using rclone backend successfully with v0.9.5. Suddenly with v0.10.0 it stopped working and I really struggle where to look for clues why. I only narrowed this down to something related to rclone using proxy. As I use rclone with local proxy my toml contains (which is the way to tell rclone to use proxy): It used to work perfectly but with the latest rustic when I try: removing proxy env variables from toml file solves the problem. But for various reasons I have to use proxy. I have read all v0.10.0 release notes and I am puzzled what change caused it. It looks like suddenly rustic is picking up these proxy env variables for something else but failing to use them. Short term I can roll back rustic to v0.9.5 so it is definitely not critical but at some stage I would like to sort it out. I would appreciate any expert help here... as I run out of ideas. I have not created any github issue yet as I am not sure (yet) whether problem is with rustic or between chair and keyboard. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
|
In the meantime I have found how to fix it for my particular use case. Might be useful for others with similar problem. To make only rclone to use proxy I have changed my toml file proxy/rclone related settings to to: effectively making only rclone to have knowledge about proxy. Now rustic v0.10.0 works again. The question remains why does rustic v0.10.0 attempt to utilise global env proxy settings? There is no need for it when using rclone backend. And it was not the case in v0.9.5 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @kapitainsky! Thanks for reporting! First, about setting env in the config profile, I must say that I could not reproduce any issue here. I tried using a hook to print an env variable and it worked when I set it in the Second, from the errors it looks like |
Beta Was this translation helpful? Give feedback.
-
|
I have had to do some tests before tonight:) removing all proxy reference from toml: and setting proxy env variable inline with rustic command works: but rclone is not using any proxy. As it also works when I turn proxy off:) I do not think rustic is passing its initial env to rclone session. Anyway - I will keep digging:) |
Beta Was this translation helpful? Give feedback.
-
|
I have set Please note that HTTPS_PROXY and HTTP_PROXY are not just rclone specific variables. Many other programs/modules can use them as it is sort of de facto standard of setting proxies. So far I am puzzled:) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for analyzing this @kapitainsky In any case, I would say that the current behavior (env variables in the config profile are respected by rustic itself and are sent to child processes) is the desired one. |
Beta Was this translation helpful? Give feedback.
And GOOD news.
Whatever (it is not rclone but something new in rustic) is responsible for this issue is also respecting another de facto standard proxy related env variable
NO_PROXYBelow toml env variables work with rustic v0.10.0:
Maybe it was actually rustic v0.9.5 not working properly? I am not sure if proxy (when set) should be used for
127.0.0.1by default or not.From my perspective now I know fully how to deal with this in my setup:)
Thank you very much for your help.