Opened 5 years ago

Closed 5 years ago

#2045 closed defect (fixed)

Problem with tmp dir if starting two embedded petascopes

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: petascope Version: 9.7
Keywords: Cc:
Complexity: Medium

Description

If embedded petascope is started twice on the same machine (two different ports), it can lead to error like this:

Cannot start petascope, reason 'Cannot add GDAL native library from '/opt/rasdaman/third_party/gdal/lib' to java library path, please restart Tomcat to fix this problem. Reason: Cannot delete temp directory '/tmp/rasdaman_petascope/gdal_java', please remove manually and restart Tomcat. Reason: Unable to delete directory /tmp/rasdaman_petascope/gdal_java/2019.03.28.10.34.00.'.

Change History (1)

comment:1 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed

The problem was when a new petascope starts, it clears the content of /tmp/rasdaman_petascope/gdal_java/ and caused another problem with loading GDAL JNI for current running petascope. So, it only remove gdal_java/folders which are older than 1 hour instead.

Note: See TracTickets for help on using tickets.