Downgrading WEBODM

Hi!

I’m having troubles in updating webodm via docker. By now I need instructions how to downgrade 1.9.11 to 1.9.7 or older.

I tried to update my webodm and then rebuild using my processor like this post:

In the first test I made i got success, but in this case i got the following error:

[INFO] running “/code/SuperBuild/install/bin/odm_orthophoto” -inputFiles /var/www/data/75b20dc3-fc99-41d5-b5c8-8cdd8f08c990/odm_texturing_25d/odm_textured_model_geo.obj -logFile “/var/www/data/75b20dc3-fc99-41d5-b5c8-8cdd8f08c990/odm_orthophoto/odm_orthophoto_log.txt” -outputFile “/var/www/data/75b20dc3-fc99-41d5-b5c8-8cdd8f08c990/odm_orthophoto/odm_orthophoto_render.tif” -resolution 23.25028777514098 -outputCornerFile “/var/www/data/75b20dc3-fc99-41d5-b5c8-8cdd8f08c990/odm_orthophoto/odm_orthophoto_corners.txt”
/bin/sh: 1: /code/SuperBuild/install/bin/odm_orthophoto: not found

===== Dumping Info for Geeks (developers need this to fix bugs) =====
Child returned 127
Traceback (most recent call last):
File “/code/stages/odm_app.py”, line 94, in execute
self.first_stage.run()
File “/code/opendm/types.py”, line 346, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 346, in run
self.next_stage.run(outputs)
File “/code/opendm/types.py”, line 346, in run
self.next_stage.run(outputs)
[Previous line repeated 7 more times]
File “/code/opendm/types.py”, line 327, in run
self.process(self.args, outputs)
File “/code/stages/odm_orthophoto.py”, line 71, in process
system.run(’"{odm_ortho_bin}" -inputFiles {models} ’
File “/code/opendm/system.py”, line 106, in run
raise SubprocessException(“Child returned {}”.format(retcode), retcode)
opendm.system.SubprocessException: Child returned 127

===== Done, human-readable information to follow… =====

[ERROR] The program exited with a strange error code. Please report it at https://community.opendronemap.org
100 - done.

I also try to rebuild some modules, but without success.

Any ideas? Thanks!

1 Like

Have you tried upgrading to current v1.9.12? Why must you downgrade?

Because rebuild in last version isnt working and i need it running until i got the problem’s solution.

1 Like

–Update–

When i try to remake via ./configure.sh reinstall on /code inside nodeodm container i got the following error:

[ 75%] Performing install step for ‘opencv’
[ 0%] Built target opencv_videoio_plugins
[ 0%] Built target ittnotify
[ 1%] Built target quirc
[ 4%] Built target ade
[ 8%] Built target ippiw
[ 8%] Built target gen_opencv_python_source
[ 18%] Built target libprotobuf
[ 31%] Built target IlmImf
[ 44%] Built target opencv_core
[ 44%] Built target opencv_flann
[ 46%] Built target opencv_ml
[ 57%] Built target opencv_imgproc
[ 59%] Built target opencv_photo
[ 62%] Built target opencv_imgcodecs
[ 67%] Built target opencv_features2d
[ 68%] Built target opencv_videoio
[ 81%] Built target opencv_dnn
[ 87%] Built target opencv_calib3d
[ 87%] Built target opencv_highgui
[ 89%] Built target opencv_objdetect
[ 91%] Built target opencv_video
[100%] Built target opencv_gapi
[100%] Built target opencv_python3
Install the project…
– Install configuration: “Release”
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippicv-readme.htm
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippicv-EULA.txt
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippicv-third-party-programs.txt
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippiw-support.txt
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippiw-third-party-programs.txt
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ippiw-EULA.txt
– Installing: /code/SuperBuild/install/share/licenses/opencv4/opencl-headers-LICENSE.txt
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/cvconfig.h
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/opencv_modules.hpp
– Installing: /code/SuperBuild/install/lib/cmake/opencv4/OpenCVModules.cmake
– Installing: /code/SuperBuild/install/lib/cmake/opencv4/OpenCVModules-release.cmake
– Installing: /code/SuperBuild/install/lib/cmake/opencv4/OpenCVConfig-version.cmake
– Installing: /code/SuperBuild/install/lib/cmake/opencv4/OpenCVConfig.cmake
– Installing: /code/SuperBuild/install/bin/setup_vars_opencv4.sh
– Installing: /code/SuperBuild/install/share/opencv4/valgrind.supp
– Installing: /code/SuperBuild/install/share/opencv4/valgrind_3rdparty.supp
– Installing: /code/SuperBuild/install/share/licenses/opencv4/openexr-LICENSE
– Installing: /code/SuperBuild/install/share/licenses/opencv4/openexr-AUTHORS.ilmbase
– Installing: /code/SuperBuild/install/share/licenses/opencv4/openexr-AUTHORS.openexr
– Installing: /code/SuperBuild/install/share/licenses/opencv4/protobuf-LICENSE
– Installing: /code/SuperBuild/install/share/licenses/opencv4/protobuf-README.md
– Installing: /code/SuperBuild/install/share/licenses/opencv4/quirc-LICENSE
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ittnotify-LICENSE.BSD
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ittnotify-LICENSE.GPL
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/opencv.hpp
– Installing: /code/SuperBuild/install/share/licenses/opencv4/ade-LICENSE
– Installing: /code/SuperBuild/install/lib/libopencv_core.so.4.5.0
– Installing: /code/SuperBuild/install/lib/libopencv_core.so.4.5
– Set runtime path of “/code/SuperBuild/install/lib/libopencv_core.so.4.5.0” to “/code/SuperBuild/install/lib”
– Installing: /code/SuperBuild/install/lib/libopencv_core.so
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/core/opencl/ocl_defs.hpp
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/core/opencl/opencl_info.hpp
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/core/opencl/opencl_svm.hpp
– Installing: /code/SuperBuild/install/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clamdblas.hpp
– Set runtime path of “/code/SuperBuild/install/lib/python3.9/dist-packages/cv2/python-3.9/cv2.cpython-39-x86_64-linux-gnu.so” to “/code/SuperBuild/install/lib”
– Installing: /code/SuperBuild/install/lib/python3.9/dist-packages/cv2/config-3.9.py
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_eye.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_eye_tree_eyeglasses.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalcatface.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalcatface_extended.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalface_alt.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalface_alt2.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalface_alt_tree.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_frontalface_default.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_fullbody.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_lefteye_2splits.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_licence_plate_rus_16stages.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_lowerbody.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_profileface.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_righteye_2splits.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_smile.xml
– Installing: /code/SuperBuild/install/share/opencv4/haarcascades/haarcascade_upperbody.xml
– Installing: /code/SuperBuild/install/share/opencv4/lbpcascades/lbpcascade_frontalcatface.xml
– Installing: /code/SuperBuild/install/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
– Installing: /code/SuperBuild/install/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
– Installing: /code/SuperBuild/install/share/opencv4/lbpcascades/lbpcascade_profileface.xml
– Installing: /code/SuperBuild/install/share/opencv4/lbpcascades/lbpcascade_silverware.xml
[ 76%] Completed ‘opencv’
[ 76%] Built target opencv
make: *** [Makefile:103: all] Error 2

I downgrade modifying the files docker-compose.yml and docker-compose.nodeodm.yml putting the version i wanted:

image: opendronemap/webodm_webapp:1.9.2
image: opendronemap/nodeodm:2.4.10

And got the exact same error

1 Like

Can you use more recent tags than that? That’s quite old.

I’m trying to make the same process using newer versions.

-update-

Same error in all versions:

[ 73%] Completed ‘opencv’
/usr/bin/cmake -E make_directory /code/SuperBuild/build/CMakeFiles
/usr/bin/cmake -E touch /code/SuperBuild/build/CMakeFiles/opencv-complete
/usr/bin/cmake -E touch /code/SuperBuild/build/opencv/stamp/opencv-done
make[2]: Leaving directory ‘/code/SuperBuild/build’
[ 73%] Built target opencv
make[1]: Leaving directory ‘/code/SuperBuild/build’
make: *** [Makefile:103: all] Error 2

1 Like

Apparently Error 2 just means a sub-process failed for some reason… Not terribly helpful for us, unfortunately.

Any idea how to debug this?

I manage to rebuild opencv and got this error on webodm when trying to process my dataset:

ModuleNotFoundError: No module named ‘opensfm’

1 Like

It looks like OpenSFM must be the module that failed building with the above Error 2. I think?

Since i got the same error above i manually rebuilt all packages and got stuck on this error inside WebODM:

Traceback (most recent call last):
File “/code/run.py”, line 15, in
from opendm.utils import get_processing_results_paths, rm_r
File “/code/opendm/utils.py”, line 3, in
from opendm.photo import find_largest_photo_dim
File “/code/opendm/photo.py”, line 18, in
from opensfm.sensors import sensor_data
File “/code/SuperBuild/install/bin/opensfm/opensfm/sensors.py”, line 3, in
from opensfm import context
File “/code/SuperBuild/install/bin/opensfm/opensfm/context.py”, line 8, in
from loky import get_reusable_executor
File “/usr/local/lib/python3.9/dist-packages/loky/init.py”, line 19, in
from .backend.reduction import set_loky_pickler
File “/usr/local/lib/python3.9/dist-packages/loky/backend/reduction.py”, line 82, in
import cloudpickle # noqa: F401
File “/usr/local/lib/python3.9/dist-packages/cloudpickle/init.py”, line 3, in
from cloudpickle.cloudpickle import *
File “/usr/local/lib/python3.9/dist-packages/cloudpickle/cloudpickle.py”, line 145, in
_cell_set_template_code = _make_cell_set_template_code()
File “/usr/local/lib/python3.9/dist-packages/cloudpickle/cloudpickle.py”, line 126, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.