My fork of Discourse is out of date


(Leo Giovanetti) #1

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.

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'```

(Rafael dos Santos Silva) #2

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


(Leo Giovanetti) #3

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?


(Rafael dos Santos Silva) #4

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


(Leo Giovanetti) #5

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.