Broken file with broken timestamp - cannot parse "5-05-28T05:36:09.000Z" as "-" cannot delete file

What is the problem you are having with rclone?

I am using jottacloud and store encrypted files there. Usually media backups and system backups.
One of my files seems corrupted - The timestamp seems totally messed up (year 60425?). I do not know if it was already corrupted when I backed it up.

A hard drive died and I have to copy my files back from jottacloud using rclone.
This now fails with the following error:

parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"

I managed to locate the culprit - or at least it's folder - and wanted to delete it using rclone delete, but it cannot be done.

rclone delete crypt:media/videos/movies_german/Broken_Folder
<3>ERROR : Attempt 1/3 failed with 1 errors and: couldn't list files: parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"
<3>ERROR : Attempt 2/3 failed with 1 errors and: couldn't list files: parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"
<3>ERROR : Attempt 3/3 failed with 1 errors and: couldn't list files: parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"
Failed to delete: couldn't list files: parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"

It would appear, everything fails when touching this specific file. I can, however, rename the folder, but not deleting it using rclone delete or rclone purge.

Is there a way to force delete a file using rclone or can I manage to work arround this error in any other way? Sync Copy and ls completely fail.

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

rclone v1.64.0
- os/version: arch "23.0.2" (64 bit)
- os/kernel: 6.5.3-2-MANJARO (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.1
- go/linking: static
- go/tags: none

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

jottacloud (encrypted)

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

rclone ls crypt:media/videos/movies_german/Broken_Folder

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[crypt]
type = crypt
remote = jotta:crypt
password = XXX
password2 = XXX

[gdrive]
type = drive
client_id = XXX
scope = drive
client_secret = XXX
token = XXX
team_drive =

[jotta]
type = jottacloud
configVersion = 1
client_id = XXX
client_secret =
tokenURL = https://id.jottacloud.com/auth/realms/jottacloud/protocol/openid-connect/token
token = XXX
device =
mountpoint =

[opendrive]
type = opendrive
username = XXX
password = XXX

A log from the command that you were trying to run with the -vv flag

rclone -vv ls crypt:media/videos/movies_german/Broken_Folder
<7>DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "-vv" "ls" "crypt:media/videos/movies_german/Broken_Folder"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "crypt:media/videos/movies_german/Broken_Folder"
<7>DEBUG : Using config file from "/home/sean/.config/rclone/rclone.conf"
<7>DEBUG : Creating backend with remote "jotta:crypt/xyz"
<7>DEBUG : 9 go routines active
Failed to ls: couldn't list files: parsing time "60425-05-28T05:36:09.000Z" as "2006-01-02T15:04:05Z07:00": cannot parse "5-05-28T05:36:09.000Z" as "-"

You can just use cryptdecode, figure out the folder name and delete it from the UI until the item potentially gets fixed as a work around.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.