rclone / rclone-webui-react

A full fledged UI for the rclone cloud sync tool
MIT License
1.26k stars 161 forks source link

Can not access UI on another ip #87

Open prodigy7 opened 4 years ago

prodigy7 commented 4 years ago

Hi there!

I try to access the ui, but have some problems .... first: When I start with rclone rcd --rc-web-gui --rc-no-auth -vvv, it looks so far good:

2020/04/19 15:49:53 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-no-auth" "-vvv"]
2020/04/19 15:49:53 NOTICE: Web GUI exists. Update skipped.
2020/04/19 15:49:53 INFO  : Cannot run Web GUI without authentication, using default auth
2020/04/19 15:49:53 INFO  : No username specified. Using default username: gui
2020/04/19 15:49:53 INFO  : No password specified. Using random password: M26_LkXtPfYe76kyzhTHdg
2020/04/19 15:49:53 NOTICE: Serving Web GUI
2020/04/19 15:49:53 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/04/19 15:49:53 DEBUG : login_token "Z3VpOk0yNl9Ma1h0UGZZZTc2a3l6aFRIZGc="
2020/04/19 15:49:53 ERROR : Failed to open Web GUI in browser: exec: "xdg-open": executable file not found in $PATH. Manually access it at: http://gui:Mxx_LkXtPfYe76kyzhTHdg@127.0.0.1:5572/?login_token=Z3VpOk0yNl9Ma1h0UGZZZTcxx3l6aFRIZGc%3D

I runned it on my NAS, i setup there a reverse proxy so I can access over :5573 the local running 5572. I took the url, replaces 127.0.0.1 with nas IP and port with 5573 and it runs.

Now, next I want run it directly on :5572 so a redirect is not needed. And here starts my problem.... when I call rclone rcd --rc-web-gui-no-open-browser --rc-user=user --rc-pass=pass --rc-addr=192.168.110.200:5572 -vv, I get the following log

2020/04/19 15:53:58 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "rcd" "--rc-web-gui-no-open-browser" "--rc-user=user" "--rc-pass=pass" "--rc-addr=192.168.110.200:5572" "-vv"]
2020/04/19 15:53:58 INFO  : Using --user user --pass XXXX as authenticated user
2020/04/19 15:53:58 NOTICE: Serving remote control on http://192.168.110.200:5572/

and when I call web ui, I got only a "not found". Even when I start with rclone rcd --rc-user=user --rc-pass=pass --rc-allow-origin=* --rc-serve --rc-addr=192.168.110.200:5572 -vv, i got that log

2020/04/19 15:55:14 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "rcd" "--rc-user=user" "--rc-pass=pass" "--rc-allow-origin=*" "--rc-serve" "--rc-addr=192.168.110.200:5572" "-vv"]
2020/04/19 15:55:14 INFO  : Using --user user --pass XXXX as authenticated user
2020/04/19 15:55:14 NOTICE: Serving remote control on http://192.168.110.200:5572/

I got a page with the text "List of all rclone remotes." but even not more.

Have I misunderstood the documentation or is here something wrong?

19wolf commented 4 years ago

For me adding --rc-addr :5572 (without the ip) fixed it.

My full command was rclone rcd --rc-web-gui --rc-addr :5572 and then I got

2020/04/27 20:54:20 NOTICE: Serving Web GUI
2020/04/27 20:54:20 NOTICE: Serving remote control on http://[::]:5572/
2020/04/27 20:54:20 ERROR : Failed to open Web GUI in browser: exec: "xdg-open": executable file not found in $PATH. Manually access it at: http://gui:upSUkK<snip>73Q@[::]:5572/?login_token=Z3VpOnVw<snip>3M1E%3D

and used that url from the error message (replacing [::] with the server's ip)

b06357-redlands commented 4 years ago

@19wolf this helped me save another day wasted. I want to know if this can be implemented in shared hosting ?

nsar1907 commented 4 years ago

For me adding --rc-addr :5572 (without the ip) fixed it.

My full command was rclone rcd --rc-web-gui --rc-addr :5572 and then I got

2020/04/27 20:54:20 NOTICE: Serving Web GUI
2020/04/27 20:54:20 NOTICE: Serving remote control on http://[::]:5572/
2020/04/27 20:54:20 ERROR : Failed to open Web GUI in browser: exec: "xdg-open": executable file not found in $PATH. Manually access it at: http://gui:upSUkK<snip>73Q@[::]:5572/?login_token=Z3VpOnVw<snip>3M1E%3D

and used that url from the error message (replacing [::] with the server's ip)

it has saved an another day here. thank you

amanjuman commented 3 years ago

For Linux Cli user rclone rcd --rc-web-gui-no-open-browser --rc-user=user --rc-pass=pass --rc-addr :5572

amanjuman commented 3 years ago

rclone rcd --rc-web-gui --rc-addr :5572

I tried this rclone rcd --rc-web-gui-no-open-browser --rc-no-auth --rc-addr :5572 -vvv

and when I open the browser It gives "Not Found" I tried on VPS.

GeorgeRudd commented 3 years ago

rclone rcd --rc-web-gui --rc-addr :5572

I tried this rclone rcd --rc-web-gui-no-open-browser --rc-no-auth --rc-addr :5572 -vvv

and when I open the browser It gives "Not Found" I tried on VPS.

try to reinstall rclone

danielslyman commented 3 years ago

rclone rcd --rc-web-gui --rc-addr :5572

I tried this rclone rcd --rc-web-gui-no-open-browser --rc-no-auth --rc-addr :5572 -vvv and when I open the browser It gives "Not Found" I tried on VPS.

try to reinstall rclone

Same error, "not found" reinstalled rclone. Any other ideas are appreciated :)