irods: Can't remove file after failed upload
I try to upload a 3.7Go file to an iRods resource using CyberDuck, and ended up canceling in the middle of the upload.
When i try to remove the file i got the following error :
$ irm test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
remote addresses: 194.167.60.91 ERROR: rmUtil: rm error for /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso, status = -1803000 status = -1803000 HIERARCHY_ERROR
$ irm -f test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
remote addresses: 194.167.60.91 ERROR: rmUtil: rm error for /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso, status = -406000 status = -406000 LOCKED_DATA_OBJECT_ACCESS
I also tried reg and unreg on the server without luck :
# This is done using my user on the irods server
debian@nte-irods-icat:~$ ireg -f /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
remote addresses: 194.167.60.91 ERROR: regUtil: reg error for /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso, status = -516002 status = -516002 UNIX_FILE_STAT_ERR, No such file or directory
ERROR: main: regUtil error. status = -516002 UNIX_FILE_STAT_ERR, No such file or directory
# This is done using the rods user on the irods server
irods@nte-irods-icat:~$ iunreg -M /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
remote addresses: 10.54.0.164 ERROR: rmUtil: srcPath /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso does not exist
remote addresses: 10.54.0.164 ERROR: rmUtil: rm error for /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso, status = -1803000 status = -1803000 HIERARCHY_ERROR
The file /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso very much exist on the server :
irods@nte-irods-icat:~$ ls -alh /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
-rw------- 1 irods irods 392M Mar 3 12:02 /mnt/users/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso
I can see that the data is in intermediate state, i also try the following :
irods@nte-irods-icat:~$ iadmin modrepl logical_path /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso replica_number 0 DATA_REPL_STATUS stale
rcModDataObjMeta failed when modifying replica: [CAT_SQL_ERR (-806000)]
irods@nte-irods-icat:~$ tail /var/log/syslog
2025-03-04T11:02:27.974090+01:00 nte-irods-icat irodsServer[3836722]: {"log_category":"legacy","log_level":"error","log_message":"[-]\t/irods_source/server/api/src/rsModDataObjMeta.cpp:168:int _rsModDataObjMeta(rsComm_t *, modDataObjMeta_t *) : status [CAT_SQL_ERR] errno [] -- message [_rsModDataObjMeta - Failed to modify the database for object \"/devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso\" - CAT_SQL_ERR ]\n\n","request_api_name":"MOD_DATA_OBJ_META_AN","request_api_number":622,"request_api_version":"d","request_client_user":"rods","request_host":"10.54.0.164","request_proxy_user":"rods","request_release_version":"rods4.3.3","server_host":"nte-irods-icat","server_pid":3836722,"server_timestamp":"2025-03-04T10:02:27.972Z","server_type":"agent","server_zone":"devZone"}
I may be trying the wrong thing ? How do i get rid of this stale file ?
UPDATE :
I found the anwser in the doc : https://docs.irods.org/4.3.3/system_overview/troubleshooting/#data-object-stuck-in-locked-or-intermediate-status
I did the following :
irods@nte-irods-icat:~$ iadmin modrepl logical_path /devZone/home/[REDACTED]/test_cyberduck/debian-12.9.0-amd64-DVD-1.iso replica_number 0 DATA_REPL_STATUS 0
After that i was able to delete my file with irm.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (10 by maintainers)
If the logs are normal then 4.3.4 solve my problem. I do not get any intermediate files since the upgrade.