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 Path

See original GitHub issue

System information:

  • Operating system: Linux Mint 20.1 xfce
  • DBeaver version: Version 7.3.3.202101161839

Connection specification:

  • Database: PostgreSQL 13.1
  • Driver name: PostgreSQL

Describe the problem you’re observing:

Unable to create Backup/Restore because of invalid native client path

Steps to reproduce, if exist:

  1. Edit Connection
  2. Edit Driver Settings
  3. Native Client (tab)
  4. Add Home (button)
  5. Select Native Client path which is in my case /usr/ but the path showed as /run/user/1000/doc/6112140e/usr (this is wrong I think)
  6. Tried to make a backup, but I got this error:
Error executing process
  Cannot run program "/run/user/1000/doc/6112140e/usr/bin/pg_dump" (in directory "/run/user/1000/doc/6112140e/usr/bin"): error=2, No such file or directory
  Cannot run program "/run/user/1000/doc/6112140e/usr/bin/pg_dump" (in directory "/run/user/1000/doc/6112140e/usr/bin"): error=2, No such file or directory
    error=2, No such file or directory
    error=2, No such file or directory

Terminal log:

$ ls -lh /usr/bin/pg_*
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_archivecleanup -> ../share/postgresql-common/pg_wrapper
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_basebackup -> ../share/postgresql-common/pg_wrapper
-rwxr-xr-x 1 root root  14K Oct 14 00:03 /usr/bin/pg_buildext
-rwxr-xr-x 1 root root 1.3K Nov  5  2018 /usr/bin/pg_config
-rwxr-xr-x 1 root root 6.3K Nov 10 15:45 /usr/bin/pg_config.libpq-dev
-rwxr-xr-x 1 root root 6.2K Jun 29  2017 /usr/bin/pg_conftool
-rwxr-xr-x 1 root root  35K Sep 29 15:24 /usr/bin/pg_createcluster
-rwxr-xr-x 1 root root  24K Nov 12 14:37 /usr/bin/pg_ctlcluster
-rwxr-xr-x 1 root root 7.6K Mar  2  2020 /usr/bin/pg_dropcluster
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_dump -> ../share/postgresql-common/pg_wrapper
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_dumpall -> ../share/postgresql-common/pg_wrapper
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_isready -> ../share/postgresql-common/pg_wrapper
-rwxr-xr-x 1 root root 5.2K Feb 24  2020 /usr/bin/pg_lsclusters
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_receivewal -> ../share/postgresql-common/pg_wrapper
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_receivexlog -> ../share/postgresql-common/pg_wrapper
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_recvlogical -> ../share/postgresql-common/pg_wrapper
-rwxr-xr-x 1 root root 5.8K Mar  1  2019 /usr/bin/pg_renamecluster
lrwxrwxrwx 1 root root   37 Nov 12 14:37 /usr/bin/pg_restore -> ../share/postgresql-common/pg_wrapper
-rwxr-xr-x 1 root root  34K Oct 22 15:16 /usr/bin/pg_upgradecluster
-rwxr-xr-x 1 root root 9.1K Oct 13 21:37 /usr/bin/pg_virtualenv

$ pg_dump --version
pg_dump (PostgreSQL) 13.1 (Ubuntu 13.1-1.pgdg20.04+1)

The other software able execute pg_dump without any problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
mbnoimicommented, Mar 13, 2021

The bug still occurs with flatpak version 21.0.0.202102281712

$ flatpak info --show-permissions io.dbeaver.DBeaverCommunity
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;ssh-auth;
devices=dri;
filesystems=home;host-os;host;

[Session Bus Policy]
org.freedesktop.Notifications=talk

[Environment]
PATH=/app/clients/bin:/app/jre/bin:/usr/bin
1reaction
mbnoimicommented, Dec 3, 2020

This bug continues to occur in flatpak Version 7.3.0.202011291229 while it doesn’t occur in gz Version 7.3.0.202011291229 (dbeaver-ce-7.3.0-linux.gtk.x86_64.tar.gz)

EDIT: I forgot to mention; This issue occurs although I gave DBeaver full access to files system as shown below:

$ flatpak info --show-permissions io.dbeaver.DBeaverCommunity
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;ssh-auth;
devices=dri;
filesystems=home;host-os;host;

[Session Bus Policy]
org.freedesktop.Notifications=talk

[Environment]
PATH=/app/clients/bin:/app/jre/bin:/usr/bin
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing - SQL Server Native Client - Microsoft Learn
One way to install multiple packages in what seems to the user to be a single installation is to use chainer and bootstrapper...
Read more >
Download the Native Client SDK - Chrome Developers
Follow the steps below to download and install the Native Client SDK. Prerequisites. Python 2.7. Make sure that the Python executable is in...
Read more >
Extension with a native client - adding PATH doesn't work
The extension works with MPVplayer. When installing, I get the error: Make sure it is installed and in your path... Someone suggested to...
Read more >
How to install Open In's Native Client in Windows OS - YouTube
This small tutorial walk you through installing the open-in's native client on Windows operation system. This native client is mandatory for ...
Read more >
How to fix - DBeaver Native client is not specified for connection
Native client is not specified for connection Download Mysql or Postgres or (appropriate database ) ... Paste the path in there such as ......
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