- 🇨🇦Canada colan Toronto 🇨🇦
This is still a problem in 2.0.3. Yes, this is supposed to get created when you run
drush config-import
, assuming that you've added the file tocore.extension.yaml
.I'm not sure why, but it didn't seem to actually be installing. We should see something like this:
[notice] Synchronized extensions: install externalauth.
But it didn't happen in my case, but that's also weird because the module seemed to be installed as I could configure it and there's a
hook_schema
implementation.Maybe this is related to 🐛 hook_install() is invoked before the module's default config is installed during config import Needs work or #2451365: ConfigInstaller has the source storage injected by config importer and module installer but it is done incorrectly → ?
- 🇨🇦Canada colan Toronto 🇨🇦
On further investigation, this was caused by
lando pull
moving me to the wrong branch. This command seems to switch tomaster
for no good reason; all it needs to do is import a remote DB. So I was on the wrong branch. When I switched to the correct branch before runningdrush config-import
, theauthmap
table actually got created. Sorry for the noise. We are having the same issue and we are not using the wrong branch. We just used imported the database from another environment in our dev environment so we did not had to do cim as well. So not sure what else we should try. This is the error when we tried to delete the module,
In ExceptionHandler.php line 56:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.auth
map' doesn't exist: DELETE FROM "authmap"
WHERE "provider" = :db_condition_placeholder_0; Array
(
[:db_condition_placeholder_0] => open_connect.hq
)In StatementWrapperIterator.php line 111:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.auth
map' doesn't exist- 🇪🇸Spain rteijeiro
Same here after upgrading drupal core and openid_connect modules:
- Drupal 10.2.4
- OpenID Connect / OAuth client 3.0.0-alpha3
- OpenID Connect Microsoft Azure Active Directory client 2.0.0-beta7> [error] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.authmap' doesn't exist: SELECT 1 AS "expression" > FROM > "authmap" "authmap" > WHERE ("uid" = :db_condition_placeholder_0) AND ("provider" = :db_condition_placeholder_1); Array > ( > [:db_condition_placeholder_0] => 13 > [:db_condition_placeholder_1] => openid_connect.windows_aad > ) > > [error] Update failed: openid_connect_update_8204
As workaround I create a custom module and copy schema from externalauth module then enable this custom module manually fixed my issue
- 🇧🇪Belgium svendecabooter Gent
Probably related to 🐛 Update to OpenID Connect Module 2.0 Fails Due to Missing 'authmap' Table Required by Externalauth Dependency Active ?
It seems the openid_connect module activates the externalauth module within an update hook openid_connect_update_8203() and then migrates over its own authmap data to the externalauth one openid_connect_update_8204().
I'm not sure why upon installation of the externalauth module, the {authmap} table would not be created. It is defined via hook_schema(), and has been there from the start of the module.
I'm really clueless as to why this would happen. Seems it only occurs in combination with the openid_connect module then?
Something must go wrong with installation of the module then, or the schema definition might not have been updated yet by the time openid_connect_update_8204() gets called (some caching issue?)