Hello everyone,
I tried posting my problem on GitHub but was told this is the better forum for finding a solution so here I am! My issue is the following:
I followed this tutorial to access WebODM remotely via Python (upload images, start tasks and download the resulting orthophotos). With a few tweaks I managed to get it running and - for the most part - it works. Occasionally however, Python stops while WebODM is processing a task and returns the following error:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Although Python stops, the task still continues and finishes successfully in WebODM. This seems to happen at random. The exact same code, uploading identical images with unvaried options, ran successfully at one time and failed at another.
Some background info:
-
I am using Firefox 86 on Windows 10
-
As stated above, the error is quite difficult to reproduce because it seems to happen at random. I have noticed though that it always occurs if the Python code is run in the Console and a previous run is not exited it before a new one is started. However, the error does also occur when this is not the case.
-
I started using WebODM and remote accessing it via Python last Thursday. At that time, the error message only occurred in the manner described right above (running in Python Console). Only on Friday (after reopening WebODM via Git Bash for the second time) has this new problem become an issue. However, as already mentioned, WebODM still works perfectly fine on its own.
-
I have run tasks both successfully and unsuccessfully using different options and amounts of images. The latest set of options to promt an error message were the following:
- camera-lens: brown, depthmap-resolution: 800, force-gps: true, gps-accuracy: 1, mesh-octree-depth: 12, orthophoto-compression: NONE, orthophoto-png: true, orthophoto-resolution: 0.05, skip-3dmodel: true, texturing-outlier-removal-type: none, use-3dmesh: true
- amount of images: 200 (this is a comparatively large amount. I usually use 10 images and errors have occurred with so few as well)
-
As a new member of this forum, I’m not allowed to embed more than 1 image in my post, so I opted for a screenshot of the error message returned by Python. The German part simply translates to “An existing connection was forcibly closed by the remote host”. If anyone is interested in my Python code or the other error messages resulting from this one, it can all be viewed in GitHub here.
-
I’ve been using thermal images recorded by a FLIR Duo Pro camera mounted on a UAV. Regretfully I am not allowed to share any of them as they are confidential.
Thanks in advance for any ideas/help on how to resolve this!