question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native client not found when backing up or restoring Postgres 11 database

See original GitHub issue

System 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:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:7

github_iconTop GitHub Comments

144reactions
Tri125commented, Feb 11, 2020

If you click “Client…” image

and then select the empty value in the dropdown: image

you can then restore/backup.

34reactions
jyupanquilcommented, Apr 19, 2020

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. image Note: the PostgreSQL 12 home directory was pointing to *C:\Program Files\PostgreSQL\12*

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found