-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
After upgrade from 0.61.1 to 0.77.3, existing users can't log in through Google #7271
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
Comments
I check the data which was used to check if the user existed, and after some research, it looked for the correct email but the wrong team. We removed the team which had no user. And now we have an error:
We initially copy-pasted the whole database with We restored the database from the 0.61.1 version and it looks like we are missing some migrations: outline=# SELECT * FROM "SequelizeMeta" WHERE name LIKE '20210226%';
name
--------------------------------------------
20210226232041-authentication-providers.js
(1 row)
outline=# SELECT * FROM "SequelizeMeta" WHERE name = '20210226232041-migrate-authentication.js';
name
------
(0 rows) Actually the table from this migration exists in our database. |
We fixed the issue by removing one team that was bound to the Slack auth, that we don't use anymore: outline=# SELECT * FROM authentication_providers;
id | name | providerId | enabled | teamId | createdAt
--------------+--------+------------+---------+--------------+----------------------------
2e4ba4d7-[…] | google | […] | t | ef4e6cf1-[…] | 2022-01-19 12:37:45.01+00
aaf01e1f-[…] | slack | T02[…] | t | 330e03c8-[…] | 2022-01-19 12:37:45.098+00
(2 rows)
outline=# DELETE FROM authentication_providers WHERE id = 'aaf01e1f-[…]';
DELETE 1
outline=# DELETE FROM events WHERE "teamId" = '330e03c8-[…]';
DELETE 3
outline=# DELETE FROM teams WHERE id = '330e03c8-[…]';
DELETE 1 And now we can authenticate through Google. |
Thanks for documenting, I'm glad you got this working. In self-hosted mode there should never be more than a single team in the database, the behavior can be unpredictable if that ends up being the case. There is another issue here #7201 where we're trying to get to the bottom of how that can occur. |
Uh oh!
There was an error while loading. Please reload this page.
We duplicated our instance of Outline and upgraded it from 0.61.1 to 0.77.3, existing users can't log in through Google.
We followed this documentation to generate new credentials for the new sub-domain bound to this new instance: https://docs.getoutline.com/s/hosting/doc/google-hOuvtCmTqQ
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Log in should work.
Logs
Formatted stack trace
Is it trying to create one user? This account already exists in the database.
Screenshots
.
Outline (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: