Comments (7)
As the docker-compose is using latest tag of postgres and the postgres 16 is now the latest, postgres container will fail to run with the following error:
linkwarden-postgres-1 | 2023-09-19 13:34:48.347 UTC [1] FATAL: database files are incompatible with server
linkwarden-postgres-1 | 2023-09-19 13:34:48.347 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 16.0 (Debian 16.0-1.pgdg120+1).
This is viable workaround:
# docker-compose.yml
image: postgres:15
from linkwarden.
As the docker-compose is using latest tag of postgres and the postgres 16 is now the latest, postgres container will fail to run with the following error:
linkwarden-postgres-1 | 2023-09-19 13:34:48.347 UTC [1] FATAL: database files are incompatible with server linkwarden-postgres-1 | 2023-09-19 13:34:48.347 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 16.0 (Debian 16.0-1.pgdg120+1).
This is viable workaround:
# docker-compose.yml image: postgres:15
Applied the same change to fix:
2023-11-22 15:28:59.169 UTC [1] FATAL: database files are incompatible with server
2023-11-22 15:28:59.169 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 16.1 (Debian 16.1-1.pgdg120+1).
from linkwarden.
Hello @stanthewizzard,
AFAIK there shouldn't be any restrictions on which postgres version you are using.
from linkwarden.
after update ... doesn't work anymore in my case
I can revert to postfres and give it a try
from linkwarden.
I'm already with this workaround
thanks :)
from linkwarden.
found it
In docker-compose.yml you could change
db-data:/var/lib/postgresql/data:rw
to this
db-data:/var/lib/postgresql@16/data:rw
Delete image and run
docker-compose up -d
one more time
from linkwarden.
AFAIK, to upgrade a major postgres version, we will have to do it manually, either by dumping our database and reimporting it or using pg_upgrade
. https://www.postgresql.org/docs/current/upgrading.html
from linkwarden.
Related Issues (20)
- duplicate tags
- Custom Generated Title on Preserved Format Widow
- Add functionality HOT 1
- Open a pre-populated 'Add Link' page from a URL.
- Can't Login after user Creation HOT 6
- What is this variable "NEXTAUTH_SECRET" needed for? HOT 2
- Multiples Enhancements propositions ? HOT 6
- Add a button to copy link to clipboard button
- Are snapshots overwritten? HOT 1
- How to add EMAIL_SERVER string in manual installation HOT 2
- Reverse proxy into a basePath HOT 2
- Link directly to bookmark in app
- database could not receive data from client: Connection reset by peer
- How to enable SSL inside the docker container HOT 1
- Subdirectory hosting HOT 1
- Extremely high ressource usage - Is that normal? HOT 3
- Requesting demo instance (or even screenshots) for Linkwarden HOT 1
- Integrate Monolith to save pages as html
- Feature Request: MariaDB possibility instead of postgres
- Docker failiure with App/Database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkwarden.