Have been using rclone for quite a while but recently had to change my router and now while performing rclone config reconnect I get the "Got Code" and then it waits for a long time and throws an error ``
Run the command 'rclone version' and share the full output of the command.
2022/02/12 15:43:10 DEBUG : Using config file from "C:\\Users\\abhir\\.config\\rclone\\rclone.conf"
2022/02/12 15:43:10 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "config" "reconnect" "-vv" "Backup_2:"]
Already have a token - refresh?
y) Yes (default)
n) No
y/n>
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n>
2022/02/12 15:43:11 DEBUG : Starting auth server on 127.0.0.1:53682
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=dawJX9I-f3v63X_vTZLCTg
Log in and authorize rclone for access
Waiting for code...
2022/02/12 15:43:11 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=161089351808-4j0a2iiv0iau8vg9n9gorfe9ru1fbm2t.apps.googleusercontent.com&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=dawJX9I-f3v63X_vTZLCTg
Running the commands curl -v http://oauth2.googleapis.com/token or curl -v https://oauth2.googleapis.com/token gives timeout on ports 80 and 443 respectively. Not using any Proxy or Firewall. Doesn't seem to be a problem on my local system as the same commands on a different network work just fine.
Just found out that using Cloudfare WARP on the same network, runs the commands without any error. Any idea why this is happening?
I tried everything, Disabling Windows Firewall and Defender (shouldn't be an issue considering other networks are working fine) didn't do anything.
It's a Home connection so I guess I'll have to talk to the ISP only. Thanks though.
I don't think so, it was working just fine till a couple of days ago. Only thing that has changed is the router since then, so maybe that's causing it. I did try and tinker with the router settings but nothing worked, so don't know anymore.
Ok so I think my ISP has ports 80 and 443 blocked, is there any way I can make rclone use another port for the inbound connection(I'm big noob in the matters of networking so forgive me if this is a stupid question)
I think googleapi uses port 443 during drive authentication
2022/02/13 01:07:57 DEBUG : Starting auth server on 127.0.0.1:53682
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=pA5vdanLGdTC3xh7_OXHZw
Log in and authorize rclone for access
Waiting for code...
2022/02/13 01:07:57 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=161089351808-4j0a2iiv0iau8vg9n9gorfe9ru1fbm2t.apps.googleusercontent.com&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=pA5vdanLGdTC3xh7_OXHZw
2022/02/13 01:08:03 DEBUG : Received GET request on auth server to "/"
Got code
2022/02/13 01:08:24 DEBUG : Closing auth server
2022/02/13 01:08:24 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2022/02/13 01:08:24 Failed to configure token: failed to get token: Post "https://oauth2.googleapis.com/token": dial tcp 13.127.247.216:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
It shouldn't make a difference on different device considering the same commands run fine on this system also, but with a different network.
But I still tested it out and same results.
Cloudfare WARP makes it work but its daamn slow so can't use it. Even if I authenticate using WARP, the upload still breaks off in the middle.
That really reinforces you have an ISP blocking/doing something if you can't connect.
This means you are being blocked by something (firewall/AV/ISP). If you can connect via Cloudflare Warp, that would rule out the machine back to the ISP.
If this fails, there is not much you can do:
curl https://oauth2.googleapis.com/token -vvv
* Trying 142.251.35.170:443...
* TCP_NODELAY set
* Connected to oauth2.googleapis.com (142.251.35.170) port 443 (#0)
You may want to check your DNS as well as your oauth request is resolving to something I'd say is a bit strange.
My router DNS is set 0.0.0.0 (don't know what that means), but using Cloudfare WARP and curl -v http://oauth2.googleapis.com/token it worked as expected with the ip 13.127.247.216
* Trying 13.127.247.216:80...
* Trying 2a00:1450:4009:818::200a:80...
* Connected to oauth2.googleapis.com (2a00:1450:4009:818::200a) port 80 (#0)
> GET /token HTTP/1.1
> Host: oauth2.googleapis.com
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: text/html
< Date: Sat, 12 Feb 2022 22:33:35 GMT
< Server: scaffolding on HTTPServer2
< Content-Length: 0
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
<
* Connection #0 to host oauth2.googleapis.com left intact
A few times it did change to different addresses but it mostly remains the same