Rclone v1.59.1 on Windows 11 getting Error: config failed to refresh token: failed to start auth webserver

What is the problem you are having with rclone?

Getting the following error when trying to use "rclone config" on Windows 11 Enterprise with both Windows Firewall and Windows Security disabled and with full local administrative permissions.

Run the command 'rclone version' and share the full output of the command.

C:\Rclone>rclone version
rclone v1.59.1

  • os/version: Microsoft Windows 11 Enterprise 21H2 (64 bit)
  • os/kernel: 10.0.22000.918 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.18.5
  • go/linking: static
  • go/tags: cmount

YES - also ran:
C:\Rclone>rclone selfupdate
2022/09/12 10:49:11 NOTICE: rclone is up to date

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

C:\Rclone>rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> dropbox

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
13 / Dropbox
   \ (dropbox)

Storage> 13

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

Edit advanced config?
y) Yes
n) No (default)
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>

Error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

C:\Rclone>rclone config -vv
2022/09/12 11:04:03 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "config" "-vv"]
2022/09/12 11:04:03 DEBUG : Using config file from "C:\\Users\\JMeisels\\AppData\\Roaming\\rclone\\rclone.conf"
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> dropbox

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon Drive
   \ (amazon cloud drive)
 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, Digital Ocean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS and Wasabi
   \ (s3)
 6 / Backblaze B2
   \ (b2)
 7 / Better checksums for other remotes
   \ (hasher)
 8 / Box
   \ (box)
 9 / Cache a remote
   \ (cache)
10 / Citrix Sharefile
   \ (sharefile)
11 / Combine several remotes into one
   \ (combine)
12 / Compress a remote
   \ (compress)
13 / Dropbox
   \ (dropbox)
14 / Encrypt/Decrypt a remote
   \ (crypt)
15 / Enterprise File Fabric
   \ (filefabric)
16 / FTP
   \ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
   \ (google cloud storage)
18 / Google Drive
   \ (drive)
19 / Google Photos
   \ (google photos)
20 / HTTP
   \ (http)
21 / Hadoop distributed file system
   \ (hdfs)
22 / HiDrive
   \ (hidrive)
23 / Hubic
   \ (hubic)
24 / In memory object storage system.
   \ (memory)
25 / Internet Archive
   \ (internetarchive)
26 / Jottacloud
   \ (jottacloud)
27 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
28 / Local Disk
   \ (local)
29 / Mail.ru Cloud
   \ (mailru)
30 / Mega
   \ (mega)
31 / Microsoft Azure Blob Storage
   \ (azureblob)
32 / Microsoft OneDrive
   \ (onedrive)
33 / OpenDrive
   \ (opendrive)
34 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ (swift)
35 / Pcloud
   \ (pcloud)
36 / Put.io
   \ (putio)
37 / QingCloud Object Storage
   \ (qingstor)
38 / SSH/SFTP
   \ (sftp)
39 / Sia Decentralized Cloud
   \ (sia)
40 / Storj Decentralized Cloud Storage
   \ (storj)
41 / Sugarsync
   \ (sugarsync)
42 / Transparently chunk/split large files
   \ (chunker)
43 / Union merges the contents of several upstream fs
   \ (union)
44 / Uptobox
   \ (uptobox)
45 / WebDAV
   \ (webdav)
46 / Yandex Disk
   \ (yandex)
47 / Zoho
   \ (zoho)
48 / premiumize.me
   \ (premiumizeme)
49 / seafile
   \ (seafile)
Storage> 13

2022/09/12 11:04:09 DEBUG : dropbox: config in: state="*all", result=""
2022/09/12 11:04:09 DEBUG : dropbox: config out: out=&{State:*all-set,0,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:09 DEBUG : dropbox: config: reading config parameter "client_id"
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>

2022/09/12 11:04:10 DEBUG : dropbox: config in: state="*all-set,0,false", result=""
2022/09/12 11:04:10 DEBUG : dropbox: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:10 DEBUG : dropbox: config in: state="*all,1,false", result=""
2022/09/12 11:04:10 DEBUG : dropbox: config out: out=&{State:*all-set,1,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:10 DEBUG : dropbox: config: reading config parameter "client_secret"
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all-set,1,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,2,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,3,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,4,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,5,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,6,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,7,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,8,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,9,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,10,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,11,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,12,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,13,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config in: state="*all,14,false", result=""
2022/09/12 11:04:11 DEBUG : dropbox: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:11 DEBUG : dropbox: config: reading config parameter "config_fs_advanced"
Edit advanced config?
y) Yes
n) No (default)
y/n>

2022/09/12 11:04:13 DEBUG : dropbox: config in: state="*all-advanced", result="false"
2022/09/12 11:04:13 DEBUG : dropbox: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:13 DEBUG : dropbox: config in: state="*postconfig", result=""
2022/09/12 11:04:13 DEBUG : dropbox: config in: state="", result=""
2022/09/12 11:04:13 DEBUG : dropbox: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:13 DEBUG : dropbox: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:13 DEBUG : dropbox: config in: state="*oauth,,,", result=""
2022/09/12 11:04:13 DEBUG : dropbox: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:13 DEBUG : dropbox: config in: state="*oauth-confirm,,,", result=""
2022/09/12 11:04:13 DEBUG : dropbox: config out: out=&{State:*oauth-islocal,,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:13 DEBUG : dropbox: config: reading config parameter "config_is_local"
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/09/12 11:04:15 DEBUG : dropbox: config in: state="*oauth-islocal,,,", result="true"
2022/09/12 11:04:15 DEBUG : dropbox: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/09/12 11:04:15 DEBUG : dropbox: config in: state="*oauth-do,,,", result=""
2022/09/12 11:04:15 DEBUG : Starting auth server on 127.0.0.1:53682
2022/09/12 11:04:15 DEBUG : dropbox: config out: out=<nil>, err=config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Usage:
  rclone config [flags]
  rclone config [command]

Available Commands:
  create      Create a new remote with name, type and options.
  delete      Delete an existing remote.
  disconnect  Disconnects user from remote
  dump        Dump the config file as JSON.
  file        Show path of configuration file in use.
  password    Update password in an existing remote.
  paths       Show paths used for configuration, cache, temp etc.
  providers   List in JSON format all the providers and options.
  reconnect   Re-authenticates user with remote.
  show        Print (decrypted) config file, or the config for a single remote.
  touch       Ensure configuration file exists.
  update      Update options in an existing remote.
  userinfo    Prints info about logged in user of remote.

Flags:
  -h, --help   help for config

Additional help topics:
  rclone config edit       Enter an interactive configuration session.

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.

2022/09/12 11:04:15 Fatal error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

C:\Rclone>

Thats some sort of security error when rclone tries to start its webserver to receive the oauth token.

You said you disabled firewall - I'm guessing there must be other security policies active?