# CIFS / Storage not available

**URL:** <https://help.nextcloud.com/t/cifs-storage-not-available/3057>\
**Category:** ℹ️ Support\
**Created:** [September 7, 2016, 3:21pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057 "2016-09-07T15:21:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schorschie](https://help.nextcloud.com/letter_avatar/schorschie/32/5_5575768a8748004e209b776fc1b2916d.png) [@Schorschie](https://help.nextcloud.com/u/Schorschie)\
**Post date:** [September 7, 2016, 3:21pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/1 "2016-09-07T15:21:02Z")

</div>

Hi,  
if I map an external Storage (CIF share from an w2k12 server or a NAS) I will see the green dot at the backend. When I access on the folder I got an popup “storage not available”.

- nextcloud10.0 on debian, smbclient is installed.

Has anybody CIFS shares successfully mapped?  
Any idears or tips?

Thx a lot.

* * *

## Exception: {“Exception”:“OCP\Files\StorageNotAvailableException”,“Message”:“Connection unsuccessful”,“Code”:0,“Trace”:"#0 /var/www/html/apps/files\_external/lib/Lib/Storage/SMB.php(171): OCA\Files\_External\Lib\Storage\SMB-\>getFileInfo(’’)\n#1 /var/www/html/lib/private/Files/Storage/Common.php(437): OCA\Files\_External\Lib\Storage\SMB-\>stat(’’)\n#2 /var/www/html/apps/files\_external/lib/Lib/Storage/SMB.php(438): OC\Files\Storage\Common-\>test()\n#3 /var/www/html/apps/files\_external/lib/config.php(233): OCA\Files\_External\Lib\Storage\SMB-\>test(false, false)\n#4 /var/www/html/apps/files\_external/lib/Controller/StoragesController.php(257): OC\_Mount\_Config::getBackendStatus(’\\OCA\\Files\_Exte…’, Array, false, false)\n#5 /var/www/html/apps/files\_external/lib/Controller/UserGlobalStoragesController.php(121): OCA\Files\_External\Controller\StoragesController-\>updateStorageStatus(Object(OCA\Files\_External\Lib\StorageConfig), false)\n#6 [internal function]: OCA\Files\_External\Controller\UserGlobalStoragesController-\>show(2, false)\n#7 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(160): call\_user\_func\_array(Array, Array)\n#8 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(90): OC\AppFramework\Http\Dispatcher-\>executeController(Object(OCA\Files\_External\Controller\UserGlobalStoragesController), ‘show’)\n#9 /var/www/html/lib/private/AppFramework/App.php(111): OC\AppFramework\Http\Dispatcher-\>dispatch(Object(OCA\Files\_External\Controller\UserGlobalStoragesController), ‘show’)\n#10 /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main(‘UserGlobalStora…’, ‘show’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#11 [internal function]: OC\AppFramework\Routing\RouteActionHandler-\>\_\_invoke(Array)\n#12 /var/www/html/lib/private/Route/Router.php(293): call\_user\_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)\n#13 /var/www/html/lib/base.php(967): OC\Route\Router-\>match(’/apps/files\_ext…’)\n#14 /var/www/html/index.php(48): OC::handleRequest()\n#15 {main}",“File”:"/var/www/html/apps/files\_external/lib/Lib/Storage/SMB.php",“Line”:133}

---

<div class="post-metadata">

**Author:** ![riegerCLOUD](https://help.nextcloud.com/user_avatar/help.nextcloud.com/riegercloud/32/53593_2.png) [@riegerCLOUD](https://help.nextcloud.com/u/riegerCLOUD)\
**Post date:** [September 7, 2016, 7:23pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/2 "2016-09-07T19:23:15Z")

</div>

Hi Schorschie,  
please have a look at: [Mount your NAS to nextcloud](https://www.c-rieger.de/#excursion41)  
We mount a share to users data-directory in nextcloud ~ 650 GB of 1.5 TB in use.  
Do not forget to set ‘filesystem\_check\_changes’ =\> 1, in config.php and run occ:filescan at least for the dedicated user.  
Cheers, Carsten

---

<div class="post-metadata">

**Author:** ![Schorschie](https://help.nextcloud.com/letter_avatar/schorschie/32/5_5575768a8748004e209b776fc1b2916d.png) [@Schorschie](https://help.nextcloud.com/u/Schorschie)\
**Post date:** [September 8, 2016, 7:15pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/3 "2016-09-08T19:15:33Z")

</div>

Hi Carsten,  
thanks for answer. Your tip, and your website, did´t help due this issue.

Any other idears? Is it an own-/nextcloud bug? Or are missing some requirements?  
Why doesn´t work that, after is is “green” configured in the backend?  
Cheers, Schorschie

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/5_5575768a8748004e209b776fc1b2916d.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [September 8, 2016, 10:48pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/4 "2016-09-08T22:48:25Z")

</div>

There was a problem which is a bit similar:  
[https://forum.owncloud.org/viewtopic.php?f=38&p=119575](https://forum.owncloud.org/viewtopic.php?f=38&p=119575)  
It was solved but we don’t know how.

---

<div class="post-metadata">

**Author:** ![vitorrolo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vitorrolo/32/1005_2.png) [@vitorrolo](https://help.nextcloud.com/u/vitorrolo)\
**Post date:** [September 14, 2016, 4:02pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/5 "2016-09-14T16:02:31Z")

</div>

Hi Schorschie,

I’m having exactly the same issue.  
Did you solve it ?

Regards,  
Vitor

---

<div class="post-metadata">

**Author:** ![Schorschie](https://help.nextcloud.com/letter_avatar/schorschie/32/5_5575768a8748004e209b776fc1b2916d.png) [@Schorschie](https://help.nextcloud.com/u/Schorschie)\
**Post date:** [September 14, 2016, 5:55pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/6 "2016-09-14T17:55:39Z")

</div>

Hi, I didn’t find a solution.

One time i got a connection.

- Share on w2k12 on C partition. (Not an extra partition, like E:)
- At nextcloud backend I filled the IP of the server, the share AND an exist folder in the share. I know it sounds curios.

Actually I use FTP to a NAS, that works.

If you have some news to resolve it, please let us know… 🙂

---

<div class="post-metadata">

**Author:** ![vitorrolo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vitorrolo/32/1005_2.png) [@vitorrolo](https://help.nextcloud.com/u/vitorrolo)\
**Post date:** [September 15, 2016, 1:55pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/7 "2016-09-15T13:55:04Z")

</div>

Hi,

I have this issue fixed on my server.  
My Nextcoud server is a CentOS with php55 installed.  
(instructions on [https://www.softwarecollections.org/en/scls/rhscl/php55/](https://www.softwarecollections.org/en/scls/rhscl/php55/)).

As mentioned in [https://github.com/owncloud/core/issues/24460](https://github.com/owncloud/core/issues/24460) , it is recomended to use libsmbclient-php. I assumed I had it, but it was the package for PHP5.4.

You have to build php5-libsmbclient for your distribution. Instructions on [https://github.com/owncloud/documentation/issues/2172](https://github.com/owncloud/documentation/issues/2172) .

In my case the problem got solved.

Regards,  
Vitor

---

<div class="post-metadata">

**Author:** ![guth858](https://help.nextcloud.com/letter_avatar/guth858/32/5_5575768a8748004e209b776fc1b2916d.png) [@guth858](https://help.nextcloud.com/u/guth858)\
**Post date:** [September 16, 2016, 6:52am UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/8 "2016-09-16T06:52:19Z")

</div>

I had the a similar issue getting it to connect to SBS 2011 shares. I had to add “[extension=smbclient.so](http://extension=smbclient.so)” to my php.ini file to get it to work. This was with php 7.0.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:55pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/9 "2024-11-06T20:55:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 3:28pm UTC](https://help.nextcloud.com/t/cifs-storage-not-available/3057/10 "2024-12-04T15:28:55Z")

</div>


