Webodm: WebOdm hangs on compressing all.zip for some datasets/runs.

Created on 5 Apr 2021  路  3Comments  路  Source: OpenDroneMap/WebODM

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

Chrome 89 on Linux

What is the problem?

WebOdm hangs on compressing all.zip for some datasets/runs.
This issue seems very similar to what is reported here: https://community.opendronemap.org/t/processing-hangs-at-compressing-all-zip/2013/28
which should have been fixed by this pull request: https://github.com/OpenDroneMap/WebODM/pull/893
which references that gdal should be updated to 3.1. However on the newest master it seems that GDAL is no longer 3.1 but 3.0.
Running "dpkg -l | grep gdal" in the worker container gives "gdal-bin 3.0.4+dfsg-1~bionic0"
I also see a lot of these warnings:
WARNING Using legacy implementation (GDAL >= 3.1 not found)
when running "docker logs worker"

I am not that familiar with webodm, but as far as i can see this could be caused by this commit https://github.com/OpenDroneMap/WebODM/commit/ff989cc3203a79dfa62146789ed2842715cbd6ed#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557
which changes the base from debian to ubuntu. (In the original issue it was mentioned that gdal 3.1 was depending on debian).

What should be the expected behavior?

WebOdm succesfully completing.

How can we reproduce this? (What steps did you do to trigger the problem? What parameters are you using for processing? Please include multiple screenshots of the problem! If possible please include a copy of your dataset uploaded on Google Drive or Dropbox. Be detailed)

I cannot reproduce this every time, it only happens on some particular runs of the same data set. retrying from scratch a couple of times eventually makes it finish.

help wanted software fault

Most helpful comment

Yes it appears to fix it, at least I did not see any hangs in some brief testing on the same datasets.
It seems that on ubuntu 18.04 the gdal version in the ppa:ubuntugis/ubuntugis-unstable repository is 3.0
However in the ubuntu 20.04 version the gdal version is 3.2.1.

I tried updating the base to ubuntu 20.04 which includes the newer version of gdal and did not result in a hang. (See attached patch here: https://gist.github.com/cwitting/cda92b226f7ccc63ffea9d7c4602d48a), however I also had to update some other packages as they did not exist in 20.04.

Let me know if you think this could be a permanent fix (I did not test if anything else changed) and I can open a PR.

All 3 comments

Does updating GDAL to 3.1 fix the issue?

Yes it appears to fix it, at least I did not see any hangs in some brief testing on the same datasets.
It seems that on ubuntu 18.04 the gdal version in the ppa:ubuntugis/ubuntugis-unstable repository is 3.0
However in the ubuntu 20.04 version the gdal version is 3.2.1.

I tried updating the base to ubuntu 20.04 which includes the newer version of gdal and did not result in a hang. (See attached patch here: https://gist.github.com/cwitting/cda92b226f7ccc63ffea9d7c4602d48a), however I also had to update some other packages as they did not exist in 20.04.

Let me know if you think this could be a permanent fix (I did not test if anything else changed) and I can open a PR.

A pull request would be amazing @cwitting ! Thanks for looking into this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gpsman picture gpsman  路  4Comments

ivanmalo picture ivanmalo  路  4Comments

Saijin-Naib picture Saijin-Naib  路  3Comments

pierotofy picture pierotofy  路  4Comments

keum picture keum  路  3Comments