"Uw lokale wijzigingen.... templates/postgres.template.yml"

Discourse start niet. De logs voor de container tonen:

ok: run: redis: (pid 47) 791s
ok: run: postgres: (pid 44) 791s
supervisor pid: 4051 unicorn pid: 4056
./config/unicorn_launcher: line 71: kill: (4056) - No such process
./config/unicorn_launcher: line 15: kill: (4056) - No such process
(4051) exiting
ok: run: redis: (pid 47) 793s
ok: run: postgres: (pid 44) 793s
supervisor pid: 4065 unicorn pid: 407

Ik heb geprobeerd naar /var/discourse te gaan en ./launcher rebuild app te doen en het toont dit in een loop:

Ensuring launcher is up to date
Updating Launcher...
Updating 721facb..34dd695
error: your local changes to the following files would be overwritten by merge: templates/postgres.template.yml
Please commit your changes or stash them before you merge.
Aborting
failed to update

Waarom gebeurde dit en hoe kan ik dit oplossen?

1 like

where is your database server located?


this dictates the arguments you need after the .\launcher rebuild app command.


For example, if using a Postgres instance on the host (127.0.0.1):

You should run the .\launcher rebuild app with host networking:

./launcher rebuild app --docker-args --net=host --skip-mac-address

Mijn databaseserver is dezelfde als die van Discourse, ik heb de officiële installatiehandleiding gebruikt om Discourse te installeren

1 like

Dat commando toont dezelfde foutmelding. Dit is vreemd, want het werkt normaal gesproken prima

@Ethsim2 I did a cp of the file to a home directory and removed it from /templates

This is the new issue: Discourse Online Updater & ./launcher rebuild app failed from Discourse gamification

what deos free -h return?

intresting. You shouldn’t need the rebuild arguments for a standard install

or, say, if the PostgreSQL server was on 0.0.0.0 and the appropriate configurations in place for Discourse’s docker to maintain it’s network isolation.

this would require mounting in the app.yml to be useful in the relevant Discourse docker container, which is not recommended


you can always remove the file in host directory with rm

1 like

Ja, ik heb rm /var/discourse/templates/postgres.template.yml gedaan, wat geen kwaad zou mogen kunnen aangezien het een sjabloonbestand is?

1 like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.