What is the problem you are having with rclone?
Can't seem to get stats ( transfer amount, rate etc, ) for a larger file upload.
First I start the upload using async
Then, using the job id, returned by the upload call, I run a script to attempt to gather stats on the transfer.
I will rerun this several times during the transfer and the stats come back empty ( zero )
I believe I am may be missing an important concept or information.
When I try getting stats for all transfers it also returns zero in all the stats fields.
( See code + output below )
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
**Power Shell Commands and Output:**
**1.) Call File Upload**
Write-Output("Upload Large File Using core Command copy")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{"command": "copy", "arg": ["G:/Data/Work/Development/RCloneResearch/biggerfile.zip", "GDriveTest:TestFolder"], "_async":"true" }'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/command' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
**Output:**
Upload Large File Using core Command copy
{
"jobid": 657
}
**2.) Past JOB ID into follow script. Run it to try to get stats on the job.**
Write-Output("==Get List of All Groups==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{ }'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/group-list' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
Write-Output("==Get the Stats for All Groups==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{}'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/stats' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
Write-Output("==Get the Job Status Using the Job ID ==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{ "jobid": "657" }'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/job/status' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
Write-Output("==Get the Core Stats For the Job using the Job Group Name Listed in the Response from the Upload Call==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{ "group": "job/657" }'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/stats' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
Write-Output("==Get the Transferred Stats for All Groups==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{}'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/transferred' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
Write-Output("==Get the Transferred Stats for the Upload using the Job Group Name Listed in the Response from the Upload Call==")
$headers=@{}
$headers.Add("user-agent", "vscode-restclient")
$headers.Add("content-type", "application/json")
$body='{"group": "job/657"}'
Invoke-WebRequest -Uri 'http://127.0.0.1:5572/core/transferred' -Method POST -Headers $headers -ContentType 'application/json' -Body $body -UseBasicParsing | Select-Object -Expand Content
**Output**
==Get List of All Groups==
{
"groups": [
"job/27",
"job/42",
"job/50",
"job/117",
"job/140",
"job/154",
"job/646"
]
}
==Get the Stats for All Groups==
{
"bytes": 0,
"checks": 0,
"deletedDirs": 0,
"deletes": 0,
"elapsedTime": 8642.076249,
"errors": 0,
"eta": null,
"fatalError": false,
"renames": 0,
"retryError": false,
"speed": 0,
"totalBytes": 0,
"totalChecks": 0,
"totalTransfers": 0,
"transferTime": 0,
"transfers": 0
}
==Get the Job Status Using the Job ID ==
{
"duration": 0,
"endTime": "0001-01-01T00:00:00Z",
"error": "",
"finished": false,
"group": "job/657",
"id": 657,
"output": null,
"startTime": "2023-05-18T15:43:25.412056-04:00",
"success": false
}
==Get the Core Stats For the Job using the Job Group Name Listed in the Response from the Upload Call==
{
"bytes": 0,
"checks": 0,
"deletedDirs": 0,
"deletes": 0,
"elapsedTime": 0,
"errors": 0,
"eta": null,
"fatalError": false,
"renames": 0,
"retryError": false,
"speed": 0,
"totalBytes": 0,
"totalChecks": 0,
"totalTransfers": 0,
"transferTime": 0,
"transfers": 0
}
==Get the Transferred Stats for All Groups==
{
"transferred": []
}
==Get the Transferred Stats for the Upload using the Job Group Name Listed in the Response from the Upload Call==
{
"transferred": []
}