# Problem with api version when updating docker manager

**URL:** https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548
**Category:** Bug
**Tags:** docker-manager
**Created:** [January 13, 2024, 9:39pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548 "2024-01-13T21:39:33Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![HeroHabit](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@HeroHabit](https://meta.discourse.org/u/HeroHabit)
#### Post date: [January 13, 2024, 9:39pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/1 "2024-01-13T21:39:33Z")

</div>

Hello,  
I am having an issue with [MY FORUM](https://community.herohabit.com) where it’s just continuously loading. I did update the docker today and that seems to be what is causing the issue but I don’t know if/how I can revert that. I’m able to access the site in [safe mode](https://meta.discourse.org/t/53504?silent=true) and have disabled all plugins, elements, and themes but it still won’t load out of [safe mode](https://meta.discourse.org/t/53504?silent=true). Any guidance would be appreciated. Thanks!

 ![Screenshot 2024-01-13 143857](https://global.discourse-cdn.com/meta/original/4X/3/d/c/3dca1e25212971aeab594091d5e99022d3788aa8.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 13, 2024, 9:55pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/2 "2024-01-13T21:55:49Z")

</div>

I think I’ve hit this as well. I updated docker manager through the UI and afterwards my site wouldn’t load. It loads in [safe mode](https://meta.discourse.org/t/53504?silent=true) with no plugins (I only have official ones), but then I don’t have docker manager to run the main update of Discourse itself.

I’m currently doing a `./launcher rebuild app` from the command line and I’m hoping that sorts it. 🤞

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [January 13, 2024, 10:05pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/3 "2024-01-13T22:05:49Z")

</div>

Hello 👋

I think this happens here:

The Plugin Api version changed here to `1.24.0`

> <https://github.com/discourse/discourse/blob/731699a7cfcfdd317c5ce08a21dbf4cf020bbc8d/app/assets/javascripts/discourse/app/lib/plugin-api.js#L149>

And the recent update in Docker Manager is use this plugin api version.

> <https://github.com/discourse/docker_manager/blob/5a0499af2911bcda043c613cbf7048158114725b/admin/assets/javascripts/discourse/initializers/admin-sidebar-upgrade.js#L8>

So you have to update Discourse too because Docker Manager use plugin api version which higher than Discourse used plugin api version before update and Docker Manager will break.

The problem with this in admin you can only update first Docker Manager so rebuild required in this case.

---

<div class="post-metadata">

### Author: ![HeroHabit](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@HeroHabit](https://meta.discourse.org/u/HeroHabit)
#### Post date: [January 13, 2024, 10:24pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/5 "2024-01-13T22:24:41Z")

</div>

Pardon my ignorance but will I lose all my forum posts if I do a rebuild?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 13, 2024, 10:30pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/6 "2024-01-13T22:30:25Z")

</div>

No, your data will be left alone. 👍 You can read more detail about it in this topic:

> [@Manually update Discourse and Docker image to latest](https://meta.discourse.org/t/manually-update-discourse-and-docker-image-to-latest/23325):
>
> bookmark This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup. person_raising_hand Required user level: System Administrator warning SSH access to the server. If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases and newest libraries. These updates are not picked up in admin/upgrade, which is why you’ll occa…

---

<div class="post-metadata">

### Author: ![HeroHabit](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@HeroHabit](https://meta.discourse.org/u/HeroHabit)
#### Post date: [January 13, 2024, 10:35pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/7 "2024-01-13T22:35:02Z")

</div>

Thanks. As soon as I posted that I thought, “I’ve done a rebuild a bunch of times”! but figured I’d let it stay in case someone in the future needs this topic. Rebuild is running now, hope that settles it. I don’t have an active forum (yet) but it does get a fair amount of traffic so I hate the down time. Thank you for your help!

---

<div class="post-metadata">

### Author: ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://meta.discourse.org/u/EchoBilisim)
#### Post date: [January 14, 2024, 9:13pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/11 "2024-01-14T21:13:09Z")

</div>

Hello, I have followed all the commands here, but my site still appears to be loading, but the site does not open.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 14, 2024, 9:18pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/12 "2024-01-14T21:18:16Z")

</div>

Are you using the `stable` branch rather than `tests-passed`? If so, I believe Don has just shared a workaround that might be useful until a fix is in place:

> [@After upgrade, unable to go in discourse](https://meta.discourse.org/t/after-upgrade-unable-to-go-in-discourse/291619/8):
>
> Hello 👋 Here is a possible quick solution while the fix is coming to `docker_manager`: [DEV: Use new JS plugin API to add admin sidebar link (#201) · discourse/docker\_manager@5a0499a · GitHub](https://github.com/discourse/docker_manager/commit/5a0499af2911bcda043c613cbf7048158114725b#commitcomment-136933593)

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [January 15, 2024, 1:01am UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/13 "2024-01-15T01:01:24Z")

</div>

My apologies everyone, I must have overlooked something as part of my testing for this change. I have reverted it here, that should solve the issue:

[https://github.com/discourse/docker\_manager/commit/e480ca103ce85db1145ab22f3a526e8f356579ce](https://github.com/discourse/docker_manager/commit/e480ca103ce85db1145ab22f3a526e8f356579ce)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 15, 2024, 7:27pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/14 "2024-01-15T19:27:33Z")

</div>

2 posts were merged into an existing topic: [Page keeps loading after update](https://meta.discourse.org/t/page-keeps-loading-after-update/291625/4)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 15, 2024, 9:00pm UTC](https://meta.discourse.org/t/problem-with-api-version-when-updating-docker-manager/291548/15 "2024-01-15T21:00:27Z")

</div>

This topic was automatically closed after 15 hours. New replies are no longer allowed.
