Opened 6 years ago
Closed 6 years ago
#1945 closed defect (fixed)
petascope_insertdemo.sh doesn't work when installed from package (e.g. rpm)
Reported by: | Dimitar Misev | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.7 |
Component: | build system | Version: | development |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
I get this:
petascope_insertdemo.sh: Cleaning temporary files...Done. cp: cannot create regular file ‘/opt/rasdaman/share/rasdaman//petascope/petascope_insertdemo_data/3D_Timeseries_Regular/ingest.json’: Permission denied sed: can't read /opt/rasdaman/share/rasdaman//petascope/petascope_insertdemo_data/3D_Timeseries_Regular/ingest.json: No such file or directory sed: can't read /opt/rasdaman/share/rasdaman//petascope/petascope_insertdemo_data/3D_Timeseries_Regular/ingest.json: No such file or directory petascope_insertdemo.sh: Ingesting AverageTemperature to petascope by wcst_import...We could not read the ingredients file at /opt/rasdaman/share/rasdaman//petascope/petascope_insertdemo_data/3D_Timeseries_Regular/ingest.json. Make sure the file exists and is readable. Done. petascope_insertdemo.sh: Cleaning temporary files...Done.
there's no ingest.json:
$ ll /opt/rasdaman/share/rasdaman//petascope/petascope_insertdemo_data/3D_Timeseries_Regular/ total 4772 -rw-r--r-- 1 rasdaman rasdaman 650 Dec 13 08:21 AverageTemperatureColor.template.json -rw-r--r-- 1 rasdaman rasdaman 1216578 Dec 13 08:21 SCALED_M_LSTDA_2015-01.TIFF -rw-r--r-- 1 rasdaman rasdaman 1216578 Dec 13 08:21 SCALED_M_LSTDA_2015-02.TIFF -rw-r--r-- 1 rasdaman rasdaman 1216578 Dec 13 08:21 SCALED_M_LSTDA_2015-03.TIFF -rw-r--r-- 1 rasdaman rasdaman 1216578 Dec 13 08:21 SCALED_M_LSTDA_2015-04.TIFF
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Ah I see that the problem is actually permission error: I ran petascope_insertdemo.sh with a user that cannot write in the /opt/rasdaman/share/.. directory.
So this directory should be first checked if the script can write to it. Or even better, create this ingest.json in /tmp
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Also these two lines should be on the same line: