Can't update module to latest version
I have module with version 8.x-1.4, and trying update to the version 3.0.0-alpha6
I run module update with site version update. And in terminal I got next error:
> [notice] Update started: openid_connect_update_8198
> [error] Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42703]: Undefined column: 7 ERROR: column "alias" of relation "router" does not exist
> LINE 1: ...T INTO "drupal_11_3_3"."router" ("name", "route", "alias") V...
> ^: INSERT INTO "drupal_11_3_3"."router" ("name", "route", "alias") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2), (:db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5), (:db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8), (:db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11); Array
> (
> )
> [error] SQLSTATE[42703]: Undefined column: 7 ERROR: column "alias" of relation "router" does not exist
> LINE 1: ...T INTO "drupal_11_3_3"."router" ("name", "route", "alias") V...
> ^: INSERT INTO "drupal_11_3_3"."router" ("name", "route", "alias") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2), (:db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5), (:db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8), (:db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11); Array
> (
> )
>
> [error] Update failed: openid_connect_update_8198 I checked the "router" table and saw that there are really have not "alias" column.
The update with 8198 number has next code
>function openid_connect_update_8198() {
> \Drupal::service('module_installer')->install(['externalauth']);
>}It install the externalauth module.
Issue fork openid_connect-3576745
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3576745-update-aborted-by
changes, plain diff MR !183
Comments
Comment #2
vadim.jin commentedComment #5
nickolajPatch wraps `openid_connect_update_8198()` in a try-catch so it doesn't abort the entire update process. If `externalauth` installation fails (e.g. due to missing `alias` column in the `router` table), it logs the error and continues. The same installation is retried in `openid_connect_update_8203()`, and none of the updates between them (8199-8202) require externalauth. Also adds an early return if externalauth is already installed.
Comment #6
dpiTag spam.
Comment #7
nickolaj@dpi - that is a fair reading of what it looked like, and I am sorry for the delay in answering.
This came from a batch of AI-assisted patches I was running. The volume was the problem regardless of whether any single patch was correct, and this queue should not have been part of it. I have stopped that process.
My merge request is closed.
Comment #8
neclimdulDoesn't seem like a openid issue any ways. This would have been triggered in the route dumper in core. Seems like the site was in a weird state without a core update applied or something causing the module install to fail because the route dumper was broken.