What is the problem you are having with rclone?
I'm using the docker version of rclone. I'm trying to access the oauth link given on the "config create" command outside the host.
By setting --rc-addr 0.0.0.0:5572
in the code bellow, I'm successfuly able to connect to the webui (it doesn't work without that option).
podman run --rm -dt --privileged --name=rclone-e PUID=1000 -e PGID=1000 -p 0.0.0.0:5572:5572 -v /home/me/rclone:/config/rclone docker.io/rclone/rclone:latest rcd --rc-web-gui --rc-addr 0.0.0.0:5572
I'm trying to achieve the same result with the following command:
podman run --rm -dt --name=rclone --privileged -e PUID=1000 -e PGID=1000 -p 0.0.0.0:53682:53682 -v /home/me/rclone:/config/rclone docker.io/rclone/rclone:latest --config /config/rclone/rclone.conf config create remote drive config_is_local false
podman says port is published:
podman port -l
53682/tcp -> 0.0.0.0:53682
Another solution for my usecase would be a command to give the link and return the code (just like when you're manually setting a remote and you choose headless, but I'm not sure if it's possible.
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
- os/version: alpine 3.14.2 (64 bit)
- os/kernel: 5.16.2-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> Yes
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
podman run --rm -dt --name=rclone --privileged -e PUID=1000 -e PGID=1000 -p 0.0.0.0:53682:53682 -v /home/me/rclone:/config/rclone docker.io/rclone/rclone:latest --config /config/rclone/rclone.conf config create remote drive config_is_local false
The rclone config contents with secrets removed.
Doesn't apply, as I'm trying to make one.
A log from the command with the -vv
flag
2022/01/21 18:17:21 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "--config" "/config/rclone/rclone.conf" "config" "create" "remote" "drive" "config_is_local" "false" "-vv"]
2022/01/21 18:17:21 NOTICE: Config file "/config/rclone/rclone.conf" not found - using defaults
2022/01/21 18:17:21 DEBUG : remote: config in: state="", result=""
2022/01/21 18:17:21 DEBUG : remote: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/01/21 18:17:21 DEBUG : remote: config in: state="*oauth,teamdrive,,", result=""
2022/01/21 18:17:21 DEBUG : remote: config out: out=&{State:*oauth-confirm,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/01/21 18:17:21 DEBUG : remote: config in: state="*oauth-confirm,teamdrive,,", result=""
2022/01/21 18:17:21 DEBUG : Override value found, choosing value "false" for state "*oauth-islocal,teamdrive,,"
2022/01/21 18:17:21 DEBUG : remote: config out: out=&{State:*oauth-islocal,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:false}, err=<nil>
2022/01/21 18:17:21 DEBUG : remote: config in: state="*oauth-islocal,teamdrive,,", result="false"
2022/01/21 18:17:21 DEBUG : remote: config out: out=&{State:*oauth-remote,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/01/21 18:17:21 DEBUG : remote: config in: state="*oauth-remote,teamdrive,,", result=""
2022/01/21 18:17:21 DEBUG : Auto confirm is set, choosing default "" for state "*oauth-do,teamdrive,,", override by setting config parameter "config_verification_code"
2022/01/21 18:17:21 DEBUG : remote: config out: out=&{State:*oauth-do,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/01/21 18:17:21 DEBUG : remote: config in: state="*oauth-do,teamdrive,,", result=""
2022/01/21 18:17:21 DEBUG : Starting auth server on 127.0.0.1:53682
2022/01/21 18:17:21 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXXXXXXXXXXXXXXXXXXXXXXXXXX
2022/01/21 18:17:21 NOTICE: Log in and authorize rclone for access
2022/01/21 18:17:21 NOTICE: Waiting for code...