Native client not found when backing up or restoring Postgres 11 database
See original GitHub issueSystem information:
- Windows 10 Home 1909 64bit
- DBeaver version 6.3.4.202002011957
Connection specification:
- PostgreSQL 11 (on Heroku)
- PostgreSQL JDBC Driver
Describe the problem you’re observing:
When trying to make a backup of a Postgres 11 database, or restoring one, I get the following error:
Task execution failed
Reason:
Native client home 'postgresql-x64-11' not found
Steps to reproduce, if exist:
Right click on a database -> tools -> backup Select all views Click start
OR
Right click on a database -> tools -> restore Select backup file Click start
Include any warning/errors/backtraces from the logs
2020-02-05 18:33:54.614 - org.jkiss.dbeaver.model.exec.DBCException: Native client home 'postgresql-x64-11' not found
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.validateClientHome(AbstractNativeToolHandler.java:104)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.doExecute(AbstractNativeToolHandler.java:229)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.lambda$0(AbstractNativeToolHandler.java:52)
at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Partial workaround
Changing the client in the backup process to PostgreSQL Binaries
as suggested here https://github.com/dbeaver/dbeaver/issues/4106#issuecomment-416759677 seems to resolve the backing up part of the problem. However, when restoring from a backup created in this way and using PostgreSQL Binaries
for the client, I get an error saying [archiver] input file does not appear to be a valid archive
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:7
Top Results From Across the Web
Not able to backup of postgres DB from DBeaver - Server Fault
Then in DBeaver, go to Database->Driver Manager, choose "PostgreSQL" then "Edit" then navigate to the "Native Client" tab, then "Add Home" ...
Read more >How to fix Error executing process Utility 'pg_restore' not found ...
I want to restore database backup and I'm using ubuntu 20.04, dbeaver and postgresql 12. ... running command which psql resulting in /usr/bin/psql...
Read more >Database backup/restore - DBeaver Documentation
DBeaver supports native database backup/restore functions for the following databases: PostgreSQL; MySQL. The native backup restore differs from the standard ...
Read more >Documentation: 15: pg_dump - PostgreSQL
pg_dump is a utility for backing up a PostgreSQL database. It makes consistent backups even if the database is being used concurrently. pg_dump...
Read more >A Complete Guide to PostgreSQL Backup & Recovery
How do I back up and restore a PostgreSQL database? ... It also makes a backup of the entire cluster so you do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you click “Client…”
and then select the empty value in the dropdown:
you can then restore/backup.
I solved this by adding a new home directory. At first followed the steps @Tri125 recommended, selecting browse instead of the blank option, then clicked the Add Home button and selected the bin directory (C:\Program Files\PostgreSQL\12\bin in my case) then selected that created home as the client to do the backup and it worked fine. Note: the PostgreSQL 12 home directory was pointing to *C:\Program Files\PostgreSQL\12*