Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Sep 20, 2021 · 10 comments
Open

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

ghost opened this issue Sep 20, 2021 · 10 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2021

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
Copy link
Author

ghost commented Sep 20, 2021

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

@ghost
Copy link
Author

ghost commented Oct 5, 2021

C'mon any1 help

@negative0
Copy link
Member

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
Copy link
Member

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!

@ghost
Copy link
Author

ghost commented Oct 10, 2021

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
Copy link
Author

ghost commented Oct 10, 2021

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
Copy link
Author

ghost commented Oct 10, 2021

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
Copy link
Author

ghost commented Oct 10, 2021

IMG_20211010_161629

@negative0
Copy link
Member

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

@ghost
Copy link
Author

ghost commented Nov 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant