What is the problem you are having with rclone?
iDrive S3 bucket file listing returns "directory not found" when called from PowerShell, but works fine when called from Lazarus IDE application.
I cannot see any difference in parameters between these two calling styles. I made sure the config file, remote name, bucket name and subdirectory are identical.
Bucket name is "lap" - I hope I have used it correctly, this is my first try with something other than FTP with rclone.
Subdirectory in the bucket is "zdjecia/current" - what's more strange is that the files have uploaded without any issue, and can be listed with the Lazarus version, but I cannot see any file in the iDrive web interface. The bucket info reads "0 files 0 KB". I will ask iDrive about this, but perhaps it is connected somehow to the issue.
Run the command 'rclone version' and share the full output of the command.
rclone v1.63.1
- os/version: Microsoft Windows 10 Home 22H2 (64 bit)
- os/kernel: 10.0.19045.3208 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: cmount
Also tried latest beta, without success.
Which cloud storage system are you using? (eg Google Drive)
iDrive e2
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
The command that doesn't work (PowerShell) is this:
C:\PProg\Dysk\rclone\rclone.exe lsf idrive_crypt:lap/zdjecia/current `
--config="$PSScriptRoot\rclone.lapasus.idrive.config" `
--password-command="$password_cmd" `
--format="tsp" `
--separator="*" `
-vv
The command that works is impossible to type, because what I do in Lazarus is create a TProcess object and then supply the executable path, and each parameter separately. But the parameters are almost the same and in the same order. The only difference is in the password command.
The rclone config contents with secrets removed.
[idrive_e2]
type = s3
provider = idrive
access_key_id = <removed>
secret_access_key = <removed>
acl = private
[idrive_crypt]
type = crypt
remote = idrive_e2
password = <removed>
A log from the command with the -vv
flag
Not working log (PowerShell):
2023/08/10 20:39:24 DEBUG : rclone: Version "v1.63.1" starting with parameters ["C:\\PProg\\Dysk\\rclone\\rclone.exe" "lsf" "idrive_crypt:lap/zdjecia/current" "--config=D:\\BackupScript\\rclone\\rclone.lapasus.idrive.config" "--password-command=powershell -NoProfile -File D:\\BackupScript\\rclone\\rclone_pass.ps1" "--format=tsp" "--separator=*" "-vv"]
2023/08/10 20:39:24 DEBUG : Creating backend with remote "idrive_crypt:lap/zdjecia/current"
2023/08/10 20:39:25 DEBUG : Using config file from "D:\\BackupScript\\rclone\\rclone.lapasus.idrive.config"
2023/08/10 20:39:25 DEBUG : Creating backend with remote "idrive_e2/<removed>"
2023/08/10 20:39:25 DEBUG : fs cache: renaming cache item "idrive_e2/<removed>" to be canonical "//?/D:/BackupScript/rclone/idrive_e2/<removed>"
2023/08/10 20:39:25 DEBUG : fs cache: switching user supplied name "idrive_e2/<removed>" for canonical name "//?/D:/BackupScript/rclone/idrive_e2/<removed>"
2023/08/10 20:39:25 ERROR : : error listing: directory not found
2023/08/10 20:39:25 DEBUG : 2 go routines active
2023/08/10 20:39:25 Failed to lsf with 2 errors: last error was: error in ListJSON: directory not found
Working log (Lazarus):
2023/08/10 20:43:46 DEBUG : rclone: Version "v1.63.1" starting with parameters ["C:\\PProg\\Dysk\\rclone\\rclone.exe" "lsf" "idrive_crypt:lap/zdjecia/current/" "--config=D:\\BackupScript\\rclone\\rclone.lapasus.idrive.config" "--password-command=D:\\BackupScript\\rcGUI_devel\\Release\\rcGUIpass.exe" "--format=tsp" "--separator=*" "-vv"]
2023/08/10 20:43:46 DEBUG : Creating backend with remote "idrive_crypt:lap/zdjecia/current/"
2023/08/10 20:43:46 DEBUG : Using config file from "D:\\BackupScript\\rclone\\rclone.lapasus.idrive.config"
2023/08/10 20:43:46 DEBUG : Creating backend with remote "idrive_e2/<removed>"
2023/08/10 20:43:46 DEBUG : fs cache: renaming cache item "idrive_e2/<removed>" to be canonical "//?/D:/BackupScript/rcGUI_devel/Release/idrive_e2/<removed>"
2023/08/10 20:43:46 DEBUG : fs cache: switching user supplied name "idrive_e2/<removed>" for canonical name "//?/D:/BackupScript/rcGUI_devel/Release/idrive_e2/<removed>"
2023-08-10 16:39:54*-1*2004-08-04_Pielgrzymka_do_Czestochowy/
2023-08-10 16:39:54*-1*2004-09-21_Bieszczady/
2023-08-10 16:40:10*-1*2006-07-30_Turniej_Janowiec_Nikoniarze/
2023-08-10 16:40:11*-1*2006-08-18_Po_pielgrzymce_do_Chestochowy/
<cut the listing>
2009-05-18 13:10:42*41794*rzeznik_lcduf.png
2022-01-15 16:39:11*14495*tapeta_drugi_monitor_czarna.jpg
2017-06-10 18:02:26*6220922*tapetka_dell.bmp
2022-03-08 19:50:37*2061192*twinsen_1920x1024.png
2023/08/10 20:43:47 DEBUG : 2 go routines active