Setup storage error: storage: migrate up error: Dirty database version 27. Fix and force version

Hi all,
I am new to the Chirpstack world.

I am following strictly all steps to install the main components on an AWS instance.
Everything looks ok (Gateway connecting with bridge, MQTT, Bridge, Network server…) Except the Application Server installation.

I am getting the following message in the log. Service is not starting
¨setup storage error: storage: migrate up error: Dirty database version 27. Fix and force version."

Username and password are ok.
dsn=“postgres://chirpstack_as:dbpassword@localhost/chirpstack_as?sslmode=disable”

I have already reinstalled the database and removed all files.

Any guidance on what is going on?

Thanks
MJunges

Are you using Chirpstack V3 or V4? If you’re not using V4 you should restart using it, it makes the setup much easier.

I am facing the same mistake. If you found any solution, it would be helpful if you could share it with me.