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.

libreadline.so.5: cannot open shared object file: No such file or directory

See original GitHub issue

System information:

  • Operating system (distribution) and version : Ubuntu 20.04.1 LTS
  • DBeaver version : 7.2.2.202010041557

Connection specification:

  • Database name and version : MySQL 8
  • Driver name : MySQL
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? : No

Describe the problem you’re observing:

While trying to Restore database (import) new database .sql file (from production database) into my local database, I received this error:- /snap/dbeaver-ce/80/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory

Same thing happen if I tried to use Execute script (Execute script with native client).

Steps to reproduce, if exist:

  1. Right click on database, Go to Tools, then click Restore database.
  2. Database import window shows up, input database .sql file.
  3. Click Start button.
  4. Task error window shows up with errors.

Include any warning/errors/backtraces from the logs

  1. Error logs in Database import window:-
Task 'MySQL restore' started at Thu Oct 15 12:25:22 MYT 2020
/snap/dbeaver-ce/80/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory

Task 'MySQL restore' finished at Thu Oct 15 12:25:22 MYT 2020
2020-10-15 12:25:22.553 - IO error: Process failed (exit code = 127). See error log.
2020-10-15 12:25:22.554 - java.io.IOException: Process failed (exit code = 127). See error log.
	at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.validateErrorCode(AbstractNativeToolHandler.java:208)
	at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.executeProcess(AbstractNativeToolHandler.java:188)
	at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.doExecute(AbstractNativeToolHandler.java:248)
	at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.lambda$0(AbstractNativeToolHandler.java:54)
	at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
  1. Error log (Broken pipe):-

a) Exception stack trace:-

java.io.IOException: Broken pipe
	at java.io.FileOutputStream.writeBytes(Native Method)
	at java.io.FileOutputStream.write(FileOutputStream.java:326)
	at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
	at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler$BinaryFileTransformerJob.run(AbstractNativeToolHandler.java:426)

b) Session data:-

eclipse.buildId=unknown
java.version=1.8.0_265
java.vendor=Private Build
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
devotoarecommented, Jun 10, 2021

Still an issue with pop_OS and Version 21.1.0.202105300349

0reactions
Matvey16commented, May 28, 2022

This was the problem with snap confinement. The latest package 22.0.5 should have resolved the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Error while loading shared libraries: libreadline.so.5
8). to fix this, first you should check the library directory ( /usr/lib ) if a version version of the file is exist...
Read more >
error while loading shared libraries: libreadline.so.7: cannot ...
so.7: cannot open shared object file: No such file or directory Error. Exiting. The install_dependencies.sh is:
Read more >
libreadline.so.5: No such file or directory - Super User
error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory.
Read more >
[SOLVED]GDB Server for Linux - libreadline.so.5 error
JLinkExe: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory.
Read more >
Error while loading shared libraries: libreadline.so.5:-django
The required file is not in directory. usually this happened because the update which replaced the certain version of the file and with...
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