# Undefined method \`sub!' when visiting \`/admin/upgrade\`

**URL:** <https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682>\
**Category:** Self-hosting\
**Created:** [August 10, 2023, 2:17pm UTC](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682 "2023-08-10T14:17:24Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 10, 2023, 10:23pm UTC](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682/7 "2023-08-10T22:23:56Z")

</div>

> [@kdambekalns](#):
>
> Digging further, the way we installed the plugins lacked the part `sudo -E -u discourse` on the `git clone …` calls in `containers/app.yml`.

I don’t think that’s the problem.

> [@kdambekalns](#):
>
> Then again, the existing `docker_manager` line did never have this.

I think I suggested that they change the examples when they started suggesting to do that, but it didn’t get any attention.

I still don’t do that, but think I might start, as it might keep git from complaining.

---

_[View the full topic](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682)._
