WebODM_db problem stuck on restarting

Hello
Im trying to have a shot with WebODM but having trouble installing.
Using Windows 10, 16GB RAM.
have installed:

python 3.11.3
git 2.40.1.windows.1
Docker Desktop 4.19.0 (engine 23.0.5, compose v2.17.2, kubernetes 1.25.9, credential helper 0.7.0)

I had trouble with GitGUI so cloned by CLI the webODM repository to C:
I am attempting to run WebODM by
open Git BASH (from within the WebODM directory)
issuing ./webodm.sh start
this looks initially promising but then the bash terminal keeps cycling over an error which I think is to do with the db container not running.
webapp reports “psql: error: could not translate host name “db” to address: Temporary failure in name resolution”
worker reports “Postgres is unavailable - sleeping”
db reports various complaints including
“initdb: input file “/usr/local/pgsql/share/postgres.bki” does not belong to PostgreSQL 9.5.25
db | Check your installation or specify the correct path using the option -L.
db | initdb: removing contents of data directory “/var/lib/postgresql/data”
db exited with code 1”
when I look in the docker I see everything (webapp, worker, broker, node-odm-1) running apart from db which keeps restarting.

I wonder if someone could give me some pointers as to what I might try. TBH Im not even sure what is going wrong alkthough I feel that (one of the problems) is a permissions (?) issue with the postgres.bki file
many thanks in advance

I would try ./webodm.sh stop followed by ./webodm.sh upgrade. The stop will halt all running containers and upgrade will pull in the newest code needed. Then try to start again. If that doesn’t work, I’d try ./webodm.sh stop (again, to stop running containers) followed by ./webodm.sh rebuild. Be aware that rebuild will destroy any data/work/processing you’ve done so far, which shouldn’t be an issue if you haven’t done any yet and just trying to get it up and running. It basically completely reinstalls.

1 Like

Cronix, thanks.
did as you suggested. ./webodm.sh update completed but same behaviour.
Then issued rebuild.
I now have a different problem Same container, db is not running. and this is why:


sounds like a file formatting issue but which file(s)?

Which install instructions are you following?

The ones here:

Yes followed these instructions to the letter.

1 Like

Do you have any third-party AV software running on that install?

absolutely no antivirus running
but this problem not related to antivirus is it?

if I could work out which files were causing the trouble in the db container I could try modifying the CRLF’s ?
I have gone through the 3 files I found in c:\webODM\db and changed all CRLF’s to LF’s
do I need to rebuild for this to take effect?
trouble is that I dont really know what Im doing with Docker