You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the IPT data directory is on an NFS volume, an NFS lock file in the resource directory prevents the deletion of the resource. This lock file is likely the result of a file input stream or similar not being closed properly.
Instructions on how to reproduce the issue, including screenshot of the issue and stacktrace are included below.
To reproduce:
configure IPT instance using IPT directory on NFS
create a new empty resource
upload a new file source, click add, then save
click delete button on resource overview page (produces result shown in screenshot attached)
Screenshot:
Stacktrace:
ERROR Failed to remove resource.
java.io.IOException: Unable to delete file: /var/lib/tomcat/ipt-giasip-data/resources/test1234567/sources/.nfs0000000007750a8000000004
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2381)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1679)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1575)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2372)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1679)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1575)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2372)
at org.gbif.ipt.service.manage.impl.ResourceManagerImpl.delete(ResourceManagerImpl.java:703)
at org.gbif.ipt.action.manage.OverviewAction.delete(OverviewAction.java:267)
The text was updated successfully, but these errors were encountered:
Closing additional instances in commit fdcb647 fixed this issue, allowing the fix to be included in version 2.3.4.
A reminder gbif/dwca-io#22 still needs fixing, at which point the IPT should upgrade to this newer version of dwca-io to ensure more CSVReader instances get closed properly.
When the IPT data directory is on an NFS volume, an NFS lock file in the resource directory prevents the deletion of the resource. This lock file is likely the result of a file input stream or similar not being closed properly.
Instructions on how to reproduce the issue, including screenshot of the issue and stacktrace are included below.
To reproduce:
Screenshot:
Stacktrace:
The text was updated successfully, but these errors were encountered: