External storage notworking

help

#1

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
- enable external storage app
- try to connect to a samba share

Expected behaviour
- show files of the samba share

Actual behaviour
I get the green dot in the admin page and the samba share appears in my file list but I get the error "Storage not available"

Server configuration
Operating system: debian 7.11
Web server: apache 2.2
Database: mysql 5.5.54
PHP version: 5.4.45
ownCloud version: 9.0.3
Updated from an older ownCloud or fresh install: update
Special configuration: external sotrage

ownCloud log (data/owncloud.log)

{"reqId":"j+Uh60hC\/KtL0OSAzdm\/","remoteAddr":"62.94.229.113","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Invalid hostname\",\"Code\":0,\"Trace\":\"#0 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/apps\\\/files_external\\\/lib\\\/smb.php(276): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#1 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(434): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#2 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/apps\\\/files_external\\\/lib\\\/smb.php(613): OC\\\\Files\\\\Storage\\\\Common->test()\\n#3 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/apps\\\/files_external\\\/lib\\\/config.php(231): OC\\\\Files\\\\Storage\\\\SMB->test(false, true)\\n#4 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(258): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false, true)\\n#5 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/apps\\\/files_external\\\/controller\\\/globalstoragescontroller.php(181): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig), true)\\n#6 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(1, 'scancloud', 'smb', 'password::passw...', Array, Array, Array, Array, 100, true)\\n#7 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#8 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#9 \\\/mnt\\\/owncloud_data\\\/cloud.caritasrovigo.org\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object)
Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

Notice I installed php5-libsmcloud as suggested in the documentation.
I think this package is broken and the module isn't enabled.

ls -l /etc/php5/mods-available/
totale 32
-rw-r--r-- 1 root root 68 gen  9  2015 curl.ini
-rw-r--r-- 1 root root 64 gen  9  2015 gd.ini
-rw-r--r-- 1 root root 84 gen  9  2015 intl.ini
lrwxrwxrwx 1 root root 45 feb  7 15:36 libsmbclient.ini -> /usr/share/php5/libsmbclient/libsmbclient.ini
-rw-r--r-- 1 root root 72 gen  9  2015 mcrypt.ini
-rw-r--r-- 1 root root 71 gen  9  2015 mysqli.ini
-rw-r--r-- 1 root root 70 gen  9  2015 mysql.ini
-rw-r--r-- 1 root root 66 gen  9  2015 pdo.ini
-rw-r--r-- 1 root root 74 gen  9  2015 pdo_mysql.ini
ls -l /usr/share/php5/libsmbclient/libsmbclient.ini
ls: impossibile accedere a /usr/share/php5/libsmbclient/libsmbclient.ini: File o directory non esistente
locate libsmbclient.ini

#2

Hi,

from the issue template you have filled out:

Before posting please snip make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

9.0.3 is far to oudated to report issues with. If you're using current / stable versions you're avoiding that your reporting issues already fixed in newer ownCloud versions and that your causing effort of users helping here.


#3

BTW I found out it was my mistake.
There was an error in samba.log: the path of the folder was wrong.
So it was not possible to list the content of the shared folder nor to write in it.
In owncloud.log the error is
{"reqId":"068aEaVMqfwoSNYv\/ZqY","remoteAddr":"192.168.1.111","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Invalid hostname\",\"Code\":0,\"Trace\":\"#0 <cut>
which doesn't help at all understanding the issue (Invalid hostname).

Thank you anyway for the replay.