# Pups::ExecError

**URL:** https://meta.discourse.org/t/pups-execerror/264176
**Category:** Self-hosting
**Created:** [May 8, 2023, 12:15am UTC](https://meta.discourse.org/t/pups-execerror/264176 "2023-05-08T00:15:52Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 8, 2023, 12:15am UTC](https://meta.discourse.org/t/pups-execerror/264176/1 "2023-05-08T00:15:52Z")

</div>

Hi, I wanted to [set up Multisite](https://meta.discourse.org/t/multisite-configuration-with-docker/14084), but this bug seems to have other plans:

> Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate failed with return #\<Process::Status: pid 776 exit 1\>

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 8, 2023, 12:29am UTC](https://meta.discourse.org/t/pups-execerror/264176/2 "2023-05-08T00:29:29Z")

</div>

not sure but maybe this will help

> [@Rake multisite:migrate is broken](https://meta.discourse.org/t/rake-multisite-migrate-is-broken/155329):
>
> Earlier today, I created a support topic in this context, but I wasn’t sure so I did some more tries and investigation into this, Seems like something is very wrong here. multisite rebuilds fail with this error: FAILED -------------------- Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #\<Process::Status: pid 5780 exit 1\> Location of failure: /pups/lib/pups/exec\_command.rb:112:in `spawn' exec failed with the params "cd /var/ww…

---

<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: [May 8, 2023, 1:45pm UTC](https://meta.discourse.org/t/pups-execerror/264176/3 "2023-05-08T13:45:05Z")

</div>

Do you have any plugins installed? Some are incompatible with multisite.

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 9, 2023, 4:10pm UTC](https://meta.discourse.org/t/pups-execerror/264176/4 "2023-05-09T16:10:49Z")

</div>

![grafik](https://global.discourse-cdn.com/meta/original/4X/7/9/6/7969a262343f9b80295e99c402c4c103740bd203.png)

---

<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: [May 9, 2023, 4:28pm UTC](https://meta.discourse.org/t/pups-execerror/264176/5 "2023-05-09T16:28:07Z")

</div>

> [@Justman10000](#):
>
> otherside:migrate

Wait what? It’s `multisite` not `otherside` ?

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 9, 2023, 6:11pm UTC](https://meta.discourse.org/t/pups-execerror/264176/7 "2023-05-09T18:11:56Z")

</div>

I have renamed it to hide the name I am actually using there.

This has been taken care of! Apparently I also had to change the name of the `$home/config/otherside.yml`

---

<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: [May 9, 2023, 7:49pm UTC](https://meta.discourse.org/t/pups-execerror/264176/8 "2023-05-09T19:49:39Z")

</div>

Please elaborate on what you have been doing, I am missing your point completely.  
You’ve been hiding a name? Renaming config files? And you didn’t think it was worth mentioning when you filed the support question?

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 10, 2023, 4:09pm UTC](https://meta.discourse.org/t/pups-execerror/264176/11 "2023-05-10T16:09:32Z")

</div>

I have the following configuration:

```yaml
hooks:
  after_postgres:
     - exec: sudo -u postgres createdb discourse_rubyhub || exit 0
     - exec:
          stdin: |
            grant all privileges on database discourse_rubyhub to discourse;
          cmd: sudo -u postgres psql discourse_rubyhub
          raise_on_fail: false
  
     - exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<< "alter schema public owner to discourse;"'
     - exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<< "create extension if not exists hstore;"'
     - exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<< "create extension if not exists pg_trgm;"'

  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - chmod -R 755 plugins
          # Official
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-topic-voting.git
          - git clone https://github.com/discourse/discourse-post-voting.git
          - git clone https://github.com/discourse/discourse-oauth2-basic.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-calendar.git
          - git clone https://github.com/discourse/discourse-ai.git
          - git clone https://github.com/discourse/discourse-checklist.git
          - git clone https://github.com/discourse/discourse-staff-alias.git
          - git clone https://github.com/discourse/discourse-assign.git
          - git clone https://github.com/discourse/discourse-shared-edits.git
          - git clone https://github.com/discourse/discourse-translator.git
          - git clone https://github.com/discourse/discourse-theme-creator.git
          # Paviliondev
          - git clone https://github.com/paviliondev/discourse-discord-bot.git
          - git clone https://github.com/paviliondev/discourse-ratings.git
          - git clone https://github.com/paviliondev/discourse-multilingual.git
          - git clone https://github.com/paviliondev/discourse-news.git
          - git clone https://github.com/paviliondev/discourse-events.git
          - git clone https://github.com/paviliondev/discourse-layouts.git
          - git clone https://github.com/paviliondev/discourse-custom-wizard.git
          # Coopcreds
          - git clone https://github.com/coopcreds/discourse-verifiable-credentials.git

  before_bundle_exec:
    - file:
        path: $home/config/multisite.yml
        contents: |
         multisite:
           adapter: postgresql
           database: discourse_rubyhub
           pool: 25
           timeout: 5000
           db_id: 2
           host_names:
             - rubyhub.store

  after_bundle_exec:
    - exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate

```

Instead of `multisite` it said `rubyhub` everywhere except as name of the .yml configuration file! Which caused the error!

But what is the http port, or how do I change it in the multisite so that I can set up an extra reverse proxy for `rubyhub.store`?

---

<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: [May 10, 2023, 11:40pm UTC](https://meta.discourse.org/t/pups-execerror/264176/12 "2023-05-10T23:40:03Z")

</div>

> [@Justman10000](#):
>
> what is the http port, or how do I change it in the multisite

Your can change it only for all sites, not just one.

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 11, 2023, 9:32am UTC](https://meta.discourse.org/t/pups-execerror/264176/13 "2023-05-11T09:32:24Z")

</div>

How is that supposed to work? How is the web server supposed to know that another site is now being added? Reverse proxies cannot use the same port multiple times

---

<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: [May 11, 2023, 9:48am UTC](https://meta.discourse.org/t/pups-execerror/264176/14 "2023-05-11T09:48:50Z")

</div>

You send all requests to the same place. I discourse can teeth from the headers which site it is

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 11, 2023, 9:52am UTC](https://meta.discourse.org/t/pups-execerror/264176/15 "2023-05-11T09:52:01Z")

</div>

Under `rubyhub.store`, however, comes no Discourse

---

<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: [May 11, 2023, 10:54am UTC](https://meta.discourse.org/t/pups-execerror/264176/16 "2023-05-11T10:54:01Z")

</div>

Did you follow [Multisite configuration with Docker](https://meta.discourse.org/t/multisite-configuration-with-docker/14084)?

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [May 11, 2023, 11:43am UTC](https://meta.discourse.org/t/pups-execerror/264176/17 "2023-05-11T11:43:04Z")

</div>

Yes, I have followed
