Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown #8146

Closed
nickvergessen opened this issue Feb 24, 2023 · 2 comments · Fixed by #8533
Assignees
Labels
3. to review bug nextcloud-gmbh Tickets with importance for Nextcloud Gmbh regression skill:backend Issues and PRs that require backend development skills

Comments

@nickvergessen
Copy link
Member

nickvergessen commented Feb 24, 2023

{
  "reqId": "ofXsubqR3lvQRbkFf21W",
  "level": 3,
  "time": "2023-02-24T22:11:39+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "no app in context",
  "method": "",
  "url": "--",
  "message": "Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown",
  "userAgent": "--",
  "version": "25.0.4.0",
  "exception": {
    "Exception": "Exception",
    "Message": "Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/legacy/OC_App.php",
        "line": 1017,
        "function": "migrate",
        "class": "OC\\DB\\MigrationService",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Installer.php",
        "line": 200,
        "function": "updateApp",
        "class": "OC_App",
        "type": "::",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
        "line": 422,
        "function": "updateAppstoreApp",
        "class": "OC\\Installer",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
        "line": 281,
        "function": "upgradeAppStoreApps",
        "class": "OC\\Updater",
        "type": "->",
        "args": [
          [
            "",
            "logreader",
            "lookup_server_connector",
            "*** sensitive parameters replaced ***",
            "nextcloud_announcements",
            "notes",
            "notifications",
            ""
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
        "line": 140,
        "function": "doUpgrade",
        "class": "OC\\Updater",
        "type": "->",
        "args": [
          "26.0.0.7",
          "25.0.4.0"
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/core/Command/Upgrade.php",
        "line": 225,
        "function": "upgrade",
        "class": "OC\\Updater",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Command/Command.php",
        "line": 255,
        "function": "execute",
        "class": "OC\\Core\\Command\\Upgrade",
        "type": "->",
        "args": [
          [
            "Symfony\\Component\\Console\\Input\\ArgvInput"
          ],
          [
            "Symfony\\Component\\Console\\Output\\ConsoleOutput"
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 1009,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Command\\Command",
        "type": "->",
        "args": [
          [
            "Symfony\\Component\\Console\\Input\\ArgvInput"
          ],
          [
            "Symfony\\Component\\Console\\Output\\ConsoleOutput"
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 273,
        "function": "doRunCommand",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->",
        "args": [
          [
            "OC\\Core\\Command\\Upgrade"
          ],
          [
            "Symfony\\Component\\Console\\Input\\ArgvInput"
          ],
          [
            "Symfony\\Component\\Console\\Output\\ConsoleOutput"
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 149,
        "function": "doRun",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->",
        "args": [
          [
            "Symfony\\Component\\Console\\Input\\ArgvInput"
          ],
          [
            "Symfony\\Component\\Console\\Output\\ConsoleOutput"
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Console/Application.php",
        "line": 215,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->",
        "args": [
          [
            "Symfony\\Component\\Console\\Input\\ArgvInput"
          ],
          [
            "Symfony\\Component\\Console\\Output\\ConsoleOutput"
          ]
        ]
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/console.php",
        "line": 100,
        "function": "run",
        "class": "OC\\Console\\Application",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/cloud.nextcloud.com/nextcloud/occ",
        "line": 11,
        "args": [
          "/var/www/cloud.nextcloud.com/nextcloud/console.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/DB/MigrationService.php",
    "Line": 421,
    "Previous": {
      "Exception": "InvalidArgumentException",
      "Message": "Migration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/DB/MigrationService.php",
          "line": 514,
          "function": "createInstance",
          "class": "OC\\DB\\MigrationService",
          "type": "->",
          "args": [
            "2300Date20230214104736"
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/DB/MigrationService.php",
          "line": 417,
          "function": "executeStep",
          "class": "OC\\DB\\MigrationService",
          "type": "->",
          "args": [
            "2300Date20230214104736",
            false
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/legacy/OC_App.php",
          "line": 1017,
          "function": "migrate",
          "class": "OC\\DB\\MigrationService",
          "type": "->",
          "args": []
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Installer.php",
          "line": 200,
          "function": "updateApp",
          "class": "OC_App",
          "type": "::",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
          "line": 422,
          "function": "updateAppstoreApp",
          "class": "OC\\Installer",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
          "line": 281,
          "function": "upgradeAppStoreApps",
          "class": "OC\\Updater",
          "type": "->",
          "args": [
            [
              "",
              "logreader",
              "lookup_server_connector",
              "*** sensitive parameters replaced ***",
              "nextcloud_announcements",
              "notes",
              "notifications",
              ""
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Updater.php",
          "line": 140,
          "function": "doUpgrade",
          "class": "OC\\Updater",
          "type": "->",
          "args": [
            "26.0.0.7",
            "25.0.4.0"
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/core/Command/Upgrade.php",
          "line": 225,
          "function": "upgrade",
          "class": "OC\\Updater",
          "type": "->",
          "args": []
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Command/Command.php",
          "line": 255,
          "function": "execute",
          "class": "OC\\Core\\Command\\Upgrade",
          "type": "->",
          "args": [
            [
              "Symfony\\Component\\Console\\Input\\ArgvInput"
            ],
            [
              "Symfony\\Component\\Console\\Output\\ConsoleOutput"
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
          "line": 1009,
          "function": "run",
          "class": "Symfony\\Component\\Console\\Command\\Command",
          "type": "->",
          "args": [
            [
              "Symfony\\Component\\Console\\Input\\ArgvInput"
            ],
            [
              "Symfony\\Component\\Console\\Output\\ConsoleOutput"
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
          "line": 273,
          "function": "doRunCommand",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->",
          "args": [
            [
              "OC\\Core\\Command\\Upgrade"
            ],
            [
              "Symfony\\Component\\Console\\Input\\ArgvInput"
            ],
            [
              "Symfony\\Component\\Console\\Output\\ConsoleOutput"
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php",
          "line": 149,
          "function": "doRun",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->",
          "args": [
            [
              "Symfony\\Component\\Console\\Input\\ArgvInput"
            ],
            [
              "Symfony\\Component\\Console\\Output\\ConsoleOutput"
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/Console/Application.php",
          "line": 215,
          "function": "run",
          "class": "Symfony\\Component\\Console\\Application",
          "type": "->",
          "args": [
            [
              "Symfony\\Component\\Console\\Input\\ArgvInput"
            ],
            [
              "Symfony\\Component\\Console\\Output\\ConsoleOutput"
            ]
          ]
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/console.php",
          "line": 100,
          "function": "run",
          "class": "OC\\Console\\Application",
          "type": "->",
          "args": []
        },
        {
          "file": "/var/www/cloud.nextcloud.com/nextcloud/occ",
          "line": 11,
          "args": [
            "/var/www/cloud.nextcloud.com/nextcloud/console.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "/var/www/cloud.nextcloud.com/nextcloud/lib/private/DB/MigrationService.php",
      "Line": 499
    },
    "message": "Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown",
    "exception": {},
    "CustomMessage": "Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown"
  }
}

PS: the appid mail got censored in the log entry automatically. I did not do that.

@nickvergessen nickvergessen added bug 0. to triage regression nextcloud-gmbh Tickets with importance for Nextcloud Gmbh skill:backend Issues and PRs that require backend development skills labels Feb 24, 2023
@ChristophWurst
Copy link
Member

it's the ususal upgrade bug. there is a new class and it can't be found. And the authorititative autoloader probably makes this worse.

@ChristophWurst
Copy link
Member

authorititative autoloader probably makes this worse.

Confirmed. Details in nextcloud/calendar#5191 and nextcloud/calendar#5295.

@ChristophWurst ChristophWurst self-assigned this Jun 7, 2023
@ChristophWurst ChristophWurst moved this to 🏗️ In progress in 💌 📅 👥 Groupware team Jun 7, 2023
@ChristophWurst ChristophWurst changed the title atabase error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown Database error when running migration 2300Date20230214104736 for app mail\nMigration step OCA\\Mail\\Migration\\Version2300Date20230214104736 is unknown Jun 12, 2023
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug nextcloud-gmbh Tickets with importance for Nextcloud Gmbh regression skill:backend Issues and PRs that require backend development skills
Projects
Development

Successfully merging a pull request may close this issue.

2 participants