rclone-webui-react
rclone-webui-react copied to clipboard
Manually Hosted Frontend Isn't Able to Connect To Hosted api
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
C'mon any1 help
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
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!
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
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
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
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
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