Cannot login into web gui

What is the problem you are having with rclone?

If I start the rc-web-gui I get asked for User/Password which I don't know. So I used -vv to see in the log the username is gui and a random password b0fyHCCJw9vnUKKmEE8uiw was generated. If I copy/paste both into the user+password dialog of Chrome

the dialog does stay open and in the console log I get 6x an Unauthorized request

2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58636: Unauthorized request from gui
2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58637: Unauthorized request from gui
2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58638: Unauthorized request from gui
2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58641: Unauthorized request from gui
2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58640: Unauthorized request from gui
2021/01/21 08:09:26 INFO  : /core/stats: 127.0.0.1:58639: Unauthorized request from gui

Already cleared Brower cache, disabled UBlock and UBlockAdlocker and Vanilla (Cookie Manager).

What is your rclone version (output from rclone version)

rclone v1.53.3
 - os/arch: windows/amd64
 - go version: go1.15.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 64bit

Which cloud storage system are you using? (eg Google Drive)

No cloud storage involved into that issue

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone rcd --rc-web-gui --rc-no-auth -vv

The rclone config contents with secrets removed.

[Fws]
type = webdav
url = https://xxx
vendor = nextcloud
user = xxx
pass = xxx

A log from the command with the -vv flag

2021/01/21 08:04:08 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-no-auth" "-vv"]
2021/01/21 08:04:08 NOTICE: Web GUI exists. Update skipped.
2021/01/21 08:04:08 INFO  : Cannot run Web GUI without authentication, using default auth
2021/01/21 08:04:08 INFO  : No username specified. Using default username: gui
2021/01/21 08:04:08 INFO  : No password specified. Using random password: b0fyHCCJw9vnUKKmEE8uiw
2021/01/21 08:04:08 NOTICE: Serving Web GUI
2021/01/21 08:04:08 INFO  : Using --user gui --pass XXXX as authenticated user
2021/01/21 08:04:08 NOTICE: Serving remote control on http://127.0.0.1:5572/
2021/01/21 08:04:08 DEBUG : login_token "Z3VpOmIwZnlIQ0NKdzl2blVLS21FRTh1aXc="
2021/01/21 08:04:09 INFO  : /core/version: 127.0.0.1:58505: Unauthorized request from gui
2021/01/21 08:04:09 INFO  : /core/stats: 127.0.0.1:58506: Unauthorized request from gui
2021/01/21 08:04:09 INFO  : /core/stats: 127.0.0.1:58507: Unauthorized request from gui
2021/01/21 08:04:09 INFO  : /core/bwlimit: 127.0.0.1:58508: Unauthorized request from gui
2021/01/21 08:04:14 INFO  : /core/stats: 127.0.0.1:58510: Unauthorized request from gui
2021/01/21 08:04:14 INFO  : /core/stats: 127.0.0.1:58511: Unauthorized request from gui

You have some conflicting options there.

Remove --rc-no-auth and test.

Same behaviour. Chrome shows Login, I copy gui and the new random password and press ok and the login dialog is shown again and in the console log some new lines with Unauthorized... appear.

I also tried to give user and password by parameter and not to use gui+random. But same effekt.

2021/01/21 15:46:19 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "rcd" "--rc-web-gui" "-vv"]
2021/01/21 15:46:19 NOTICE: Web GUI exists. Update skipped.
2021/01/21 15:46:19 INFO  : No username specified. Using default username: gui
2021/01/21 15:46:19 INFO  : No password specified. Using random password: -qnY5owdr6CmjMpPNqhbCw
2021/01/21 15:46:19 NOTICE: Serving Web GUI
2021/01/21 15:46:19 INFO  : Using --user gui --pass XXXX as authenticated user
2021/01/21 15:46:19 NOTICE: Serving remote control on http://127.0.0.1:5572/
2021/01/21 15:46:19 DEBUG : login_token "Z3VpOi1xblk1b3dkcjZDbWpNcFBOcWhiQ3c="
2021/01/21 15:46:20 INFO  : /core/version: 127.0.0.1:50738: Unauthorized request from gui
2021/01/21 15:46:20 INFO  : /core/stats: 127.0.0.1:50739: Unauthorized request from gui
2021/01/21 15:46:20 INFO  : /core/stats: 127.0.0.1:50740: Unauthorized request from gui
2021/01/21 15:46:20 INFO  : /core/bwlimit: 127.0.0.1:50741: Unauthorized request from gui
2021/01/21 15:46:25 INFO  : /core/stats: 127.0.0.1:50743: Unauthorized request from gui
2021/01/21 15:46:25 INFO  : /core/stats: 127.0.0.1:50744: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/stats: 127.0.0.1:50744: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/stats: 127.0.0.1:50743: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/bwlimit: 127.0.0.1:50741: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/stats: 127.0.0.1:50740: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/stats: 127.0.0.1:50739: Unauthorized request from gui
2021/01/21 15:46:30 INFO  : /core/version: 127.0.0.1:50738: Unauthorized request from gui

If you remove the no-auth and make sure you copy the password right, you get logged in.

No. I copied it multiple times. Tried it with diffent passwords because I stopped and started again and then a new random password was generated. I can ensure that I have not made a copy error every single time!

I also tried it with a choosen username and password

rclone rcd --rc-web-gui  --rc-user x --rc-pass x -vv

And I will not make a typing error with x and x multiple times.

2021/01/21 16:20:51 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-user" "x" "--rc-pass" "x" "-vv"]
2021/01/21 16:20:51 NOTICE: Web GUI exists. Update skipped.
2021/01/21 16:20:51 NOTICE: Serving Web GUI
2021/01/21 16:20:51 INFO  : Using --user x --pass XXXX as authenticated user
2021/01/21 16:20:51 NOTICE: Serving remote control on http://127.0.0.1:5572/
2021/01/21 16:20:51 DEBUG : login_token "eDp4"
2021/01/21 16:20:52 INFO  : /core/version: 127.0.0.1:51323: Unauthorized request from gui
...

Also the --rc-no-auth I had in my first try should login without user and password?

Maybe someone with a Windows machine can test and validate as it works fine on Linux for me.

worked for me, i was able to login no problems...

C:\data\rclone\scripts\rclone.exe rcd --rc-web-gui  --rc-user x --rc-pass x -vv
2021/01/21 11:17:19 DEBUG : rclone: Version "v1.53.3" starting with parameters ["C:\\data\\rclone\\scripts\\rclone.exe" "rcd" "--rc-web-gui" "--rc-user" "x" "--rc-pass" "x" "-vv"]
2021/01/21 11:17:19 NOTICE: Web GUI exists. Update skipped.
2021/01/21 11:17:19 NOTICE: Serving Web GUI
2021/01/21 11:17:19 INFO  : Using --user x --pass XXXX as authenticated user
2021/01/21 11:17:19 NOTICE: Serving remote control on http://127.0.0.1:5572/
2021/01/21 11:17:19 DEBUG : login_token "eDp4"

Hm. Weird. If have this problem since the SECOND start of the web gui 2 weeks ago. First time it started without password input?

Any further ideas what this problem can cause?

make sure rclone is not running in the background, close any open browser tabs.
try again, using debug log,

Rebooted computer.
Started Chrome, showing about:blank
Stared the command of my second post
Chrome automatically shows the login page
Copied Random Password, pasted it into notepad and compared it with console => match
Pasted user/password in the chrome dialog => no error message, just showing again the login dialog

I tried to use --log-level DEBUG, but it seems DEBUG is the same as vv.

not sure what to tell you as this works just fine
rclone rcd --rc-web-gui --rc-user x --rc-pass x

make sure rclone is not running in the background.
try a different browser

You might want to try clearing your cache.

I should have searched but I just made WebGUI works once and only once! with the same basic issue. It works once.

And this is not new. I just finally confederated enough of my configs to make using the GUI worth it. Before I just gave up.

Did you get it work ever?

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