Ciao, volevo configurare Multisite , ma questo bug sembra avere altri piani:
\u003e Pups::ExecError: cd /var/www/discourse \u0026\u0026 sudo -E -u discourse bundle exec rake otherside:migrate fallito con ritorno #\u003cProcess::Status: pid 776 exit 1\u003e
Lilly
(Lillian )
8 Maggio 2023, 12:29am
2
non sono sicuro, ma forse questo aiuterà
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…
pfaffman
(Jay Pfaffman)
8 Maggio 2023, 1:45pm
3
Hai qualche plugin installato? Alcuni sono incompatibili con il multisito.
RGJ
(Richard - Communiteq)
9 Maggio 2023, 4:28pm
5
Justman10000:
otherside:migrate
Aspetta, cosa? È multisite non otherside?
L’ho rinominato per nascondere il nome che sto effettivamente usando lì.
Ci siamo occupati di questo! A quanto pare ho anche dovuto cambiare il nome di $home/config/otherside.yml
RGJ
(Richard - Communiteq)
9 Maggio 2023, 7:49pm
8
Per favore, elabora su ciò che hai fatto, non capisco affatto il tuo punto.
Hai nascosto un nome? Rinominato file di configurazione? E non hai pensato che valesse la pena menzionarlo quando hai presentato la richiesta di supporto?
Ho la seguente configurazione:
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
Invece di multisite diceva rubyhub ovunque tranne che come nome del file di configurazione .yml! Questo ha causato l’errore!
Ma qual è la porta http, o come la cambio in multisite in modo da poter impostare un proxy inverso aggiuntivo per rubyhub.store?
pfaffman
(Jay Pfaffman)
10 Maggio 2023, 11:40pm
12
Puoi cambiarla solo per tutti i siti, non solo per uno.
Come dovrebbe funzionare? Come dovrebbe il server web sapere che un altro sito viene ora aggiunto? I proxy inversi non possono utilizzare la stessa porta più volte.
pfaffman
(Jay Pfaffman)
11 Maggio 2023, 9:48am
14
Invii tutte le richieste nello stesso posto. Posso dedurre dai titoli di intestazione di quale sito si tratta
Sotto rubyhub.store, tuttavia, non arriva nessun Discourse
pfaffman
(Jay Pfaffman)
11 Maggio 2023, 10:54am
16