I have now tried to move the folder /webodm/app and /var/lib/postgresql/9.6/ to the new install and restarted the machine but I get a error from the localhost webpage.
OperationalError at /
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Request Method: GET
Request URL: http://10.132.28.246/
Django Version: 2.1.11
Exception Type: OperationalError
Exception Value:
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Exception Location: /webodm/python3-venv/lib/python3.5/site-packages/psycopg2/__init__.py in connect, line 130
Python Executable: /webodm/python3-venv/bin/python3
Python Version: 3.5.2
Python Path:
['/webodm',
'/webodm/python3-venv/bin',
'/webodm/python3-venv/lib/python35.zip',
'/webodm/python3-venv/lib/python3.5',
'/webodm/python3-venv/lib/python3.5/plat-x86_64-linux-gnu',
'/webodm/python3-venv/lib/python3.5/lib-dynload',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-x86_64-linux-gnu',
'/webodm/python3-venv/lib/python3.5/site-packages',
'/webodm/python3-venv/src/rio-tiler',
'/webodm']
Server time: Thu, 30 Jan 2020 14:36:56 +0100s
Well, something didn’t work (the postgres service is probably not starting). Check the status via sudo systemctl status postgresql or sudo service status postgresql.
Seems that way… I actually just copied the folder from one machine to the other, without stopping the postgresql. To do that I had to use chown odm /var/lib/postgresql -R so that I was able to copy it, then I changed the owner back to posgres as before.
I did a full reinstall of LiveODM and followed the guide from DigitalOcean but I still get the exact same output of sudo systemctl status postgresql or sudo service status postgresql