Application server does not exist after upgrade

After upgrading using ‘software-update’ from 4.0 to 4.01 on rpi3/RAK2245, I can’t reach the web interface (and ‘sudo monit summary’ indicates ‘chirpstack application server does not exist’.

Running the full ChirpstackOS.

Looking at the logs, I’m also seeing these messages repeating:

Dec 8 02:00:55 raspberrypi3 user.warn chirpstack-network-server[388]: time=“2022-12-08T02:00:55.01169036Z” level=warning msg=“storage: ping PostgreSQL database error, will retry in 2s” error=“dial tcp [::1]:5432: connect: connection refused”

Dec 8 02:06:53 raspberrypi3 user.err monit[472]: ‘chirpstack-application-server’ process is not running
Dec 8 02:06:53 raspberrypi3 monit[472]: ‘chirpstack-application-server’ trying to restart
Dec 8 02:06:53 raspberrypi3 monit[472]: ‘chirpstack-application-server’ start: ‘/etc/init.d/chirpstack-application-server start’

not sure where to start?

It seems you upgraded from v3 to v4? In ChirpStack v4 there is no process called chirpstack-application-server. To migrate your Raspberry Pi from v3 to v4, you need to re-flash the sdcard.

No, I was attempting to upgrade from the original v4.

But this was enough of a clue…I’ve used the most recent .swu file from “Raspberry Pi - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server” without realising this section is providing actually the latest V3, not V4.