What is the problem you are having with rclone?
Using web-ui with htpasswd requires to login twice. First it asks via a web browser window ('This site is asking you to sign in'). I tested it via chrome and firefox. If I cancle this window I get a 401 Unauthorized. If I enter the correct credentials I will be redirected to the rclone web ui frontend where I should login again. So overall htpasswd is working but it asks twice for the credentials. Would be nice that I can go directly to the web ui frontend to login and don't get the browser login window beforehand. I also tried to add --rc-no-auth
together with the --rc-htpasswd
option, hoping that it doesn't ask for the first one, but it still asks twice.
If I visit the same page later again after entering the credentials twice in the first place, then I don't get asked for the first (web browser) login.
Is there any switch or possibility so turn off the first password request?
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: alpine 3.19.1 (64 bit)
- os/kernel: 5.15.0-105-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
None, only local NFS mount
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr rclone:5000 --inplace --server-side-across-configs --ignore-checksum --metadata --multi-thread-streams=32 --log-file=/log/rclone.log --rc-htpasswd=/root/.config/rclone/htpasswd
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[datastore]
type = local
A log from the command that you were trying to run with the -vv
flag
2024/05/06 15:42:18 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-web-gui-no-open-browser" "--rc-addr" "rclone:5000" "--inplace" "--server-side-across-configs" "--ignore-checksum" "--metadata" "--multi-thread-streams=32" "--log-file=/log/rclone.log" "--rc-htpasswd=/root/.config/rclone/htpasswd" "-vv"]
2024/05/06 15:42:18 DEBUG : Current tag: v2.0.5, Release tag: v2.0.5
2024/05/06 15:42:18 NOTICE: Web GUI exists. Update skipped.
2024/05/06 15:42:18 NOTICE: Serving Web GUI
2024/05/06 15:42:18 INFO : Using "/root/.config/rclone/htpasswd" as htpasswd storage
2024/05/06 15:42:18 NOTICE: Serving remote control on http://172.19.1.2:5000/
2024/05/06 15:42:18 NOTICE: Web GUI is not automatically opening browser. Navigate to http://172.19.1.2:5000/ to use.
2024/05/06 15:42:51 INFO : /: 10.240.249.88:54227: Unauthorized request from
2024/05/06 15:43:06 DEBUG : rc: "rc/noopauth": with parameters map[]
2024/05/06 15:43:06 DEBUG : rc: "rc/noopauth": reply map[]: <nil>
2024/05/06 15:43:06 DEBUG : rc: "core/stats": with parameters map[]
2024/05/06 15:43:06 DEBUG : rc: "core/stats": reply map[bytes:0 checks:0 deletedDirs:0 deletes:0 elapsedTime:48.059549924 errors:0 eta:<nil> fatalError:false renames:0 retryError:false serverSideCopies:0 serverSideCopyBytes:0 serverSideMoveBytes:0 serverSideMoves:0 speed:0 totalBytes:0 totalChecks:0 totalTransfers:0 transferTime:0 transfers:0]: <nil>
2024/05/06 15:43:06 DEBUG : rc: "core/version": with parameters map[]
2024/05/06 15:43:06 DEBUG : rc: "core/version": reply map[arch:amd64 decomposed:[1 66 0] goTags:none goVersion:go1.22.1 isBeta:false isGit:false linking:static os:linux version:v1.66.0]: <nil>
2024/05/06 15:43:06 DEBUG : rc: "core/stats": with parameters map[]
2024/05/06 15:43:06 DEBUG : rc: "core/stats": reply map[bytes:0 checks:0 deletedDirs:0 deletes:0 elapsedTime:48.114132727 errors:0 eta:<nil> fatalError:false renames:0 retryError:false serverSideCopies:0 serverSideCopyBytes:0 serverSideMoveBytes:0 serverSideMoves:0 speed:0 totalBytes:0 totalChecks:0 totalTransfers:0 transferTime:0 transfers:0]: <nil>
2024/05/06 15:43:06 DEBUG : rc: "core/bwlimit": with parameters map[]
2024/05/06 15:43:06 DEBUG : rc: "core/bwlimit": reply map[bytesPerSecond:-1 bytesPerSecondRx:-1 bytesPerSecondTx:-1 rate:off]: <nil>