Auto rclone config doesn't work

I am stuck at the step that requires me to use the web browser to automatically authenticate rclone with remote?

I answers yes but it stopped at waiting for code, but the "get code" can never be loaded. I am trying to use box, and my default browser is chrome. Also, I am using the most up-to-date version of rclone.

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

[yunrui@dtn2 ~]$ 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> box

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, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu 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 / In memory object storage system.
   \ (memory)
24 / Internet Archive
   \ (internetarchive)
25 / Jottacloud
   \ (jottacloud)
26 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
27 / Local Disk
   \ (local)
28 / Mail.ru Cloud
   \ (mailru)
29 / Mega
   \ (mega)
30 / Microsoft Azure Blob Storage
   \ (azureblob)
31 / Microsoft OneDrive
   \ (onedrive)
32 / OpenDrive
   \ (opendrive)
33 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ (swift)
34 / Oracle Cloud Infrastructure Object Storage
   \ (oracleobjectstorage)
35 / Pcloud
   \ (pcloud)
36 / Put.io
   \ (putio)
37 / QingCloud Object Storage
   \ (qingstor)
38 / SMB / CIFS
   \ (smb)
39 / SSH/SFTP
   \ (sftp)
40 / Sia Decentralized Cloud
   \ (sia)
41 / Storj Decentralized Cloud Storage
   \ (storj)
42 / Sugarsync
   \ (sugarsync)
43 / Transparently chunk/split large files
   \ (chunker)
44 / Union merges the contents of several upstream fs
   \ (union)
45 / Uptobox
   \ (uptobox)
46 / WebDAV
   \ (webdav)
47 / Yandex Disk
   \ (yandex)
48 / Zoho
   \ (zoho)
49 / premiumize.me
   \ (premiumizeme)
50 / seafile
   \ (seafile)
Storage> box

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> 

Option box_config_file.
Box App config.json location
Leave blank normally.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
box_config_file> 

Option access_token.
Box App Primary Access Token
Leave blank normally.
Enter a value. Press Enter to leave empty.
access_token> 

Option box_sub_type.
Choose a number from below, or type in your own string value.
Press Enter for the default (user).
 1 / Rclone should act on behalf of a user.
   \ (user)
 2 / Rclone should act on behalf of a service account.
   \ (enterprise)
box_sub_type> 1

Edit advanced config?
y) Yes
n) No (default)
y/n> n

Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> y

2023/02/13 15:22:21 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=VxQ-kRGrOZx59O3SMXewrg
2023/02/13 15:22:21 NOTICE: Log in and authorize rclone for access
2023/02/13 15:22:21 NOTICE: Waiting for code...
      

Thank you so much for helping me out!

hello and welcome to the forum,

when you posted, there was a template of questions for you to answer, including

**STOP and  READ** **USE THIS TEMPLATE** **NO EXCEPTIONS**:
Please show the effort you've put in to solving the problem and please be specific
people are volunteering their time to help you! Low effort posts are not likely to get good answers!   
**DO NOT REDACT** any information except passwords/keys/personal info.  
You should use 3 backticks to begin and end your paste to make it readable.  
Or use a service such as https://pastebin.com or https://gist.github.com/

Run the command 'rclone version' and share the full output of the command.
**STOP and  READ**: 
Do not type in "Latest".
Do not just type in a version number. Run the command and share the full output.
Are you on the latest version of rclone? 
You can validate by checking the version listed here: https://rclone.org/downloads/

I am so sorry for the confusion.
Here is the my rclone version:

[yunrui@dtn2 ~]$ rclone version

rclone v1.61.1

- os/version: centos 7.9.2009 (64 bit)

- os/kernel: 3.10.0-1160.80.1.el7.x86_64 (x86_64)

- os/type: linux

- os/arch: amd64

- go/version: go1.19.4

- go/linking: static

- go/tags: none

the machine running rclone needs a web browser, does your machine have that?

I have chrome. Does that work?

yes, firefox/chrome/edge, all will work.

It still doesn't run tho. Is that because I am using a MacBook?

can you run rclone config -vv, and try to recreate a new remote.

and post the full output

NOTE: before posting, make sure to redacted/remove private info, such as token/id/secret/password/etc..

[yunrui@dtn1 ~]$ rclone config -vv
2023/02/15 16:22:30 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "config" "-vv"]
2023/02/15 16:22:30 DEBUG : Using config file from "/u/home/y/yunrui/.config/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> box

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 M                                                                                            obile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDr                                                                                            ive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, Seaw                                                                                            eedFS, StackPath, Storj, Tencent COS, Qiniu 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 / In memory object storage system.                                                                                                                                       
   \ (memory)                                                                                                                                                               
24 / Internet Archive                                                                                                                                                       
   \ (internetarchive)                                                                                                                                                      
25 / Jottacloud                                                                                                                                                             
   \ (jottacloud)                                                                                                                                                           
26 / Koofr, Digi Storage and other Koofr-compatible storage providers                                                                                                       
   \ (koofr)                                                                                                                                                                
27 / Local Disk                                                                                                                                                             
   \ (local)                                                                                                                                                                
28 / Mail.ru Cloud                                                                                                                                                          
   \ (mailru)                                                                                                                                                               
29 / Mega                                                                                                                                                                   
   \ (mega)                                                                                                                                                                 
30 / Microsoft Azure Blob Storage                                                                                                                                           
   \ (azureblob)                                                                                                                                                            
31 / Microsoft OneDrive                                                                                                                                                     
   \ (onedrive)                                                                                                                                                             
32 / OpenDrive                                                                                                                                                              
   \ (opendrive)                                                                                                                                                            
33 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)                                                                                                          
   \ (swift)                                                                                                                                                                
34 / Oracle Cloud Infrastructure Object Storage                                                                                                                             
   \ (oracleobjectstorage)                                                                                                                                                  
35 / Pcloud                                                                                                                                                                 
   \ (pcloud)                                                                                                                                                               
36 / Put.io                                                                                                                                                                 
   \ (putio)                                                                                                                                                                
37 / QingCloud Object Storage                                                                                                                                               
   \ (qingstor)                                                                                                                                                             
38 / SMB / CIFS                                                                                                                                                             
   \ (smb)                                                                                                                                                                  
39 / SSH/SFTP                                                                                                                                                               
   \ (sftp)                                                                                                                                                                 
40 / Sia Decentralized Cloud                                                                                                                                                
   \ (sia)                                                                                                                                                                  
41 / Storj Decentralized Cloud Storage                                                                                                                                      
   \ (storj)      
42 / Sugarsync                                                                                                                                                              
   \ (sugarsync)                                                                                                                                                            
43 / Transparently chunk/split large files                                                                                                                                  
   \ (chunker)                                                                                                                                                              
44 / Union merges the contents of several upstream fs                                                                                                                       
   \ (union)                                                                                                                                                                
45 / Uptobox                                                                                                                                                                
   \ (uptobox)                                                                                                                                                              
46 / WebDAV                                                                                                                                                                 
   \ (webdav)                                                                                                                                                               
47 / Yandex Disk                                                                                                                                                            
   \ (yandex)                                                                                                                                                               
48 / Zoho                                                                                                                                                                   
   \ (zoho)                                                                                                                                                                 
49 /premiumize.me                                                                                                                                                          
   \ (premiumizeme)                                                                                                                                                         
50 / seafile                                                                                                                                                                
   \ (seafile)                                                                                                                                                              
Storage> box                                                                                                                                                                

2023/02/15 16:22:39 DEBUG : box: config in: state="*all", result=""                                                                                                         
2023/02/15 16:22:39 DEBUG : box: config out: out=&{State:*all-set,0,false Option                                                                                            : OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                    
2023/02/15 16:22:39 DEBUG : box: 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>                                                                                                                  

2023/02/15 16:22:40 DEBUG : box: config in: state="*all-set,0,false", result=""                                                                                             
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,1,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,1,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all-set,1,false Option                                                                                            : OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                    
2023/02/15 16:22:40 DEBUG : box: 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>                                                                                                                              
2023/02/15 16:22:40 DEBUG : box: config in: state="*all-set,1,false", result=""                                                                                             
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,2,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,2,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,3,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,3,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,4,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,4,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,5,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,5,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all,6,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:40 DEBUG : box: config in: state="*all,6,false", result=""                                                                                                 
2023/02/15 16:22:40 DEBUG : box: config out: out=&{State:*all-set,6,false Option                                                                                            : OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                    
2023/02/15 16:22:40 DEBUG : box: config: reading config parameter "box_config_fi                                                                                            le"                                                                                         
Option box_config_file.                                                                                                                                                     
Box App config.json location                                                                                                                                                
Leave blank normally.                                                                                                                                               
Leading `~` will be expanded in the file name as will environment variables such                                                                                             as `${RCLONE_CONFIG_DIR}`.                                                                                                                                                 
Enter a value. Press Enter to leave empty.                                                                                                                                  
box_config_file>                                                                                                                                    

2023/02/15 16:22:41 DEBUG : box: config in: state="*all-set,6,false", result=""                                                                                             
2023/02/15 16:22:41 DEBUG : box: config out: out=&{State:*all,7,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:41 DEBUG : box: config in: state="*all,7,false", result=""                                                                                                 
2023/02/15 16:22:41 DEBUG : box: config out: out=&{State:*all-set,7,false Option                                                                                            : OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                    
2023/02/15 16:22:41 DEBUG : box: config: reading config parameter "access_token"                                                                                            
Option access_token.                                                                                                                                            
Box App Primary Access Token                                                                                                                                                
Leave blank normally.                                                                                                                                               
Enter a value. Press Enter to leave empty.                                                                                                                                  
access_token>                                                                                                                           

2023/02/15 16:22:42 DEBUG : box: config in: state="*all-set,7,false", result=""   "us                                                                                            er"                                                                                         
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,9,false Option:<ni                                                                                            l> OAuth:<nil> Error: Result:}, err=<nil>                                                                                                                                   
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,9,false", result=""                                                                                                 
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,10,false", result=""
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,11,false", result=""
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,12,false", result=""
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,13,false", result=""
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config in: state="*all,14,false", result=""
2023/02/15 16:22:43 DEBUG : box: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:43 DEBUG : box: config: reading config parameter "config_fs_advanced"
Edit advanced config?
y) Yes
n) No (default)
y/n> n

2023/02/15 16:22:46 DEBUG : box: config in: state="*all-advanced", result="false"
2023/02/15 16:22:46 DEBUG : box: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:46 DEBUG : box: config in: state="*postconfig", result=""
2023/02/15 16:22:46 DEBUG : box: config in: state="", result=""
2023/02/15 16:22:46 DEBUG : box: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:46 DEBUG : box: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:46 DEBUG : box: config: reading config parameter "config_is_local"
Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> y

2023/02/15 16:22:48 DEBUG : box: config in: state="*oauth-islocal,,,", result="true"
2023/02/15 16:22:48 DEBUG : box: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/02/15 16:22:48 DEBUG : box: config in: state="*oauth-do,,,", result=""
2023/02/15 16:22:48 DEBUG : Starting auth server on 127.0.0.1:53682
2023/02/15 16:22:48 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=CYAw_2s4D7K1SVbk-Tp8Sg
2023/02/15 16:22:48 NOTICE: Log in and authorize rclone for access
2023/02/15 16:22:48 NOTICE: Waiting for code...
2023/02/15 16:22:58 DEBUG : Redirecting browser to: https://app.box.com/api/oauth2/authorize?access_type=offline&client_id=d0374ba6pgmaguie02ge15sv1mllndho&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&state=CYAw_2s4D7K1SVbk-Tp8Sg
^[[B^[[A

not sure why you get that redirect
what kind of box account do you have, free/enterprise or what?

what do you see in the web browser after that redirect?

just now, i successfully created a new remote for box

Current remotes:

Name                 Type
====                 ====

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n

Enter name for new remote.
name> box02

Option Storage.
Storage> box

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>

Option box_config_file.
Box App config.json location
Leave blank normally.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
box_config_file>

Option access_token.
Box App Primary Access Token
Leave blank normally.
Enter a value. Press Enter to leave empty.
access_token>

Option box_sub_type.
Choose a number from below, or type in your own string value.
Press Enter for the default (user).
 1 / Rclone should act on behalf of a user.
   \ (user)
 2 / Rclone should act on behalf of a service account.
   \ (enterprise)
box_sub_type>

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>

2023/02/15 19:47:39 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=w2MTKNXwacVAPXZNu9BEbg
2023/02/15 19:47:39 NOTICE: Log in and authorize rclone for access
2023/02/15 19:47:39 NOTICE: Waiting for code...
2023/02/15 19:47:52 NOTICE: Got code
Configuration complete.
Options:
- type: box
- token: {"access_token":"redacted","token_type":"bearer","refresh_token":"redacted","expiry":"2023-02-15T20:58:04.0504846-05:00"}
Keep this "box02" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>

I was using my school box account. I think yesterday when I use the command just "rclone config", the website did pop up eventually. Thank you for your help tho!
There might be something wrong with my internet or something.
Thanks!

ok, good that it is working