From 6e7ad5eabc341455c4ffa8166cb2888e0deaf58b Mon Sep 17 00:00:00 2001 From: Lucas Bordeau Date: Fri, 10 Nov 2023 15:20:55 +0100 Subject: [PATCH] Update yarn-setup.mdx (#2424) Added troubleshooting use case on SQL database init error. --- docs/docs/contributor/local-setup/yarn-setup.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/docs/contributor/local-setup/yarn-setup.mdx b/docs/docs/contributor/local-setup/yarn-setup.mdx index 75cf2348f..29ebf693b 100644 --- a/docs/docs/contributor/local-setup/yarn-setup.mdx +++ b/docs/docs/contributor/local-setup/yarn-setup.mdx @@ -203,3 +203,13 @@ yarn start Twenty's frontend will be running at [http://localhost:3001](http://localhost:3001). Just login using the seeded demo account: `tim@apple.dev` to start using Twenty. +# Troubleshouting + +## Error: Failed to execute init.sql script. + +```bash +cp: ./infra/dev/postgres/init.sql: No such file or directory +psql: error: /tmp/init.sql: No such file or directory +``` + +If you get this error it means you are not launching the local database init script from the repo's root folder. Make sure you're in `twenty/` and not in `twenty/infra/dev/scripts`.