Compatibility problem rclone version

Hi,
I use rclone version 1.39.
I use rclone to copie a file from a windows server to the google drive and it's ok, no log error.
I download rclone version 1.51.0 and the same command does not ok and I have a log error : "it seems that it cannot find the DRIVE GOOGLE folder in the parent"

For example The command is : rclone copy "D:\Import" "ImportDist:DRIVE GOOGLE\Dest" --log-file="D:\Temp\LogCpy.log"
Can you help me ?
Regards

hello and welcome to the forum,

please provide the answers to the following questions.

make sure to add the flag -vv, so the log file will output debug info.
and re-run the command

what happens with these commands

rclone lsd ImportDist:
rclone lsd "ImportDist:DRIVE GOOGLE"
rlcone lsd "ImportDist:DRIVE GOOGLE\Dest"

version 1.39 is over two years old.
if it is not too hard, i would create a new config file for ImportDist: and test again.

Which OS you are using and how many bits (eg Windows 7, 64 bit)

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

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

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

Hi,
The three commands rclone are Ok from version 1.39 and 1.51.0.
My Os is Windows Server 2012R2 (64Bits)
I use Google Drive
This is log with -vv :slight_smile:
"2020/02/12 17:43:33 DEBUG : rclone: Version "v1.51.0" starting with parameters ["C:\Program Files (x86)\Rclone\New\rclone.exe" "-vv" "copy" "D:\Import" "ImportDist:DRIVE GOOGLE\Dest" "--log-file=D:\Temp\Log_Copie_20200212-17.log"]
2020/02/12 17:43:33 DEBUG : Using config file from "C:\Users\Administrateur\.rclone.conf"
2020/02/12 17:43:33 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:33 DEBUG : ImportSupply: Token refresh failed try 1/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57496->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:35 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:35 DEBUG : ImportSupply: Token refresh failed try 2/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57497->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:36 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:36 DEBUG : ImportSupply: Token refresh failed try 3/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57498->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:37 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:37 DEBUG : ImportSupply: Token refresh failed try 4/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57499->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:38 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:38 DEBUG : ImportSupply: Token refresh failed try 5/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57500->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:39 DEBUG : pacer: low level retry 1/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57500->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.)
2020/02/12 17:43:39 DEBUG : pacer: Rate limited, increasing sleep to 1.038585159s
2020/02/12 17:43:39 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:39 DEBUG : ImportSupply: Token refresh failed try 1/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57501->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:40 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:40 DEBUG : ImportSupply: Token refresh failed try 2/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57502->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:41 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:41 DEBUG : ImportSupply: Token refresh failed try 3/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57503->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:42 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:42 DEBUG : ImportSupply: Token refresh failed try 4/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57504->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:43 DEBUG : ImportSupply: Loaded invalid token from config file - ignoring
2020/02/12 17:43:43 DEBUG : ImportSupply: Token refresh failed try 5/5: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57505->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/12 17:43:44 DEBUG : pacer: low level retry 2/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:57505->216.58.204.106:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.)
2020/02/12 17:43:44 DEBUG : pacer: Rate limited, increasing sleep to 2.45391813s"

You seem to be having network problems and your token can't refresh.

What is the IP 1.2.3.4 ? That is your machine? It's saying the connection was closed by the remote side further looking like a firewall/proxy/etc.

Stick with the latest version as 1.39 is ancient.

I changed Ip address by 1.2.3.4 (it's my private network).
With version 1.39, it'ok and I haven't changed anything (firewall, proxy, etc...)
Why it's not ok with version 1.51.0 ?

1.2.3.4 is a public IP address and shouldn't be used for a private network.

I can only tell you what the error is saying you are trying to refresh your token and it's not working so it's something along with your networkig config/virus scanner/machine.

Yes I know ( if you want, you change 1.2.3.4 by 192.168.1.1). it's ok to you ? My problem is not here.
It's the same machine with rclone version 1.39 and 1.51.0.
Why do i have this concern ?
I do not change my config using one or the other version.
It's strange....

You can also try to reauthorize your key manually.

Just re-run the rclone config and select the get a new key.

Ok, but how ?
I have, edit, new remote, delete remote, rename remote, copy remote, set configuration passaword and qui config.

NB : I have use auto config to rclone config

This is the easiest way

rclone config reconnect ImportDist:

Hi,
I do it, this is the result from this command :
"If your browser doesn't open automatically go to the following link: http://127.
0.0.1:53682/auth?state=NAb-SASt9x4mJ0SafsfYOQ
Log in and authorize rclone for access
Waiting for code...
Got code
2020/02/13 15:43:06 Failed to configure token: failed to get token: Post https:/
/oauth2.googleapis.com/token: read tcp 1.2.3.4:59648->216.58.204.138:443: wsa
recv: Une connexion existante a dû être fermée par l'hôte distant."

And the log file :
"2020/02/13 15:50:45 ERROR : : error reading destination directory: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:59829->216.58.201.234:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:50:45 ERROR : Attempt 1/3 failed with 1 errors and: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:59829->216.58.201.234:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:53:30 ERROR : : error reading destination directory: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:59880->172.217.18.202:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:53:30 ERROR : Attempt 2/3 failed with 1 errors and: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:59880->172.217.18.202:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:56:17 ERROR : : error reading destination directory: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:49928->172.217.18.202:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:56:17 ERROR : Attempt 3/3 failed with 1 errors and: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:49928->172.217.18.202:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant.
2020/02/13 15:56:17 Failed to copy: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0APQPgvkm8AE2Uk9PVA'+in+parents)+and+(name%3D'DRIVE+COMMUN')+and+mimeType%3D'application%2Fvnd.google-apps.folder'&supportsAllDrives=true: Post https://oauth2.googleapis.com/token: read tcp 1.2.3.4:49928->172.217.18.202:443: wsarecv: Une connexion existante a dû être fermée par l’hôte distant."

With rclone version 1.39 is always ok after this change

That's still a networking issue from your machine as it's closing the connection.

You'd want to check your firewall/proxy/virus scannner/malware/etc to see what's stopping it.

HI,
I find it, to generate a new key, rclone version 1.51.0 needs internet access and my machne is in DMZ.
I open this access to generate this key and it's good.
Thank to your help.
You can to close this case.

That's correct. To authenticate to Google, you actually do need Internet access :slight_smile: