-
Notifications
You must be signed in to change notification settings - Fork 375
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
Docker database fails to initialize on Windows #1155
Comments
So it seems that the issue was that the |
kangmingtay
pushed a commit
that referenced
this issue
Jun 26, 2023
This addresses differences in eol handling between OSes by normalizing the line endings using a `.gitattributes` file. On Windows, cloning the repo and building the containers causes the Postgres container to fail to initialize and shutdown early due to `init_postgres.sh` being copied into the container with Windows line endings. Fixes #1155 New clones of the repo shouldn't have issues with this after this PR is merged. Existing clones which don't already contain `LF` line endings may have to reset using ``` git rm --cached -r . git reset --hard ``` to update their files' line endings.
🎉 This issue has been resolved in version 2.77.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
uxodb
pushed a commit
to uxodb/auth
that referenced
this issue
Nov 13, 2024
This addresses differences in eol handling between OSes by normalizing the line endings using a `.gitattributes` file. On Windows, cloning the repo and building the containers causes the Postgres container to fail to initialize and shutdown early due to `init_postgres.sh` being copied into the container with Windows line endings. Fixes supabase#1155 New clones of the repo shouldn't have issues with this after this PR is merged. Existing clones which don't already contain `LF` line endings may have to reset using ``` git rm --cached -r . git reset --hard ``` to update their files' line endings.
LashaJini
pushed a commit
to LashaJini/auth
that referenced
this issue
Nov 13, 2024
This addresses differences in eol handling between OSes by normalizing the line endings using a `.gitattributes` file. On Windows, cloning the repo and building the containers causes the Postgres container to fail to initialize and shutdown early due to `init_postgres.sh` being copied into the container with Windows line endings. Fixes supabase#1155 New clones of the repo shouldn't have issues with this after this PR is merged. Existing clones which don't already contain `LF` line endings may have to reset using ``` git rm --cached -r . git reset --hard ``` to update their files' line endings.
LashaJini
pushed a commit
to LashaJini/auth
that referenced
this issue
Nov 15, 2024
This addresses differences in eol handling between OSes by normalizing the line endings using a `.gitattributes` file. On Windows, cloning the repo and building the containers causes the Postgres container to fail to initialize and shutdown early due to `init_postgres.sh` being copied into the container with Windows line endings. Fixes supabase#1155 New clones of the repo shouldn't have issues with this after this PR is merged. Existing clones which don't already contain `LF` line endings may have to reset using ``` git rm --cached -r . git reset --hard ``` to update their files' line endings.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Describe the bug
When following the Quick Start documentation to run Gotrue via Docker, the database fails to initialize after running
make dev
on Windows.The Gotrue container builds and runs properly but the Postgres container fails to initialize the database and shuts down early on the initial run.
The log for the Postgres container shows the following message before exiting:
Additionally, if both containers are restarted, the logs from the Gotrue container show that it fails to connect using the admin user that should've been created from the
init_postgres.sh
script.To Reproduce
Clone the repo to a Windows machine and follow the 'If you have docker installed' instructions under Quick Start.
Expected behavior
The Gotrue and Postgres containers should build, run, and communicate without errors.
System information
The text was updated successfully, but these errors were encountered: