GOOD evening, and thanks for your time!
Summary:
I’ve run into this issue after trying to resolve a ModuleNotFoundError: No module named ‘cv2’ issue while trying to get Elevation Maps on DEM tasks. After trying one specific remedy (linked below) I found that none of my webodm dockers can reach the internet outside of the network.
Details:
How did you install WebODM (docker, installer, etc.)?
Docker hosted on Ubuntu 22.04. Just did a fresh install of WebODM 2.0.1 this afternoon (23.5.3)
What’s your browser and operating system?
Firefox and Chrome on Windows
What is the problem?
When trying to install cv2 module via apt install or pip from worker or webapp dockers, the docker cannot reach the internet in order to install the module. Also, the module was not installed during initial setup, which I gathered from other issues on git was thought to have been fixed.
How can we reproduce this?
Initially the issue was that the cv2 module is not present when trying to preview or generate elevation lines on a task
The plugins are installed and enabled.
I updated from 1.9 to 2.0.1 and did a completely fresh install and still was not able to get this working. When researching the issue, I found a similar issue which discussed manually installing the cv2 modules in the worker docker.
https://github.com/OpenDroneMap/WebODM/issues/1059
Some mentioned that it needed to be installed in the webapp docker. Neither docker is able to run apt or pip due to not being able to reach the internet.
I force quit the pip command because it had been trying to reach the connection for about 3 minutes at this point.
To clarify, I can reach the WebODM service both locally (https://computername:port) and from outside the network with no issues at all. The service works fine and I’ve used it to process several tasks. I just can’t seem to reach the internet from inside the dockers.
Any help or thoughts would be greatly appreciated!
.Carl