Upgrade error form 21.02 to 21.05, database upgrade

You database is not up-to-date.
Can you send us the complete upgrade log? We should see something around Setting up xivo-manage-db...

Also, can you give us the output of:

debconf-show wazo-auth xivo-manage-db | grep db-skip

And if db-skip is false, can you give us the output of:

su postgres -c "psql asterisk"
# select * from alembic_version;
# select * from alembic_version_auth;