Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Database Connection String in .env File #8741

Open
Lucifer4255 opened this issue Nov 25, 2024 · 2 comments
Open

Incorrect Database Connection String in .env File #8741

Lucifer4255 opened this issue Nov 25, 2024 · 2 comments

Comments

@Lucifer4255
Copy link

Lucifer4255 commented Nov 25, 2024

The default database connection string provided in the .env file for the twenty repository appears to be incorrect. Specifically, the connection string causes authentication failures when attempting to connect to PostgreSQL.

Steps to Reproduce:
Clone the repository and set up the environment using the provided .env file.
Run the application or attempt a database connection.
Observe authentication failure due to an incorrect connection string format or credentials.
Image
Image

Expected Behavior:
The application should connect successfully to the PostgreSQL database using the provided .env configuration.

Suggested Fix:
Verify and update the default connection string in the .env file to ensure it follows the correct format:
postgres:https://<username>:<password>@<host>:<port>/<database>

if possible i can work in this issue

@FelixMalfait
Copy link
Member

Good point, it's because docker's default is postgres:twenty (we use the Postgres super user), but the local setup (brew, wsl, etc.) defaults to using postgres:postgres ; we should probably just use postgres:postgres everywhere remove drop the instrusctions in the doc to create a twenty user (since it's a local setup anyway)

@Lucifer4255
Copy link
Author

Lucifer4255 commented Nov 26, 2024

Well can i edit the documentation then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants