I took a backup of the database and imported it to the MariaDB instance, changed the settings for Unimus so it points to the new MariaDB and started it up. I get this error message:
Code: Select all
unimus | 18:40:47.309 [main] DEBUG software.netcore.starter.AvailableEntropyCheck - Adding application entropy check listener into context.
unimus | ___ ___ _
unimus | / / / / ____ (_) ____ ___ __ __ _____
unimus | / / / / / __ \ / / / __ `__ \ / / / / / ___/
unimus | / /__/ / / / / / / / / / / / / / / /_/ / (__ )
unimus | \___,___/ /_/ /_/ /_/ /_/ /_/ /_/ \__,_/ /____/
unimus |
unimus | :: ? 2016-2025 NetCore j.s.a. :: version 2.6.2 ::
unimus |
unimus | 2025-05-08 18:40:49.294 INFO 11 --- [ main] software.netcore.bootstrap.UnimusServer : Starting UnimusServer v2.6.2 using Java 17.0.15 on 284aa08cb053 with PID 11 (/opt/unimus.jar started by root in /)
unimus | 2025-05-08 18:40:49.296 INFO 11 --- [ main] software.netcore.bootstrap.UnimusServer : The following 7 profiles are active: "unix", "unimus-unix", "jar", "unimus", "core", "LOCAL", "PUBLIC"
unimus | 2025-05-08 18:41:16.538 INFO 11 --- [ main] n.u._.infrastructure.fqdn.FqdnResolver : FQDN successfully resolved to '284aa08cb053'
unimus | 2025-05-08 18:41:27.702 INFO 11 --- [ main] software.netcore.bootstrap.UnimusServer : Started UnimusServer in 40.297 seconds (JVM running for 41.96)
unimus | 2025-05-08 18:41:27.719 INFO 11 --- [ multicaster-3] s.netcore.starter.AppStartTimeMonitor : Application started in: 30.717 seconds
unimus | 2025-05-08 18:41:28.642 INFO 11 --- [cTaskExecutor-1] s.b.b.s.LoggingPathAccessibilityBootStep : Checking logging subsystem
unimus | 2025-05-08 18:41:28.656 INFO 11 --- [cTaskExecutor-1] .s.b.b.s.DatabaseConnectionCheckBootStep : Testing database connection
unimus | 2025-05-08 18:41:28.924 INFO 11 --- [cTaskExecutor-1] .s.b.b.s.DatabaseConnectionCheckBootStep : Database connection test passed
unimus | 2025-05-08 18:41:28.924 INFO 11 --- [cTaskExecutor-1] n.u.s.b.b.step.DatabaseUpdateBootStep : Connecting to database (MARIADB, jdbc:mariadb://10.100.1.38:3306/unimus?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC)
unimus | 2025-05-08 18:41:28.925 INFO 11 --- [cTaskExecutor-1] n.u.s.b.b.step.DatabaseUpdateBootStep : Updating database schema, please see web UI for progress
unimus | 2025-05-08 18:41:43.496 WARN 11 --- [cTaskExecutor-1] n.u.d.d.LiquibaseChangeExecListenerImpl : [runFailed] Changelog = 'db/changelog/mariadb/db.changelog-master-mariadb.xml'. ChangeSet = '2.6.0-0'. Reason = 'liquibase.exception.MigrationFailedException: Migration failed for change set db/changelog/mariadb/db.changelog-2.6.0-stable-mariadb.xml::2.6.0-0::DominikNagy:
unimus | Reason: liquibase.exception.DatabaseException: (conn=131069155) Duplicate column name 'dual_factor_enabled' [Failed SQL: (1060) ALTER TABLE unimus.system_account ADD dual_factor_enabled BIT(1) DEFAULT 0 NOT NULL, ADD dual_factor_secret VARCHAR(255) NULL, ADD dual_factor_scratch_notes VARCHAR(255) NULL, ADD dual_factor_remember_me_secret VARCHAR(64) NULL]'
unimus | 2025-05-08 18:41:43.515 ERROR 11 --- [cTaskExecutor-1] n.u.s.b.b.step.DatabaseUpdateBootStep : Failed to update database schema. Reason = 'liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for change set db/changelog/mariadb/db.changelog-2.6.0-stable-mariadb.xml::2.6.0-0::DominikNagy:
unimus | Reason: liquibase.exception.DatabaseException: (conn=131069155) Duplicate column name 'dual_factor_enabled' [Failed SQL: (1060) ALTER TABLE unimus.system_account ADD dual_factor_enabled BIT(1) DEFAULT 0 NOT NULL, ADD dual_factor_secret VARCHAR(255) NULL, ADD dual_factor_scratch_notes VARCHAR(255) NULL, ADD dual_factor_remember_me_secret VARCHAR(64) NULL]'.
Can anyone explain to me what's wrong here?