# Migration failed on update calendar plugin to last commit

**URL:** https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437
**Category:** Support
**Tags:** unsupported-install, events
**Created:** [September 19, 2022, 5:16pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437 "2022-09-19T17:16:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![laurent.c](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurent.c/32/199059_2.png) [@laurent.c](https://meta.discourse.org/u/laurent.c)
#### Post date: [September 19, 2022, 5:16pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/1 "2022-09-19T17:16:47Z")

</div>

Hi,

I use Discourse 2.8.8 on Cloudron with Discourse Calendar (commit [FIX: Mobile style fix (#175) · discourse/discourse-calendar@1b9ef81 · GitHub](https://github.com/discourse/discourse-calendar/commit/1b9ef8192a6b8a6a9ac7b98c7c72c16f97bcf00d)). When I want to update the plugin to the last commit ([FIX: Add translation entry for Indonesia (#319) · discourse/discourse-calendar@d3bcef6 · GitHub](https://github.com/discourse/discourse-calendar/commit/d3bcef60d384fd92c6eb398a46b6240d89a17061)). But when the application starts, I get this error:

 ![discourse-calendar-error](https://global.discourse-cdn.com/meta/original/4X/b/6/7/b676745f3caca5b3090c6819a095170842e04c88.jpeg)

```plaintext
==> Migrating database
...
ArgumentError: Unknown migration version "7.0"; expected one of "4.2", "5.0", "5.1", "5.2", "6.0", "6.1"
...
/app/code/plugins/discourse-calendar/db/migrate/20220604200919_create_disabled_holidays.rb:3:in `<main>'

```

The code of the file : [discourse-calendar/db/migrate/20220604200919\_create\_disabled\_holidays.rb at main · discourse/discourse-calendar · GitHub](https://github.com/discourse/discourse-calendar/blob/main/db/migrate/20220604200919_create_disabled_holidays.rb)

In the forum, I also found this message:

> [@Migration Version Error when Updating Discourse](https://meta.discourse.org/t/migration-version-error-when-updating-discourse/229985/5):
>
> @hyphalos A fix has been created for the discourse-calendar plugin. You can go ahead and update discourse now.

But I don’t know why, it does not work (and I don’t understand what is the fix…)

Any idea to fix it ?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 19, 2022, 6:20pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/2 "2022-09-19T18:20:25Z")

</div>

According to the `.discourse-compatibility` [file](https://github.com/discourse/discourse-calendar/blob/main/.discourse-compatibility) you should not be updating / not be able to update to that commit when you’re on 2.8 stable.

Do you have a `plugin:pull_compatible_all` somewhere? (You should)

---

<div class="post-metadata">

### Author: ![laurent.c](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurent.c/32/199059_2.png) [@laurent.c](https://meta.discourse.org/u/laurent.c)
#### Post date: [September 20, 2022, 7:18am UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/3 "2022-09-20T07:18:21Z")

</div>

Thank tou @RGJ. I did not know this kind of file. In the future, I will check it.

> Do you have a `plugin:pull_compatible_all` somewhere? (You should)

I don’t know what it is. I use a cloudron instance to deploy Discourse. To update plugin, I have to remove it and install it as the documentation explains:

[https://docs.cloudron.io/apps/discourse/#installing-plugins](https://docs.cloudron.io/apps/discourse/#installing-plugins)

But I have just seen that I have a file `site_settings.yml` to add additional customizations. I should set up something here with `plugin:pull_compatible_all` ?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 20, 2022, 7:31am UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/4 "2022-09-20T07:31:42Z")

</div>

You might want to point the Cloudron people to this topic since they did not seem to get much further than telling you it’s a typo on your end, or “are you even in the right directory?” 😆

They need to update their documentation.

---

<div class="post-metadata">

### Author: ![laurent.c](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurent.c/32/199059_2.png) [@laurent.c](https://meta.discourse.org/u/laurent.c)
#### Post date: [September 20, 2022, 9:20pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/5 "2022-09-20T21:20:43Z")

</div>

I have never asked to the cloudron community and I will open a discussion in the cloudron forum.

Why they need to update the documentation?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 20, 2022, 9:27pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/6 "2022-09-20T21:27:09Z")

</div>

The problem here is that you’re using an unsupported install. We can only really support the [standard install](https://meta.discourse.org/t/142537?silent=true) here. Third party packages break all the time due to changes occurring within Discourse itself - this is why they’re not recommended.

The version of the calendar plugin you’re trying to install isn’t compatible with the version of Discourse in the Cloudron package. Cloudron has repackaged Discourse and as a result aren’t using the supported means to install plugins. Unless you want to switch over to a supportable install they’re going to need to guide you in fixing this and update their documentation.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 20, 2022, 11:30pm UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/7 "2022-09-20T23:30:33Z")

</div>

> [@laurent.c](#):
>
> I have never asked to the cloudron community

My apologies. Someone else asked the exact same question / had the exact same problem two days ago:

[https://forum.cloudron.io/topic/7687/installing-a-discourse-plugin-on-cloudron](https://forum.cloudron.io/topic/7687/installing-a-discourse-plugin-on-cloudron)

---

<div class="post-metadata">

### Author: ![laurent.c](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurent.c/32/199059_2.png) [@laurent.c](https://meta.discourse.org/u/laurent.c)
#### Post date: [September 21, 2022, 7:43am UTC](https://meta.discourse.org/t/migration-failed-on-update-calendar-plugin-to-last-commit/239437/8 "2022-09-21T07:43:15Z")

</div>

Ok. I’m going to join the discussion in the cloudron forum.  
Thanks for your replies because I understand better Discourse to help the cloudron community and analyse futures issues.
