# Botched upgrade left me locked out

**URL:** <https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501>\
**Category:** Product Support\
**Created:** [September 6, 2017, 9:04pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501 "2017-09-06T21:04:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Fsantiago](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Fsantiago](https://meta.discourse.org/u/Fsantiago)\
**Post date:** [September 6, 2017, 9:04pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/1 "2017-09-06T21:04:53Z")

</div>

Hello,

i ran git pull on /var/discourse

then ran ./launcher rebuild app

no problem.

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.

---

_[View the full topic](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501)._
