Open cron410 opened 4 years ago
failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: address already in use
It looks like your previous attempt at config was still running which is why the bind failed rather than some problem with docker.
Note this message:
Auto confirm is set: answering Yes, override by setting config parameter config_is_local=false
Which means you can set config_is_local=false
to answer N
to the question and use the remote flow?
Sorry just noticed this was a WebUI issue so the above advice might not be very helpful.
Facing same issue.
This is a basic issue and not fixed yet? 👎
run this command ip addr flush dev eth0
then restart your server
this works for me
Any updates on this? @negative0
Currently, the webui does not handle any of the auth flow, it just waits for the auth to complete,
ideally, we will have to modify this process a bit by allowing rclone to delegate the process of opening the required GDrive or any other endpoint to the webui, so that it can then open the proper url.
Any thoughts @ncw ?
@negative0 is there any updates on this? i am facing this issue, cant create config properly. it will be great if you add autoconfig option off for headless.
I have tried to connect my google drive account and I can see the following log at the end of the command line procedure (remote / headless machine):
Verify URL: https://accounts.google.com/o/oauth2/auth?accesstype=offline&clientid=xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&redirecturi=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&responsetype=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=vksM362XUdfNk5ab9dNeXQ
I'm wondering if we can get that url (from the server side logs) and perform the redirect by the web UI (by the local browser).
In this way we might be able to use the webui tool as well (if I'm not wrong) without changing the normal behaviour. What do you think about something similar?
I'm using docker and I don't understand why it opens another port 53682
to check Google Drive, so I can't generate the Google Drive configuration through the panel?
| 2021-05-01 00:21:41 | stdout | Waiting for code...
-- | -- | -- | --
| 2021-05-01 00:21:41 | stdout | Log in and authorize rclone for access
| 2021-05-01 00:21:41 | stdout | If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=hD2QapZGg5EBCAu_WRw8uA
| 2021-05-01 00:21:41 | stdout | Auto confirm is set: answering Yes, override by setting config parameter config_is_local=false
| 2021-05-01 00:21:41 | stdout | * Say N if you are working on a remote or headless machine
| 2021-05-01 00:21:41 | stdout | * Say Y if not sure
| 2021-05-01 00:21:41 | stdout | Use auto config?
| 2021-05-01 00:21:41 | stdout | Remote config
Currently I can't access that url, because I only have the default rclone port open 5572
and also with a subdomain, I'm really at a bit of a loss, I don't know what to do.
Having this issue as well
Error: config failed to refresh token: failed to start auth webserver...
On Windows 11.
EDIT: Fixed it with a reboot.
The problem is due to an already listening rclone instance on the same port.
If happens again, to avoid a reboot, run
netstat -ano | findstr 53682
You will find as last number the pid number of a rclone.exe process already listening on that port
Simply kill this pid.
On windows 10/11 you can open task manager, go into details tab and kill every rclone.exe
processes you find.
Is there any update on this? When running the GUI from a Docker container, the auth window never opens.
Ideally when the port is busy, rclone should close the 53682 port and start a new listener, right?
I have this running inside the rclone/rclone:beta docker image, listening on 0.0.0.0:5572 instead of 127.0.0.1:5572
When creating an rclone config for GDrive from the WebUI, it tries to launch the autoconfig on a local webserver at 127.0.0.1 which does not work in a docker container.
We would need a way to have the autoconfig honor the --rc-addr flag or otherwise know how to configure the autoconfig listening address.