DB migration in Anvil App Server

Hi team,

I need help on this.
I want to upgrade anvil app server 1.16.0 & above.
1.8.0 :white_check_mark: Works

1.12.3 :x: DB migration failure
1.14.0 :x: Problem in your environment
1.16.0 :x: Java 11 issue
1.17.0 :x: Java 11 issue.

Error:

Java

java.lang.NoClassDefFoundError:

java/util/SequencedCollection

Cause:

Plain Text

SequencedCollection introduced in Java 21

You are running Java 11.

With: anvil-app-server==1.8.0

my runtime DB migration level is:
Database now at “2021-06-19-runtime-sessions”.

When I moved to: anvil-app-server==1.12.3 OR Above then
Anvil tries to run newer DB migrations:2022-01-17-anvil-config
but my database already contains “anvil_config” so migration crashes.

Iam facing this error "Executing “2022-01-17-anvil-config”

ERROR:
relation “anvil_config” already exists

Database migration failed"
Embedded Postgres DB migration conflict.

Problem is Database currently at 2021-06-19-runtime-sessions and when we use anvil app server of 1.12.3 or above version then it gives error 2022-01-17-anvil-config.

Database is not updated and also anvil app server newer image is not compatible with the database.

I am getting stuck in db migration state because it is mismatch when i use latest anvil app server.

Kindly help me and guide me with designed steps to update database and use latest anvil app server with latest python/pip packages. As it is creating issue in running application.

thanks

regards
sanjeev yadav

Hi team,

Kindly review my query and guide me.

thanks