Created a Discourse server from DO. It was running v1.9.0 beta 10 +87.
When I try to use the stable version: 1.8.7, SSO stopped working and getting error like this.
Failed to create or lookup user: PG::RaiseException: ERROR: Discourse: email in users is readonly : INSERT INTO “users” (“email”, “name”, “username”, “ip_address”, “trust_level”, “username_lower”, …
I just switched back to the beta version and SSO is working for now
Anyone could help me where should I check?
@David_Park You created a new site, which was installed on tests_passed, version 1.9.0.beta10. Next you went into your app.yml file and switched to stable, rebuilt your site, which then caused you to be on version 1.8.7. @codinghorror please correct me if I’m going nuts, but that is going down in versions and we don’t support “backwards” database migrations.
That’s correct. The details of what’s happened is the current versions of Discourse have users.email marked as read-only in preparation for its eventual removal; the older version of Discourse expects to be writing that column.