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

can not run laradock postgres #3178

Closed
pndx opened this issue Mar 19, 2022 · 4 comments
Closed

can not run laradock postgres #3178

pndx opened this issue Mar 19, 2022 · 4 comments

Comments

@pndx
Copy link

pndx commented Mar 19, 2022

Description:

Expected Behavior:

Context information:

Output of git rev-parse HEAD

df4ccf5eb7857d459e2b1d15c17ac07655d030bf

Output of docker version

Docker version 20.10.12, build e91ed57

Output of docker-compose version

docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.9.0
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020

System info: Mac, Windows or Linux. Include which disto/version

MacOS Monterey 12.2.1

Steps to reproduce the issue:

1.Run laradock_postgres in docker desktop and it won't start

Stacktrace & Additional info:

The log data in doker desktop as below.

PostgreSQL Database directory appears to contain a database; Skipping initialization


2022-03-19 01:43:09.191 UTC [1] FATAL:  database files are incompatible with server

2022-03-19 01:43:09.191 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 14.2.
@pndx pndx added the Type: Bug label Mar 19, 2022
@bobbyshaw
Copy link
Contributor

Hi @pndx This is because the default version of Postgres is now 14 and your install was previously using version 13.

The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 14.2.

You might choose to downgrade the version but updating your .env file with the line:

POSTGRES_VERSION=13

Alternatively you would need to go through the upgrade process. I'm not familiar with how to do that myself.

@pndx
Copy link
Author

pndx commented Apr 18, 2022

@bobbyshaw Thanks for reply. i will try it.

@stale
Copy link

stale bot commented Jul 31, 2022

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jul 31, 2022
@stale
Copy link

stale bot commented Sep 20, 2022

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants