Fsantiago experienced a botched upgrade after manually initiating one via /admin/upgrade and closing the browser prematurely, resulting in a login failure with a NoMethodError related to alias_level for a Group object. Rebuilding the app via ./launcher rebuild appsuggested by zogstrip didn’t resolve the issue. codinghorror suspected incompatible third-party plugins, which Fsantiago confirmed was the cause — though mistakenly believed the plugins were official (they weren’t, despite starting with “discourse”). After reverting app.yml to stock and removing unofficial plugins, login was restored, but /admin/upgrade remained blank. david linked to a known issue involving Discourse._registerPluginScriptDefinition errors from Docker Manager, which Fsantiago confirmed seeing in the console. david clarified the issue is under development and will require a rebuild once fixed. Fsantiago opted to wait for the fix. Redis connection errors also appeared post-fix, but were not further addressed.
some time later, i visited /admin/upgrade, and started an upgrade from there manually. i closed my browser window before it finished.
now, while i was still “logged in” to my site as admin, and trying to visit my preferences page, i receive a page not found or private message. i logged out.
now, on trying to re-login, i receive unknown error.
i enter my app, tail the production log and see this:
Started GET “/session/csrf?=1504731633203" for 108.53.239.102 at 2017-09-06 21:00:36 +0000
Processing by SessionController#csrf as /
Parameters: {"”=>“1504731633203”}
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started POST “/session” for 45.33.82.183 at 2017-09-06 21:00:36 +0000
Processing by SessionController#create as /
Parameters: {“login”=>“<user_ID>”, “password”=>“[FILTERED]”}
Completed 500 Internal Server Error in 234ms (ActiveRecord: 28.1ms)
NoMethodError (undefined method alias_level' for #<Group:0x007f1a80e14a50>) /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activemodel-4.2.9/lib/active_model/attribute_methods.rb:433:in method_missing’
what could have happened? Thanks.
the site is still up & running otherwise but i cannot login.
Gotcha. Interestingly, any plugins I added I believe we’re official (as in beginning with discourse). Let me figure out what they were and I’ll inform the thread.
docker-manager-vendor-4dd192655476ad4a9594bf218c3aab34ac1ad23cf54be7bb7174b6f475e67e86.js:1 Uncaught TypeError: Discourse._registerPluginScriptDefinition is not a function
at docker-manager-vendor-4dd192655476ad4a9594bf218c3aab34ac1ad23cf54be7bb7174b6f475e67e86.js:1
(anonymous) @ docker-manager-vendor-4dd192655476ad4a9594bf218c3aab34ac1ad23cf54be7bb7174b6f475e67e86.js:1
docker-manager-app-05126b4030cfb026187ab683ad137e7eb9ce4d8cd69e33734d1d17cf2171f7eb.js:1 Uncaught TypeError: Discourse._registerPluginScriptDefinition is not a function
at docker-manager-app-05126b4030cfb026187ab683ad137e7eb9ce4d8cd69e33734d1d17cf2171f7eb.js:1
not sure what to do with the links you sent me but perhaps related?
The link has details of the issue you’re having. The simple answer is that the problem is being worked on, and once it’s fixed you’ll need to do a rebuild of your instance to fix the upgrade page.