RClone GUI run via WSL2 not working

What is the problem you are having with rclone?

I'm running rclone Web Gui via WSL2 (Ubuntu distro on Windows). After executing the commands to serve the Web GUI I open http://127.0.0.1:5572/ in Chrome browser on Windows and see the following error message:

404 page not found

Run the command 'rclone version' and share the full output of the command.

rclone v1.62.2

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.10.16.3-microsoft-standard-WSL2 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: none

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

OneDrive

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

rclone rcd --rc-web-gui --rc-user gui --rc-pass password

A log from the command with the -vv flag

root:~# rclone rcd --rc-web-gui --rc-user gui --rc-pass password -vv
2023/05/02 17:30:16 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-user" "gui" "--rc-pass" "password" "-vv"]
2023/05/02 17:30:16 ERROR : Error while fetching the latest release of Web GUI: error checking for web gui release update, skipping update: failed getting latest release of rclone-webui: Get "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest": dial tcp 20.248.137.49:443: connect: connection refused
2023/05/02 17:30:16 NOTICE: Serving Web GUI
2023/05/02 17:30:16 INFO  : Using --user gui --pass XXXX as authenticated user
2023/05/02 17:30:16 NOTICE: Serving remote control on http://127.0.0.1:5572/
2023/05/02 17:30:16 DEBUG : login_token "Z3VpOnBhc3N3b3Jk"

You need to find the IP address of your WSL2 instance and use that instead of 127.0.0.1.

... e.g. by using this PowerShell command:

wsl hostname -I

Thanks very much for the responses. It was interesting - I tried accessing the GUI from the usual 127.0.0.1 IP address and it actually worked. I think this was because I hadn't set the https proxy (I work on a company laptop behind a firewall).

I've tried it again, however, it's not working again. I ran the command with --rc-no-auth instead and it has worked again.

root:~# rclone rcd --rc-web-gui --rc-no-auth
2023/05/03 17:31:10 ERROR : Error while fetching the latest release of Web GUI: error checking for web gui release update, skipping update: failed getting latest release of rclone-webui: Get "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest": dial tcp: lookup api.github.com on 172.18.48.1:53: read udp 172.18.59.219:33600->172.18.48.1:53: i/o timeout
2023/05/03 17:31:10 NOTICE: It is recommended to use web gui with auth.
2023/05/03 17:31:10 NOTICE: Serving Web GUI
2023/05/03 17:31:10 NOTICE: Serving remote control on http://127.0.0.1:5572/

So it is working, although doesn't seem to be very consistent at this stage

I'm suprised it worked, but I don't know very much about how WSL works - maybe the OS intercepts open ports and redirects them? @Ole ?

Works fine for me, I just do this in my WSL2 (old rclone 1.56.1 on ubuntu 20.4):

$ ./rclone rcd --rc-web-gui  -vv
2023/05/03 11:06:08 DEBUG : rclone: Version "v1.56.1" starting with parameters ["./rclone" "rcd" "--rc-web-gui" "-vv"]
2023/05/03 11:06:08 DEBUG : Current tag: v2.0.5, Release tag: v2.0.5
2023/05/03 11:06:08 NOTICE: Web GUI exists. Update skipped.
2023/05/03 11:06:08 INFO  : No username specified. Using default username: gui
2023/05/03 11:06:08 INFO  : No password specified. Using random password: Gwb1SMnBALHu5tRhywgWPw
2023/05/03 11:06:08 NOTICE: Serving Web GUI
2023/05/03 11:06:08 INFO  : Using --user gui --pass XXXX as authenticated user
2023/05/03 11:06:08 NOTICE: Serving remote control on http://localhost:5572/
2023/05/03 11:06:08 DEBUG : login_token "Z3VpOkd3YjFTTW5CQUxIdTV0Umh5d2dXUHc="
2023/05/03 11:06:08 ERROR : Failed to open Web GUI in browser: exec: "xdg-open": executable file not found in $PATH. 
Manually access it at: http://gui:Gwb1SMnBALHu5tRhywgWPw@localhost:5572/?login_token=Z3VpOkd3YjFTTW5CQUxIdTV0Umh5d2dXUHc%3D

Then I manually copy/paste the above specified URL into the browser (Chrome), and everything seems fine:

2023/05/03 11:06:34 DEBUG : rc: "core/version": with parameters map[]
2023/05/03 11:06:34 DEBUG : rc: "core/version": reply map[arch:amd64 decomposed:[1 56 1] goTags:none goVersion:go1.16.8 isBeta:false isGit:false linking:static os:linux version:v1.56.1]: <nil>
...

Don't think I have done anything special in my setup.

1 Like

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