PHP Startup: Unable to load dynamic library '“smbclient.so”

Hi,

i would like to fix the security warning i get in Administration → Overview.

The warning is: Missing index “fs_size” in table “oc_filecache”

I found in this forum the following solution:

sudo -u www-data /usr/bin/php /var/www/html/nextcloud/occ db:add-missing-indices

But when i’m doing this i get the following error:

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
Could not open input file: /var/www/html/nextcloud/occ

I also found a forum post with the same issue but with no solution.

Does anyone knows what to do?

Which operation system and version do you use?
Perhaps Ubuntu 20.04 LTS or Debian Bullseye?
I think there is no package “php-smbclient” with “smbclient.so” anymore.

Sorry i do not have a solution.
Perhaps you can read this

Part "Install php smbclient"
Perhaps you can only download “smbclient.so” and put it in the correct directory.

Hi Devnull,

i’m using Ubuntu 20.04 LTS.
Thanks for your tutorial - i’ve tried the whole smb process but it has no effect.

Found also this for you.

If you not really need SMB you can use local or other backends.

I use “local” because i use storage from the same server and without user management.

Thanks, but i do need smb. Right now its working - little buggy - but working :-/

1 Like