# Botched upgrade left me locked out

**URL:** https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501
**Category:** 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:** 16
**Page:** 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.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 6, 2017, 9:17pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/2 "2017-09-06T21:17:52Z")

</div>

Not sure but here’s how to fix it

```
# ssh into server
cd /var/discourse
./launcher rebuild app

```

😉

---

<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:40pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/3 "2017-09-06T21:40:39Z")

</div>

No that didn’t work I already tried that and I still receive the same error

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 6, 2017, 10:05pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/4 "2017-09-06T22:05:07Z")

</div>

This is usually due to incompatible third party plugins.

---

<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, 10:47pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/5 "2017-09-06T22:47:18Z")

</div>

That was it. Working now EXCEPT /admin/upgrade now shows just a blank page. Expected?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 7, 2017, 4:49am UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/6 "2017-09-07T04:49:09Z")

</div>

Did you remove Docker Manager from your plugin list?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 7, 2017, 4:55am UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/7 "2017-09-07T04:55:11Z")

</div>

Don’t remove the first party plugins, anything beginning with /discourse is official.

---

<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 7, 2017, 11:51am UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/8 "2017-09-07T11:51:10Z")

</div>

No, I returned the app.yaml file to it’s stock config, plugin wise. So it’s there.

Upon further inspection , in the logs, I now also see redis connection refused errors.

---

<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 7, 2017, 11:52am UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/9 "2017-09-07T11:52:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 7, 2017, 2:50pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/10 "2017-09-07T14:50:20Z")

</div>

> [@Fsantiago](#):
>
> any plugins I added I believe we’re official (as in beginning with discourse)

Official plugins are the ones under the [Discourse](https://github.com/discourse) organization on GitHub.

---

<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 7, 2017, 3:02pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/11 "2017-09-07T15:02:47Z")

</div>

ok got it. then certainly not official they were. ☹ oh well. now i know. but still don’t have an /admin/upgrade page.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 7, 2017, 3:07pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/12 "2017-09-07T15:07:55Z")

</div>

> [@Fsantiago](#):
>
> still don’t have an /admin/upgrade page

See this topic:  
[https://meta.discourse.org/t/fatal-js-error-breaking-admin-upgrade-page/69559?u=david\_taylor](https://meta.discourse.org/t/fatal-js-error-breaking-admin-upgrade-page/69559)

---

<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 7, 2017, 3:26pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/13 "2017-09-07T15:26:00Z")

</div>

ok, my web console shows this error(s):

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?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 7, 2017, 3:43pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/14 "2017-09-07T15:43:52Z")

</div>

> [@Fsantiago](#):
>
> 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.

---

<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 7, 2017, 3:55pm UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/15 "2017-09-07T15:55:50Z")

</div>

Ok very well. Thanks for everyone’s input. I’ll just wait it out then.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 8, 2017, 1:01am UTC](https://meta.discourse.org/t/botched-upgrade-left-me-locked-out/69501/16 "2017-09-08T01:01:24Z")

</div>


