nextcloud / circles

👪 Create groups with other users on a Nextcloud instance and share with them
GNU Affero General Public License v3.0
146 stars 48 forks source link

[Bug]: InvalidArgumentException: Migration step 'OCA\Circles.backup\Migration\Version0022Date20220526111723' is unknown #1097

Closed Wolfgang-03 closed 4 months ago

Wolfgang-03 commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

While upgrading to 22.2.9 I got this error-message and can't complete the upgrade.

InvalidArgumentException: Migration step 'OCA\Circles.backup\Migration\Version0022Date20220526111723' is unknown

Debian GNU/Linux 10 (buster), Release: 10 PHP-Version 8.0

Steps to reproduce

  1. nextcloud - settings
  2. overview
  3. open updater
  4. start update

Expected behavior

Auto upgrade

Installation method

Web installer on a VPS or web space

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

No response

List of activated Apps

accessibility
activity
admin_audit
bruteforcesettings
circles
circles.backup
cloud_federation_api
comments
contactsinteraction
dashboard
dav
encryption
federatedfilesharing
federation
files
files_external
files_pdfviewer
files_rightclick
files_sharing
files_trashbin
files_versions
files_videoplayer
firstrunwizard
logreader
lookup_server_connector
nextcloud_announcements
notifications
oauth2
password_policy
photos
privacy
provisioning_api
recommendations
serverinfo
settings
sharebymail
support
survey_client
systemtags
text
theming
twofactor_backupcodes
updatenotification
user_ldap
user_status
viewer
weather_status
workflowengine

Nextcloud Signing status

No response

Nextcloud Logs

app:"updater"   message:"\\OC\\Updater::maintenanceEnabled: Turned on maintenance mode"
app:"core"  message:"starting upgrade from 22.2.2.0 to 22.2.9.1"
app:"no app in context" message:"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used"
app:"updater"   message:"\\OC\\Repair::step: Repair step: Repair MySQL collation"
app:"no app in context" message:"Deprecated event type for \\OC\\Repair::info: Symfony\\Component\\EventDispatcher\\GenericEvent is used"
app:"updater"   message:"\\OC\\Repair::info: Repair info: All tables already have the correct collation -> nothing to do"
app:"no app in context" message:"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used"
app:"updater"   message:"\\OC\\Repair::step: Repair step: Repair SQLite autoincrement"
app:"no app in context" message:"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used"
app:"updater"   message:"\\OC\\Repair::step: Repair step: Copy data from accounts table when migrating from ownCloud"
app:"no app in context" message:"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used"
app:"updater"   message:"\\OC\\Repair::step: Repair step: Drop account terms table when migrating from ownCloud"
app:"updater"   message:"\\OC\\Updater::dbUpgradeBefore: Updating database schema"
app:"updater"   message:"\\OC\\Updater::dbUpgrade: Updated database"
app:"files_sharing" message:"/appinfo/app.php is deprecated
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"accessibility\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"accessibility\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"activity\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"activity\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"circles\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"circles\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"cloud_federation_api\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"cloud_federation_api\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"comments\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"comments\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"contactsinteraction\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"contactsinteraction\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"dav\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"dav\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"federatedfilesharing\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"federatedfilesharing\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"federation\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"federation\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_pdfviewer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_pdfviewer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_rightclick\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_rightclick\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_sharing\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_sharing\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_trashbin\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_trashbin\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_versions\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_versions\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"files_videoplayer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"files_videoplayer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"firstrunwizard\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"firstrunwizard\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"logreader\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"logreader\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"lookup_server_connector\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"lookup_server_connector\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"nextcloud_announcements\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"nextcloud_announcements\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"notifications\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"notifications\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"oauth2\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"oauth2\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"password_policy\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"password_policy\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"photos\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"photos\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"privacy\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"privacy\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"provisioning_api\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"provisioning_api\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"recommendations\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"recommendations\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"serverinfo\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"serverinfo\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"settings\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"settings\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"sharebymail\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"sharebymail\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"support\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"support\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"survey_client\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"survey_client\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"systemtags\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"systemtags\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"text\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"text\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"theming\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"theming\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"twofactor_backupcodes\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"twofactor_backupcodes\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"updatenotification\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"updatenotification\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"user_status\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"user_status\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"viewer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"viewer\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"weather_status\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"weather_status\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreAppBefore: Checking for update of app \"workflowengine\" in appstore"
app:"updater"   message:"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"workflowengine\" in appstore"
app:"no app in context" message:"Migration step 'OCA\\Circles.backup\\Migration\\Version0022Date20220526111723' is unknown"

    exception:{"Exception":"InvalidArgumentException"
    Message:"Migration step 'OCA\\Circles.backup\\Migration\\Version0022Date20220526111723' is unknown"
    Code:0
    Trace:[{"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/DB/MigrationService.php"
    line:450
    function:"createInstance"
    class:"OC\\DB\\MigrationService"
    type:"->"
    args:["0022Date20220526111723"]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/DB/MigrationService.php"
    line:417
    function:"migrateSchemaOnly"
    class:"OC\\DB\\MigrationService"
    type:"->"
    args:["latest"]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/Installer.php"
    line:603
    function:"migrate"
    class:"OC\\DB\\MigrationService"
    type:"->"
    args:["latest"
    true]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/Installer.php"
    line:565
    function:"installShippedApp"
    class:"OC\\Installer"
    type:"::"
    args:["circles.backup"]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/Updater.php"
    line:280
    function:"installShippedApps"
    class:"OC\\Installer"
    type:"::"
    args:[true]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/lib/private/Updater.php"
    line:132
    function:"doUpgrade"
    class:"OC\\Updater"
    type:"->"
    args:["22.2.9.1"
    22.2.2.0]}
    {"file":"/homepages/16/d100608498/htdocs/company/cloud/core/ajax/update.php"
    line:194
    function:"upgrade"
    class:"OC\\Updater"
    type:"->"
    args:[]}]
    File:"/homepages/16/d100608498/htdocs/company/cloud/lib/private/DB/MigrationService.php"
    Line:507
    CustomMessage:"Migration step 'OCA\\Circles.backup\\Migration\\Version0022Date20220526111723' is unknown"}}

app:"updater"   message:"\\OC\\Updater::failure: InvalidArgumentException: Migration step 'OCA\\Circles.backup\\Migration\\Version0022Date20220526111723' is unknown"
app:"updater"   message:"\\OC\\Updater::updateEnd: Update failed"
app:"updater"   message:"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active"
app:"updater"   message:"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)"

Additional info

No response

joshtrichards commented 4 months ago

It looks like you have two copies of the app installed:

OCA\Circles.backup\Migration\Version0022Date20220526111723
circles
circles.backup

That's not supported (nor possible, unless you do something manually...)

If you need help resolving that, I suggest posting on the community help forum: https://help.nextcloud.com

Closing since this isn't a bug.