My fork of Discourse is out of date

AI-generated summary

leog reports an issue after upgrading their Discourse fork to v1.9.0.beta15+135, encountering database errors during OAuth2 user registration via the Discourse-Auth0-Plugin. The error indicates a missing users.email column, likely due to a schema change, and is accompanied by a warning about ActiveRecord cache invalidation. Falco confirms the fork is outdated and advises merging changes from the main Discourse repo to resolve the issue. leog acknowledges the oversight and asks if running ./launcher rebuild app after updating the code will fix it — Falco confirms and suggests using the official Discourse repo instead of a fork. leog explains the fork was necessary to customize the OAuth2 implementation for Auth0’s specific requirements, renaming it to function as an Auth0-only plugin. The core issue stems from schema incompatibility between the outdated fork and the newer Discourse version, requiring code synchronization and possibly plugin updates to restore functionality.

Hello.

After upgrading to v1.9.0.beta15+135 we are having a problem with the registration of new users. In the logs I could find these two logs while I was trying to register a new user through OAuth2 with the following plugin GitHub - PartidoDigital/Discourse-Auth0-Plugin: A basic OAuth2 plugin for use with Discourse · GitHub.

I’ll bet the plugin needs some fixes for a DB schema that could have changed in the latest releases. Before upgrading I had the beta13 I think.

Thanks a lot in advance.

Warning:
Clear Active Record cache cause schema appears to have changed!

Error:

LINE 1: SELECT "users".* FROM "users" WHERE "users"."email" = 'xxxx...
^
: SELECT "users".* FROM "users" WHERE "users"."email" = 'xxxxxx@gmail.com' ORDER BY "users"."id" ASC LIMIT 1)
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.7/lib/patches/db/pg.rb:90:in `async_exec'```

Yes, your fork is broken. Merge latest changes from the main repo to fix it.

Oh shoot. How could I’ve missed that? thanks!

So running ./launcher rebuild app after updating the code in the repo I should be fine, right?

Yes. Also I don’t know why you are using a fork. Try using the official repo instead.

Actually, Auth0 service provides an OAuth2 implementation with some modifications from the one implemented in the original version, so I needed to fork it and rename it to be a plugin only supported by Auth0.