External Storage says "smbclient" is not installed

Nextcloud version: 18.0.3
Operating system and version: CentOS 7
Apache or nginx version: Apache 2.4.41
PHP version: 7.2.29

The issue is:

Unable to add external storages. Error displays that reads: “smbclient” is not installed. Mounting of “SMB / CIFS”, “SMB / CIFS using OC login” is not possible. Please ask your system administrator to install it.

I have ran: yum install smbclient
Output of: smbd —version
Is: Version 4.9.1

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

Click Hamburger menu at the top-left, then on External Storages

The output of your Nextcloud log in Admin > Logging:

stat(): stat failed for ftp://xxx:xxx@drive.mattlindsey.com:21/matt/ at /home/mlindsey/public_html/addon/mycloud/apps/files_external/lib/Lib/Storage/StreamWrapper.php#127

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

No related settings in config.php

The output of your Apache/nginx/system log in /var/log/____:

No related logs

Try installing php-smbclient

This failed with the error: Could not find libsmbclient.h

Had to also run: yum install libsmbclient-devel

Then Rgo to: WHM > Module Installers > PHP PECL (Manage) > Search smb and select smbclient and click install.

Now instead of error, I got “smbclient added to php.ini”

Took 12 hours to figure out it was just yum install libsmbclient-devel I was missing, then I could install the smbclient via Manage Modules… I hope this helps someone else on CentOS 7!

1 Like