So the wiki does exist, right ? Does not seem to have much to do with this issue.
In your case the problem seems to be the opposite actually: XWiki completely skip the migration handling and not does set the version (most probably because it still have that wiki in some list of "already handled wikis"), which cause this failure (it refuses to use the database because the version is 0).
Thomas Mortagne on 26/May/26 17:42
bq. create new foo wiki, again
So the wiki does exist, right ? Does not seem to have much to do with this issue.
In your case the problem seems to be the opposite actually: XWiki completely skip the migration handling and not does set the version in the database (most probably because it still have has that wiki in some list of "already handled wikis"), which cause this failure (it refuses to use the database because the version is 0).
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.