Hallo, ich wollte Multisite einrichten , aber dieser Fehler scheint andere Pläne zu haben:
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate fehlgeschlagen mit Rückgabe #<Process::Status: pid 776 exit 1>
Lilly
(Lillian Louis)
8. Mai 2023 um 00:29
2
Bin mir nicht sicher, aber vielleicht hilft das:
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. Mai 2023 um 13:45
3
Haben Sie Plugins installiert? Einige sind mit Multisite nicht kompatibel.
1 „Gefällt mir“
RGJ
(Richard - Communiteq)
9. Mai 2023 um 16:28
5
Justman10000:
otherside:migrate
Moment mal? Es heißt multisite und nicht otherside?
Ich habe ihn umbenannt, um den Namen zu verbergen, den ich dort tatsächlich verwende.
Dies wurde erledigt! Anscheinend musste ich auch den Namen von $home/config/otherside.yml ändern.
RGJ
(Richard - Communiteq)
9. Mai 2023 um 19:49
8
Bitte erläutern Sie, was Sie getan haben, ich verstehe Ihren Punkt überhaupt nicht.
Sie haben einen Namen versteckt? Konfigurationsdateien umbenannt? Und Sie dachten nicht, dass es erwähnenswert sei, als Sie die Supportanfrage gestellt haben?
1 „Gefällt mir“
Ich habe die folgende Konfiguration:
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
Anstelle von multisite stand überall rubyhub, außer im Namen der .yml-Konfigurationsdatei! Das hat den Fehler verursacht!
Aber was ist der HTTP-Port, oder wie ändere ich ihn in multisite, damit ich einen zusätzlichen Reverse-Proxy für rubyhub.store einrichten kann?
1 „Gefällt mir“
pfaffman
(Jay Pfaffman)
10. Mai 2023 um 23:40
12
Sie können ihn nur für alle Websites ändern, nicht nur für eine.
Wie soll das funktionieren? Woher soll der Webserver wissen, dass eine weitere Website hinzugefügt wird? Reverse Proxys können nicht denselben Port mehrmals verwenden.
pfaffman
(Jay Pfaffman)
11. Mai 2023 um 09:48
14
Sie senden alle Anfragen an denselben Ort. Ich kann anhand der Header erkennen, um welche Website es sich handelt.
1 „Gefällt mir“
Unter rubyhub.store kommt jedoch kein Discourse
1 „Gefällt mir“
pfaffman
(Jay Pfaffman)
11. Mai 2023 um 10:54
16
2 „Gefällt mir“