Smbclient Error in 10.6

After upgrading from 10.5 to 10.6, I can’t figure out how to clear the external storage app error:

  • The library libsmbclient is not available.

I didn’t have this problem with ownCloud 10.5.

My platform is ubuntu 20.04.3 with PHP 7.4.

There seems to be an enormous amount of pitfalls in configuring the environment for ownCloud 10.6. I proceeded with instructions here…

https://doc.owncloud.com/server/10.8/admin_manual/installation/manual_installation/server_prep_ubuntu_20.04.html#libsmbclient-php-library

During the extra steps, I noticed

Installing '/usr/lib/php/20200930/smbclient.so'

Then in /var/log/php/errors.log

[11-Dec-2021 09:09:02 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library 'smbclient.so' (tried: /usr/lib/php/20190902/smbclient.so (/usr/lib/php/20190902/smbclient.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/smbclient.so.so (/usr/lib/php/20190902/smbclient.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Here was the solution for me:

pecl uninstall smbclient
apt install php7.4-dev
pecl -d php_suffix=7.4 install smbclient
service apache2 restart

Also note, the “External Storage: Windows Network Drives” is an enterprise app, is not needed to connect to SMB external storage.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.