I initially thought this to be related to #393, but looks like it's something different.
Nextcloud log
{
"Exception":"Exception",
"Message":"Database error when running migration latest for app passwords",
"Code":0,
"Trace":[
{
"file":"/var/www/html/lib/private/legacy/OC_App.php",
"line":1001,
"function":"migrate",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":340,
"function":"updateApp",
"class":"OC_App",
"type":"::",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":260,
"function":"doAppUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":132,
"function":"doUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
"21.0.3.1",
"21.0.1.1"
]
},
{
"file":"/var/www/html/core/ajax/update.php",
"line":214,
"function":"upgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
}
],
"File":"/var/www/html/lib/private/DB/MigrationService.php",
"Line":430,
"Previous":{
"Exception":"Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException",
"Message":"An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'",
"Code":1062,
"Trace":[
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line":1728,
"function":"convert",
"class":"Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter",
"type":"->",
"args":[
{
"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"
},
{
"__class__":"Doctrine\\DBAL\\Query"
}
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line":1667,
"function":"handleDriverException",
"class":"Doctrine\\DBAL\\Connection",
"type":"->",
"args":[
{
"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"
},
{
"__class__":"Doctrine\\DBAL\\Query"
}
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line":1146,
"function":"convertExceptionDuringQuery",
"class":"Doctrine\\DBAL\\Connection",
"type":"->",
"args":[
{
"__class__":"Doctrine\\DBAL\\Driver\\PDO\\Exception"
},
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(?, ?, ?, ?, ?, ?, ?, ?)",
[
"1",
"r3pek",
"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"19b4018b-ff58-44b7-b0e9-f600924359b3",
"0",
"0",
"1555338433",
"1555338599"
],
[
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
]
]
},
{
"file":"/var/www/html/lib/private/DB/Connection.php",
"line":257,
"function":"executeStatement",
"class":"Doctrine\\DBAL\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(?, ?, ?, ?, ?, ?, ?, ?)",
[
"1",
"r3pek",
"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"19b4018b-ff58-44b7-b0e9-f600924359b3",
"0",
"0",
"1555338433",
"1555338599"
],
[
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
]
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php",
"line":213,
"function":"executeStatement",
"class":"OC\\DB\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8)",
{
"dcValue1":"1",
"dcValue2":"r3pek",
"dcValue3":"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"dcValue4":"19b4018b-ff58-44b7-b0e9-f600924359b3",
"dcValue5":"0",
"dcValue6":"0",
"dcValue7":"1555338433",
"dcValue8":"1555338599"
},
{
"dcValue1":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue2":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue3":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue4":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue5":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue6":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue7":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue8":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
}
]
},
{
"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":287,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/custom_apps/passwords/lib/Migration/Version20210700.php",
"line":1510,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":548,
"function":"postSchemaChange",
"class":"OCA\\Passwords\\Migration\\Version20210700",
"type":"->",
"args":[
{
"__class__":"OC\\Migration\\SimpleOutput"
},
{
"__class__":"Closure"
},
{
"tablePrefix":""
}
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":426,
"function":"executeStep",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
"20210700",
false
]
},
{
"file":"/var/www/html/lib/private/legacy/OC_App.php",
"line":1001,
"function":"migrate",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":340,
"function":"updateApp",
"class":"OC_App",
"type":"::",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":260,
"function":"doAppUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":132,
"function":"doUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
"21.0.3.1",
"21.0.1.1"
]
},
{
"file":"/var/www/html/core/ajax/update.php",
"line":214,
"function":"upgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
}
],
"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php",
"Line":60,
"Previous":{
"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception",
"Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'",
"Code":1062,
"Trace":[
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php",
"line":84,
"function":"new",
"class":"Doctrine\\DBAL\\Driver\\PDO\\Exception",
"type":"::",
"args":[
{
"errorInfo":[
"23000",
1062,
"Duplicate entry '1' for key 'PRIMARY'"
],
"__class__":"PDOException"
}
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line":1136,
"function":"execute",
"class":"Doctrine\\DBAL\\Driver\\PDO\\Statement",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/DB/Connection.php",
"line":257,
"function":"executeStatement",
"class":"Doctrine\\DBAL\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(?, ?, ?, ?, ?, ?, ?, ?)",
[
"1",
"r3pek",
"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"19b4018b-ff58-44b7-b0e9-f600924359b3",
"0",
"0",
"1555338433",
"1555338599"
],
[
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
]
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php",
"line":213,
"function":"executeStatement",
"class":"OC\\DB\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8)",
{
"dcValue1":"1",
"dcValue2":"r3pek",
"dcValue3":"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"dcValue4":"19b4018b-ff58-44b7-b0e9-f600924359b3",
"dcValue5":"0",
"dcValue6":"0",
"dcValue7":"1555338433",
"dcValue8":"1555338599"
},
{
"dcValue1":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue2":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue3":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue4":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue5":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue6":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue7":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue8":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
}
]
},
{
"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":287,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/custom_apps/passwords/lib/Migration/Version20210700.php",
"line":1510,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":548,
"function":"postSchemaChange",
"class":"OCA\\Passwords\\Migration\\Version20210700",
"type":"->",
"args":[
{
"__class__":"OC\\Migration\\SimpleOutput"
},
{
"__class__":"Closure"
},
{
"tablePrefix":""
}
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":426,
"function":"executeStep",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
"20210700",
false
]
},
{
"file":"/var/www/html/lib/private/legacy/OC_App.php",
"line":1001,
"function":"migrate",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":340,
"function":"updateApp",
"class":"OC_App",
"type":"::",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":260,
"function":"doAppUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":132,
"function":"doUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
"21.0.3.1",
"21.0.1.1"
]
},
{
"file":"/var/www/html/core/ajax/update.php",
"line":214,
"function":"upgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
}
],
"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php",
"Line":26,
"Previous":{
"Exception":"PDOException",
"Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'",
"Code":"23000",
"Trace":[
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php",
"line":82,
"function":"execute",
"class":"PDOStatement",
"type":"->",
"args":[
null
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line":1136,
"function":"execute",
"class":"Doctrine\\DBAL\\Driver\\PDO\\Statement",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/DB/Connection.php",
"line":257,
"function":"executeStatement",
"class":"Doctrine\\DBAL\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(?, ?, ?, ?, ?, ?, ?, ?)",
[
"1",
"r3pek",
"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"19b4018b-ff58-44b7-b0e9-f600924359b3",
"0",
"0",
"1555338433",
"1555338599"
],
[
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
]
]
},
{
"file":"/var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php",
"line":213,
"function":"executeStatement",
"class":"OC\\DB\\Connection",
"type":"->",
"args":[
"INSERT INTO `passwords_folder` (`id`, `user_id`, `uuid`, `revision`, `suspended`, `deleted`, `created`, `updated`) VALUES(:dcValue1, :dcValue2, :dcValue3, :dcValue4, :dcValue5, :dcValue6, :dcValue7, :dcValue8)",
{
"dcValue1":"1",
"dcValue2":"r3pek",
"dcValue3":"282374c7-05cd-4232-915e-f9aa2b1be7e9",
"dcValue4":"19b4018b-ff58-44b7-b0e9-f600924359b3",
"dcValue5":"0",
"dcValue6":"0",
"dcValue7":"1555338433",
"dcValue8":"1555338599"
},
{
"dcValue1":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue2":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue3":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue4":{
"__class__":"Doctrine\\DBAL\\Types\\StringType"
},
"dcValue5":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue6":{
"__class__":"Doctrine\\DBAL\\Types\\BooleanType"
},
"dcValue7":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
},
"dcValue8":{
"__class__":"Doctrine\\DBAL\\Types\\BigIntType"
}
}
]
},
{
"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line":287,
"function":"execute",
"class":"Doctrine\\DBAL\\Query\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/custom_apps/passwords/lib/Migration/Version20210700.php",
"line":1510,
"function":"execute",
"class":"OC\\DB\\QueryBuilder\\QueryBuilder",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":548,
"function":"postSchemaChange",
"class":"OCA\\Passwords\\Migration\\Version20210700",
"type":"->",
"args":[
{
"__class__":"OC\\Migration\\SimpleOutput"
},
{
"__class__":"Closure"
},
{
"tablePrefix":""
}
]
},
{
"file":"/var/www/html/lib/private/DB/MigrationService.php",
"line":426,
"function":"executeStep",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
"20210700",
false
]
},
{
"file":"/var/www/html/lib/private/legacy/OC_App.php",
"line":1001,
"function":"migrate",
"class":"OC\\DB\\MigrationService",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":340,
"function":"updateApp",
"class":"OC_App",
"type":"::",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":260,
"function":"doAppUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
},
{
"file":"/var/www/html/lib/private/Updater.php",
"line":132,
"function":"doUpgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
"21.0.3.1",
"21.0.1.1"
]
},
{
"file":"/var/www/html/core/ajax/update.php",
"line":214,
"function":"upgrade",
"class":"OC\\Updater",
"type":"->",
"args":[
]
}
],
"File":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php",
"Line":82
}
}
},
"CustomMessage":"--"
}