Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

pg_dump: aborting because of server version mismatch #18

Open
pl0tz3nh0tz opened this issue Apr 9, 2018 · 2 comments
Open

pg_dump: aborting because of server version mismatch #18

pl0tz3nh0tz opened this issue Apr 9, 2018 · 2 comments

Comments

@pl0tz3nh0tz
Copy link

Hi,
I'm using a docker container with the current version of postgres (v. 10.3). When I run the restore tool in the pgadmin4 container I have a version problem:

pg_dump: server version: 10.3 (Debian 10.3-1.pgdg90+1); pg_dump version: 9.4.15
pg_dump: aborting because of server version mismatch 
@demesiooliveira
Copy link

demesiooliveira commented Apr 23, 2018

Olá pessoal,

O problema esta no dockerfile, ao instalar o cliente do postgres, não está sendo atualizado o repositório. Eu resolvi temporariamente o problema assim:

$ docker-compose exec pgadmin bash 
# apt-get update 
# apt-get install wget 
# apt-get install software-properties-common
# add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" 
# wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - 
# apt-get update 
# apt-get install postgresql-client
# pg_dump -V 

Ref.: laradock/laradock#778

@fenglc você poderia atualizar o repositório pf ?

@ismaelaraujo
Copy link

Resolvido, falta só atualizar o repositório.
@fenglc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants