Invalid channelID after initializing channels

Teamspeak server doesn’t start after restart.

Any help apreciated.

Server runs in docker with mariaDB
Server version: 3.13.7

Thats the log I got.

Possibly a channel in your database is sorted behind a channel ID, but that Channel with that ID no longer exists.
Or a channel that was created and has no ID assigned.

This can happen when writing in the database was was interrupted. When server crashed or wasn’t shutdown properly and a channel just was created or deleted from someone.

The only way to fix this is to restore the database with a backup.

(the unsupported and hard way)
Go into the database and give all channels a order that matches channel above and below in server tree / give the broken channel a valid Channel ID.