From 3ef966df4b217e4db4d843e463d7d0e4048b4d5a Mon Sep 17 00:00:00 2001 From: TheSaneWriter <93878758+TheSaneWriter@users.noreply.github.com> Date: Tue, 20 Jun 2023 09:09:19 -0400 Subject: [PATCH] Update 02-local-development.md (#215) I have added some debugging notes that might save some time for an Arch user setting up Postgres. Specifically, sometimes pacman sets up the database cluster incorrectly and some extra bash commands need to be issued before systemctl can start the service. --- src/en/contributors/02-local-development.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/en/contributors/02-local-development.md b/src/en/contributors/02-local-development.md index 7d960da..fe2d398 100644 --- a/src/en/contributors/02-local-development.md +++ b/src/en/contributors/02-local-development.md @@ -44,6 +44,11 @@ Arch-based distro: ```bash sudo pacman -S postgresql sudo systemctl start postgresql +# If the systemctl command errors, then run the following +sudo mkdir /var/lib/postgres/data +sudo chown postgres:postgres /var/lib/postgres/data +sudo -u postgres initdb -D /var/lib/postgres/data +sudo systemctl start postgresql ``` macOS: