rclone-webui-react icon indicating copy to clipboard operation
rclone-webui-react copied to clipboard

Manually Hosted Frontend Isn't Able to Connect To Hosted api

Open ghost opened this issue 2 years ago • 10 comments

So I will try my best to explain this "BUG"

So I hosted api on a host(vps server) & it is working as expected with local rclone rc

I used rclone rcd --rc-user user --rc-pass pass --rc-baseurl /user_name/api/rclone/ --rc-addr <ip_127.0.0.1>:<port_5572> on host

& It does work with cli as expected rclone rc --rc-user user --rc-pass pass --rc-baseurl /user_name/api/rclone/ --rc-addr <ip_127.0.0.1>:<port_5572> config/listremotes(example)

but unable connect host api to locally hosted webui

Hosting webui locally via index.html file & Termux/Nginx With The use of latest precompiled webui src

https://github.com/rclone/rclone-webui-react/releases/tag/v2.0.5

It throws connection err with correct corresponding credentials

According to my basic knowledge this hav to be a frontend connection logic bug which doesn't let frontend connect to internet (smthing like that)

I also tryed hosting webui on PaaS (Repl & cloudflare workers) same issue

Hopeing I get a response from dev asap I need this so badly

Also a feature requests for adding multiple hosts with the list string of json objects

ghost avatar Sep 20 '21 09:09 ghost

Screenshot_2021-09-20-00-34-19-065_com brave browser

ghost avatar Sep 20 '21 09:09 ghost

C'mon any1 help

ghost avatar Oct 05 '21 08:10 ghost

Hi @MOOGAA Sorry for the late reply. Did you try to use the --rc-web-gui flag while running rclone?

./rclone rcd --rc-user user --rc-pass abcd --rc-baseurl /user_name/api/rclone --rc-addr 127.0.0.1:5572 --rc-web-gui

And then open:

http://127.0.0.1:5572/user_name/api/rclone/#/dashboard in browser

negative0 avatar Oct 05 '21 14:10 negative0

If you continue to face the problem, can you please post the screenshot from the network's tab where the login request is being made!

negative0 avatar Oct 05 '21 14:10 negative0

If you continue to face the problem, can you please post the screenshot from the network's tab where the login request is being made!

Bruh I only hav android device

ghost avatar Oct 10 '21 10:10 ghost

Hi @MOOGAA Sorry for the late reply. Did you try to use the --rc-web-gui flag while running rclone?

./rclone rcd --rc-user user --rc-pass abcd --rc-baseurl /user_name/api/rclone --rc-addr 127.0.0.1:5572 --rc-web-gui

And then open:

http://127.0.0.1:5572/user_name/api/rclone/#/dashboard in browser

Yah still same issue

Also isn't the precompiled webui src shud be able to connect to hosted ui

ghost avatar Oct 10 '21 10:10 ghost

Hi @MOOGAA Sorry for the late reply. Did you try to use the --rc-web-gui flag while running rclone?

./rclone rcd --rc-user user --rc-pass abcd --rc-baseurl /user_name/api/rclone --rc-addr 127.0.0.1:5572 --rc-web-gui

And then open:

http://127.0.0.1:5572/user_name/api/rclone/#/dashboard in browser

2021/10/10 10:40:39 NOTICE: Web GUI exists. Update skipped.
2021/10/10 10:40:39 NOTICE: Serving Web GUI                                 
2021/10/10 10:40:39 Failed to start remote control: start server failed: listen tcp: lookup tcp///host.server.address_its_https/Api/Rclone/: servname not supported for ai_socktype

ghost avatar Oct 10 '21 10:10 ghost

IMG_20211010_161629

ghost avatar Oct 10 '21 10:10 ghost

Hi @MOOGAA You might have to use a reverse proxy to achieve this.

Also, The --rc-addr could be 0.0.0.0:5572 if you want to listen to all IP addresses. and --rc-baseurl should have /Api/Rclone

negative0 avatar Oct 12 '21 09:10 negative0

Hi @MOOGAA You might have to use a reverse proxy to achieve this.

Also, The --rc-addr could be 0.0.0.0:5572 if you want to listen to all IP addresses. and --rc-baseurl should have /Api/Rclone

I did used nginx , its working but just for api and not for webui

ghost avatar Nov 17 '21 16:11 ghost