# Plugin causing errors during rebuild

**URL:** <https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110>\
**Category:** Self-hosting\
**Created:** [October 6, 2022, 9:35am UTC](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110 "2022-10-06T09:35:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jaap-Jan\_Swijnenburg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaap-jan_swijnenburg/32/221338_2.png) [@Jaap-Jan\_Swijnenburg](https://meta.discourse.org/u/Jaap-Jan_Swijnenburg)\
**Post date:** [October 6, 2022, 9:35am UTC](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110/1 "2022-10-06T09:35:29Z")

</div>

Today I tried to upgrade my Discourse installation, from 2.9.0.beta9 to 2.9.0.beta10. But this went horribly wrong.

1. My first attempt was on the console

```plaintext
cd /var/discourse
sudo git pull
sudo ./launcher rebuild app

```

This finally broke off, with the following message somewhere in the middle of all the logs

```plaintext
PG::InvalidParameterValue: ERROR: cannot extract elements from a scalar
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-3.0.0/lib/patches/db/pg.rb:110:in `exec'

```

I was able to simply restore the forum by starting the old image (which was still hanging around).

1. My second attempt was through the web console (/admin/upgrade). But this finally choked on the same kind of error: `ERROR: cannot extract elements from a scalar`. When going back to the upgrade panel, it told me all components were updated fine. But after a restart of the container, the server now threw a HTTP 500 error ☹

2. I did a clean install on a separate machine, starting from scratch. I was able to install the beta10 version, but trying to restore from a backup caused exactly the same error!

Anybody out there who could be of any help?

---

_[View the full topic](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110)._
