Opened 5 months ago

Closed 3 months ago

#2144 closed defect (fixed)

ZOO-Project demo throws 400 errors

Reported by: kalxas Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive13.0
Component: OSGeoLive Keywords:
Cc: osgeolive@…

Description

Previous versions failed to build against latest OTB.

There is a proposed 1.7.0 release (not yet final). We shall try to install this new version.

Change history (16)

comment:1 Changed 5 months ago by kalxas

ZOO-Project 1.7.0 has been released.

comment:2 Changed 4 months ago by djay

Trunk should build with OTB 6.6 (build log).

comment:3 Changed 4 months ago by kalxas

ZOO 1.7.0 debian package is now available in our ppa.

Time to test it.

comment:4 Changed 4 months ago by kalxas

ZOO is enabled in build 163, the demo shows up but the functionality is not there yet.

Please test.

comment:6 Changed 4 months ago by kalxas

I am able to see WPS Capabilities document, so the service is up and running.

The demo examples are not working as expected.

comment:7 Changed 4 months ago by kalxas

Priority: criticalmajor
Summary: ZOO-Project missing from 13.0 nightly buildsZOO-Project demo throws 400 errors

comment:8 Changed 4 months ago by kalxas

From build logs:

Setting up zoo-service-cgal (1.7.0+ds-1~bionic0) ...
./install_zoo-project.sh: 55: cd: can't cd to /usr/lib/cgi-bin/OTB
sed: can't read BandMath.zcfg: No such file or directory
sed: can't read Despeckle.zcfg: No such file or directory
sed: can't read KMeansClassification.zcfg: No such file or directory
sed: can't read Smoothing.zcfg: No such file or directory
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

comment:9 Changed 3 months ago by darkblueb

proposed fix in new branch zoo_patches13 for the spurious log msgs above. zoo-project.cgi is returning 400 errors in build215, no fixes for that yet!

Last edited 3 months ago by darkblueb (previous) (diff)

comment:10 in reply to:  6 Changed 3 months ago by djay

Replying to kalxas:

I am able to see WPS Capabilities document, so the service is up and running.

The demo examples are not working as expected.

From what I can see from the VM, the Capabilities document is empty, meaning that there is no service / ZCFG present.

I guess that once the ZCFG files will be installed it should solve the demonstrations issue.

I hope it helps.

comment:11 Changed 3 months ago by kalxas

From within the latest nightly iso:

user@osgeolive:~$ sudo apt install zoo-service-cgal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zoo-service-cgal is already the newest version (1.7.0+ds-1~bionic0).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
user@osgeolive:~$ sudo apt install zoo-service-ogr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zoo-service-ogr is already the newest version (1.7.0+ds-1~bionic0).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
user@osgeolive:~$ sudo apt install zoo-service-otb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zoo-service-otb is already the newest version (1.7.0+ds-1~bionic0).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
user@osgeolive:~$ sudo dpkg -L zoo-service-otb
/.
/etc
/etc/zoo-project
/etc/zoo-project/BandMath.zcfg
/etc/zoo-project/BinaryMorphologicalOperation.zcfg
/etc/zoo-project/BlockMatching.zcfg
/etc/zoo-project/BundleToPerfectSensor.zcfg
/etc/zoo-project/ClassificationMapRegularization.zcfg
/etc/zoo-project/ColorMapping.zcfg
/etc/zoo-project/CompareImages.zcfg
/etc/zoo-project/ComputeConfusionMatrix.zcfg
/etc/zoo-project/ComputeImagesStatistics.zcfg
/etc/zoo-project/ComputeModulusAndPhase.zcfg
/etc/zoo-project/ComputeOGRLayersFeaturesStatistics.zcfg
/etc/zoo-project/ComputePolylineFeatureFromImage.zcfg
/etc/zoo-project/ConcatenateImages.zcfg
/etc/zoo-project/ConcatenateVectorData.zcfg
/etc/zoo-project/ConnectedComponentSegmentation.zcfg
/etc/zoo-project/ContrastEnhancement.zcfg
/etc/zoo-project/Convert.zcfg
/etc/zoo-project/ConvertCartoToGeoPoint.zcfg
/etc/zoo-project/ConvertSensorToGeoPoint.zcfg
/etc/zoo-project/DEMConvert.zcfg
/etc/zoo-project/DSFuzzyModelEstimation.zcfg
/etc/zoo-project/Despeckle.zcfg
/etc/zoo-project/DisparityMapToElevationMap.zcfg
/etc/zoo-project/DomainTransform.zcfg
/etc/zoo-project/DownloadSRTMTiles.zcfg
/etc/zoo-project/DynamicConvert.zcfg
/etc/zoo-project/EdgeExtraction.zcfg
/etc/zoo-project/ExtractROI.zcfg
/etc/zoo-project/FineRegistration.zcfg
/etc/zoo-project/FusionOfClassifications.zcfg
/etc/zoo-project/GeneratePlyFile.zcfg
/etc/zoo-project/GenerateRPCSensorModel.zcfg
/etc/zoo-project/GrayScaleMorphologicalOperation.zcfg
/etc/zoo-project/GridBasedImageResampling.zcfg
/etc/zoo-project/HaralickTextureExtraction.zcfg
/etc/zoo-project/HomologousPointsExtraction.zcfg
/etc/zoo-project/HooverCompareSegmentation.zcfg
/etc/zoo-project/HyperspectralUnmixing.zcfg
/etc/zoo-project/ImageClassifier.zcfg
/etc/zoo-project/ImageEnvelope.zcfg
/etc/zoo-project/KmzExport.zcfg
/etc/zoo-project/LSMSSegmentation.zcfg
/etc/zoo-project/LSMSSmallRegionsMerging.zcfg
/etc/zoo-project/LSMSVectorization.zcfg
/etc/zoo-project/LargeScaleMeanShift.zcfg
/etc/zoo-project/LineSegmentDetection.zcfg
/etc/zoo-project/LocalStatisticExtraction.zcfg
/etc/zoo-project/ManageNoData.zcfg
/etc/zoo-project/MeanShiftSmoothing.zcfg
/etc/zoo-project/MorphologicalClassification.zcfg
/etc/zoo-project/MorphologicalMultiScaleDecomposition.zcfg
/etc/zoo-project/MorphologicalProfilesAnalysis.zcfg
/etc/zoo-project/MultiImageSamplingRate.zcfg
/etc/zoo-project/MultiResolutionPyramid.zcfg
/etc/zoo-project/MultivariateAlterationDetector.zcfg
/etc/zoo-project/OGRLayerClassifier.zcfg
/etc/zoo-project/OSMDownloader.zcfg
/etc/zoo-project/ObtainUTMZoneFromGeoPoint.zcfg
/etc/zoo-project/OrthoRectification.zcfg
/etc/zoo-project/Pansharpening.zcfg
/etc/zoo-project/PixelValue.zcfg
/etc/zoo-project/PolygonClassStatistics.zcfg
/etc/zoo-project/PredictRegression.zcfg
/etc/zoo-project/Quicklook.zcfg
/etc/zoo-project/RadiometricIndices.zcfg
/etc/zoo-project/Rasterization.zcfg
/etc/zoo-project/ReadImageInfo.zcfg
/etc/zoo-project/RefineSensorModel.zcfg
/etc/zoo-project/Rescale.zcfg
/etc/zoo-project/RigidTransformResample.zcfg
/etc/zoo-project/SARCalibration.zcfg
/etc/zoo-project/SARDeburst.zcfg
/etc/zoo-project/SARDecompositions.zcfg
/etc/zoo-project/SARPolarMatrixConvert.zcfg
/etc/zoo-project/SARPolarSynth.zcfg
/etc/zoo-project/SFSTextureExtraction.zcfg
/etc/zoo-project/SOMClassification.zcfg
/etc/zoo-project/SampleAugmentation.zcfg
/etc/zoo-project/SampleExtraction.zcfg
/etc/zoo-project/SampleSelection.zcfg
/etc/zoo-project/Segmentation.zcfg
/etc/zoo-project/Smoothing.zcfg
/etc/zoo-project/SplitImage.zcfg
/etc/zoo-project/StereoFramework.zcfg
/etc/zoo-project/StereoRectificationGridGenerator.zcfg
/etc/zoo-project/Superimpose.zcfg
/etc/zoo-project/TestApplication.zcfg
/etc/zoo-project/TileFusion.zcfg
/etc/zoo-project/TrainImagesClassifier.zcfg
/etc/zoo-project/TrainRegression.zcfg
/etc/zoo-project/TrainVectorClassifier.zcfg
/etc/zoo-project/VectorClassifier.zcfg
/etc/zoo-project/VectorDataDSValidation.zcfg
/etc/zoo-project/VectorDataExtractROI.zcfg
/etc/zoo-project/VectorDataReprojection.zcfg
/etc/zoo-project/VectorDataSetField.zcfg
/etc/zoo-project/VectorDataTransform.zcfg
/etc/zoo-project/VertexComponentAnalysis.zcfg
/usr
/usr/share
/usr/share/doc
/usr/share/doc/zoo-service-otb
/usr/share/doc/zoo-service-otb/changelog.Debian.gz
/usr/share/doc/zoo-service-otb/changelog.gz
/usr/share/doc/zoo-service-otb/copyright
/usr/share/doc/zoo-service-otb/HISTORY.txt.gz

comment:12 Changed 3 months ago by djay

As presented here you may try adding libPath=/etc/zoo-project/ in the main section of the main.cfg file.

Still, the demo use OTB.X to access an OTB application named X, would it be possible to create a symlink from /etc/zoo-project/OTB to /etc/zoo-project/ or simply create an OTB subdirectory containing the zcfg files?

In other case the OTB. should be removed from the JS code from the demo.

Last edited 3 months ago by djay (previous) (diff)

comment:13 Changed 3 months ago by kalxas

Thanks Gerald, I tried adding libPath and it still does not work.

In /etc/zoo-project there is no OTB directory, all zcfg files are in the top level folder.

comment:14 Changed 3 months ago by djay

From build 223 I was able to get the cgal demo working.

To get it working I had to make the following modificaiton to the /etc/zoo-project/main.cfg file:

  • Add a line in the [main] section containing: libPath=/usr/lib/zoo-project
  • Add an [include] section at the end with the following lines:
Voronoi=/etc/zoo-project/Voronoi.zcfg
Delaunay=/etc/zoo-project/Delaunay.zcfg

To generate the list of available service and the corresponding include line, one may use the following command:

echo "[include]" >> /etc/zoo-project/main.cfg
for i in /etc/zoo-project/*zcfg ; 
  do 
     echo $(echo $i | sed "s:/etc/zoo-project/::g;s:.zcfg::g")=$(echo $i); 
  done >> /etc/zoo-project/main.cfg

As the OTB demonstration UI is relying on the OTB. prefix, one may use the following command to get the OTB.X services also available:

for i in $(dpkg -L zoo-services-otb | grep zcfg) ; 
  do 
     echo OTB.$(echo $i | sed "s:/etc/zoo-project/::g;s:.zcfg::g")=$(echo $i); 
  done >> /etc/zoo-project/main.cfg

I hope this helps.

Last edited 3 months ago by djay (previous) (diff)

comment:16 Changed 3 months ago by kalxas

Resolution: fixed
Status: newclosed

Fixed in build 233

Note: See TracTickets for help on using tickets.