Rclone serve http htpasswd

What is the problem you are having with rclone?

Hello, I have a question about rclone serve http and authorization. I generated a htpasswd, when I start rclone serve I can access the files but without authorization.
Can someone tell me why the htpasswd does not take effect?

What is your rclone version (output from rclone version)

rclone v1.56.1

  • os/version: debian 10.10 (64 bit)
  • os/kernel: 4.19.0-17-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.8
  • go/linking: static
  • go/tags: none

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)

rclone serve http --addr :8080 --htpasswd /path/to/htpasswd gdrive:

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

2021/09/21 17:05:13 DEBUG : rclone: Version "v1.56.1" starting with parameters ["rclone" "serve" "http" "--htpasswd" ".htpasswd" "--addr" ":8088" "gcrypt:Transfer" "-vv"]
2021/09/21 17:05:13 DEBUG : Creating backend with remote "gcrypt:Transfer"
2021/09/21 17:05:13 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/09/21 17:05:13 DEBUG : Creating backend with remote "gd:encrypt/0sep0d0emqbogqhua85g1rs1qc"
2021/09/21 17:06:12 INFO  : : Serving directory
2021/09/21 17:06:13 INFO  : favicon.ico: File not found
2021/09/21 17:06:16 INFO  : 

That happens every time the help and support template is not used.

1 Like

I think this is a bug as it works if I try with v1.55.1

Can you open a new issue on Github please

It looks like it is only rclone serve http which is broken rclone serve webdav is OK.

Okay have created an issue on github.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.