This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Migration Error bei Update auf Version 7.1.4

Hallo zusammen,

 

ich habe eine Problem beim Update der Mobile Control von Version 7.0.10 auf Version 7.1.4. Die Installation läuft bis zur Migration der Datenbank problemlos durch und schlägt dann fehl. Vorherige Updates konnten alle Problemlos abgeschlossen werden und gaben nie einen Fehler. Folgenden Thread habe ich mir schon durchgelesen, nur kann ich mir damit auch nicht helfen, da ich auch nicht weiß, was ich wo ändern sollte. Vielleicht trifft das bei mir auch gar nicht zu?

https://community.sophos.com/products/mobile/f/sophos-mobile-control/86342/smc-6-1-4-auf-7-0-8-upgrade-migration---fehler-im-setup

Vielleicht kann mir jemand von euch helfen...


 migratedatabase_7.1.4.log

Flyway 4.2.0 by Boxfuse

Database: jdbc:mysql://localhost/smcdbv2?autoReconnect=true&sessionVariables=character_set_client=utf8mb4,character_set_connection=utf8mb4,character_set_results=utf8mb4,collation_connection=utf8mb4_general_ci (MySQL 5.7)
Successfully validated 54 migrations (execution time 00:00.117s)
Current version of schema `smcdbv2`: 00011.7.0.10.4
Migrating schema `smcdbv2` to version 00012.7.1.0 - PrepareTheDropOfRevisionAction
Migrating schema `smcdbv2` to version 00013.7.1.0 - PrepareAddUkToTaskbundletaskrevision
Migrating schema `smcdbv2` to version 00014.7.1.0 - AddUkToTaskbundletaskrevision
Migrating schema `smcdbv2` to version 00015.7.1.0 - AlterDevicePropertyValueToBlob
Migrating schema `smcdbv2` to version 00016.7.1.0 - ModifyAppinfojsonToLongtext
Migrating schema `smcdbv2` to version 00017.7.1.0 - AddNotNullConstraintForMdmUser
Migrating schema `smcdbv2` to version 00018.7.1.0 - IoT MdmRoleRightRelUnique
Migrating schema `smcdbv2` to version 00019.7.1.0 - IoT AddRightsAndPlatforms
Migrating schema `smcdbv2` to version 00020.7.1.0 - IoT AddPolicyTables
WARNING: DB: Table 'androidiotpolicy' already exists (SQL State: 42S01 - Error Code: 1050)
WARNING: DB: Table 'androidiotpolicyrevision' already exists (SQL State: 42S01 - Error Code: 1050)
WARNING: DB: Table 'windowsiotpolicy' already exists (SQL State: 42S01 - Error Code: 1050)
WARNING: DB: Table 'windowsiotpolicyrevision' already exists (SQL State: 42S01 - Error Code: 1050)
Migrating schema `smcdbv2` to version 00021.7.1.0 - IoT ComplianceCriteriaSet
Migrating schema `smcdbv2` to version 00022.7.1.0 - InsertCustomerPropertyWipeAfwDevice
Migrating schema `smcdbv2` to version 00023.7.1.0 - AddDeviceContainerActiveFieldAndMigrate
Migrating schema `smcdbv2` to version 00023.7.1.0.1 - ConvertFirstTablesToUtf8mb4
Migrating schema `smcdbv2` to version 00023.7.1.0.2 - ConvertLastTablesToUtf8mb4
Migrating schema `smcdbv2` to version 00024.7.1.0 - RenameContainerRequiredComplianceType
Migrating schema `smcdbv2` to version 00024.7.1.0.1 - RepairTransitionStatus
ERROR: Migration of schema `smcdbv2` to version 00024.7.1.0.1 - RepairTransitionStatus failed! Please restore backups and roll back database and code!
ERROR:
Migration V00024_7_1_0_1__RepairTransitionStatus.sql failed
-----------------------------------------------------------
SQL State  : HY000
Error Code : 1093
Message    : (conn:18) You can't specify target table 't' for update in FROM clause
Location   : ./sql/mysql/onprem/V00024_7_1_0_1__RepairTransitionStatus.sql (C:\Program Files (x86)\Sophos\Sophos Mobile Control\tools\Wizard\.\sql\mysql\onprem\V00024_7_1_0_1__RepairTransitionStatus.sql)
Line       : 1
Statement  : UPDATE transition t SET status=-3
WHERE t.status <> -3 AND t.transitionid IN(
    SELECT * FROM (
        SELECT tbtr.transitionid FROM taskbundletransition tbtr, taskbundletransitiontask tbt, transition associated_t
        WHERE tbtr.transitionid = tbt.taskbundletransitionid AND tbt.associatedtransitionid = associated_t.transitionid
        AND associated_t.status=-3)
    AS associated)


 mdm.properties

driver=org.mariadb.jdbc.Driver
url=jdbc:mysql://localhost/smcdbv2?autoReconnect=true&sessionVariables=character_set_client=utf8mb4,character_set_connection=utf8mb4,character_set_results=utf8mb4,collation_connection=utf8mb4_general_ci
SMTPSrv=
SMTPTo=
SMTPFrom=
MDMCustomer=***zensiert***
MDMAdminLogin=***zensiert***
SMTPUser=
MDM_TIMEZONE=Europe/Berlin
MDM_URL=***zensiert***
MDM_INSTDIR=C:/Program Files (x86)/Sophos/Sophos Mobile Control
MDM_DB_USER=SMC_psjqlbb2zw
EAP_DB_USER=easproxy
EasDefaultPolicyAccept=0
EASAUTOMODE=1
dbserver=localhost
classpath=lib/sqljdbc4.jar;lib/mysql-connector-java-bin.jar;lib/mariadb-java-client.jar
ServerVersion=7.1.4
BrandName=SMC
DeviceSyncInterval=1440
ComplianceCheckInterval=240
masterurl=jdbc:mysql://localhost
CURRENTDBUSER=SMC_m1jrao8djv@localhost
CertCountry=***zensiert***
CertState=***zensiert***
CertCity=***zensiert***
CertCompany=***zensiert***
CertServer=***zensiert***
ServerSSLCertificateSubject=CN=***zensiert***,O=***zensiert***,ST=***zensiert***,C=***zensiert***
ServerSSLCertificateIssuer=C=***zensiert***,ST=***zensiert***,L=***zensiert***,O=***zensiert***,CN=***zensiert***
ServerSSLCertificateStartDate=Jan 26 10:49:06 2016 GMT
ServerSSLCertificateEndDate=Jan 23 10:49:06 2026 GMT
user=root
database=smcdbv2
MDM_MAINTENANCEHOURS=0
MDM_MAINTENANCEMINUTES=3



This thread was automatically locked due to age.