Be able to add SMB/CIFS storage
when I try to configure SMB/CIFS it states "smbclient" is not installed
"smbclient" is not installed
ownCloud version: (see ownCloud admin page)
Updated from an older ownCloud or fresh install:
fresh install (see "steps to reproduce")
List of activated apps:
Deleted files 0.6.3
External storage support 0.2.3
First Run Wizard 1.1
LDAP user and group backend 0.6.1
Mail Template Editor 0.1
PDF Viewer 0.7
Provisioning API 0.2
Share Files 0.6.2
Text Editor 0.4
Video Viewer 0.1.3
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'oc9u9a0r0p6q',
'passwordsalt' => '---',
'secret' => '---',
0 => 'localhost',
1 => '192.168.1.69',
2 => 'owncloud',
3 => 'localhost',
'datadirectory' => '/var/www/owncloud/data',
'overwrite.cli.url' => 'https://192.168.1.69/owncloud',
'dbtype' => 'mysql',
'version' => '188.8.131.52',
'dbname' => 'oc',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => '---',
'logtimezone' => 'UTC',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'ldapIgnoreNamingRules' => false,
Are you using external storage, if yes which one: local/smb/sftp/...
Would like to use SMB but doesn't work
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Will be using AD after SMB getting to work
ed: 'admin' (Remote IP: '192.168.1.59)","level":2,"time":"2015-09-30T12:46:22+00:00"}
get applications: cURL error 28: Resolving timed out after 5515 milliseconds","level":3,"time"
@LukasReschke I'm not quite sure if this is packaging related. In the files_external app a check for the smbclient is done:
which is AFAIK not needed when using the new php5-libsmbclient.
workaround for owncloud/core#19479
Commit owncloud/vm@e0ddcef now pulls in smbclient into the community vm.
I consider this a workaround until the issue with files_external/lib/smb.php#L297-L303 is resolved.
My understanding is what @RealRancor assumed: smbclient should not be used at all. But I am not sure. Maybe we have code paths that use both smbclient and php5-libsmbclient?
We use php-libsmbclient when available and fallback to smbclient
Ignoring the (probably) outdated dependency check it should work without smbclient if libsmbclient is working but I've never tested it
Until this is fixed properly, it worked for me to just change /var/www/owncloud/apps/files_external/lib/smb.php, so that the line just reads "return true;" in the function at the end under " * check if smbclient is installed".
I have both the php5 libsmbclient and smbclient and cifs-utils installed, so I don't know if it works with just the php5 libsmbclient. I have verified I am successfully able to connect to samba shares, though.
FYI Update on my previous comment - I uninstalled smbclient and cifs-utils, so only php5-libsmbclient was left installed and an smb external storage still works fine. This is OwnCloud 8.2.2 on Debian 8.2.