Bench update error: libmariadbclient.so.18

Hi.

I’am getting the following error after update. Any ideas how to solve?

libmariadbclient.so.18: cannot open shared object file: No such file or directory

Thanks.

Hello @luisfmfernandes,

Maybe this can help you

Thanks for your help but i already tried that.

I also updated mariadb to 10.1 and nothing.

Luis.

Can you share the complete trace?

Hi @anand.

Here is the complete trace:

  Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/saguas/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/saguas/bench-repo/bench/cli.py", line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  File "/home/saguas/bench-repo/bench/cli.py", line 269, in update
    backup_all_sites(bench=bench_path)
  File "/home/saguas/bench-repo/bench/utils.py", line 372, in backup_all_sites
    backup_site(site, bench=bench)
  File "/home/saguas/bench-repo/bench/utils.py", line 368, in backup_site
    run_frappe_cmd('--site', site, 'backup', bench=bench)
  File "/home/saguas/bench-repo/bench/utils.py", line 496, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'site1.local', 'backup')

The trace doesn’t have the error you mentioned

This is the complete error:

 /home/saguas/frappe-bench/env/bin/python: libmariadbclient.so.18: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/saguas/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/saguas/bench-repo/bench/cli.py", line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  File "/home/saguas/bench-repo/bench/cli.py", line 269, in update
    backup_all_sites(bench=bench_path)
  File "/home/saguas/bench-repo/bench/utils.py", line 372, in backup_all_sites
    backup_site(site, bench=bench)
  File "/home/saguas/bench-repo/bench/utils.py", line 368, in backup_site
    run_frappe_cmd('--site', site, 'backup', bench=bench)
  File "/home/saguas/bench-repo/bench/utils.py", line 496, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'site1.local', 'backup')

It starts with the error i mention and follow it is the trace…

If this started suddenly, it is certainly very strange, but does not seem related to erpnext code.

  1. Try restarting MariaDB.
  2. If you recently upgraded MariaDB, try reinstalling libmariadbclient-dev

Yes, it is very strange.

I just update mariadb to solve the problem, but i don’t succeed.

Luis.

Yes, it is very strange.

I just update mariadb to solve the problem, but i don’t succeed.

Luis.

1 Like