External storage with Netapp

Support information

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 15
Operating system and version: Ubuntu 18
Apache 2
PHP 7

The issue you are facing: Can not mount an external storage between nextcloud and a netapp disk array

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

Steps to replicate it:

  1. Mount share with app External storage support 1.6.0
  2. Error

The output of your Nextcloud log in Admin > Logging:

{"reqId":"5bZFgbtko1kx6KXx0xyF","level":3,"time":"2019-03-22T14:27:15+00:00","remoteAddr":"81.250.227.215","user":"admin_sys1","app":"no app in context","method":"PUT","url":"\/index.php\/apps\/files_external\/globalstorages\/16","message":{"Exception":"Icewind\\SMB\\Exception\\ConnectionRefusedException","Message":"\/","Code":111,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":61,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::","args":[{"1":"Icewind\\SMB\\Exception\\ForbiddenException","2":"Icewind\\SMB\\Exception\\NotFoundException","13":"Icewind\\SMB\\Exception\\ForbiddenException","16":"Icewind\\SMB\\Exception\\FileInUseException","17":"Icewind\\SMB\\Exception\\AlreadyExistsException","20":"Icewind\\SMB\\Exception\\InvalidTypeException","21":"Icewind\\SMB\\Exception\\InvalidTypeException","22":"Icewind\\SMB\\Exception\\InvalidArgumentException","28":"Icewind\\SMB\\Exception\\OutOfSpaceException","39":"Icewind\\SMB\\Exception\\NotEmptyException","110":"Icewind\\SMB\\Exception\\TimedOutException","111":"Icewind\\SMB\\Exception\\ConnectionRefusedException","112":"Icewind\\SMB\\Exception\\HostDownException","113":"Icewind\\SMB\\Exception\\NoRouteToHostException"},111,"\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":73,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":181,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":[false,"smb:\/\/192.168.26.151\/CIFS$\\VB03_Bureautique\\Commun\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php","line":113,"function":"stat","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["smb:\/\/192.168.26.151\/CIFS$\\VB03_Bureautique\\Commun\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php","line":109,"function":"getStat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->","args":["\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":164,"function":"stat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->","args":["\/"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":264,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":["\/"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":451,"function":"stat","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":[""]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":578,"function":"test","class":"OC\\Files\\Storage\\Common","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/config.php","line":240,"function":"test","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":[false,true]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Controller\/StoragesController.php","line":256,"function":"getBackendStatus","class":"OC_Mount_Config","type":"::","args":["\\OCA\\Files_External\\Lib\\Storage\\SMB",{"host":"192.168.26.151","share":"CIFS$\\VB03_Bureautique\\Commun","root":"","domain":"seac.local","user":"admincloud","password":"","auth":{"__class__":"Icewind\\SMB\\BasicAuth"}},false,true]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Controller\/GlobalStoragesController.php","line":179,"function":"updateStorageStatus","class":"OCA\\Files_External\\Controller\\StoragesController","type":"->","args":[{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},true]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"update","class":"OCA\\Files_External\\Controller\\GlobalStoragesController","type":"->","args":[16,"TEST","smb","password::password",{"host":"192.168.26.151","share":"CIFS$\\VB03_Bureautique\\Commun","root":"","domain":"seac.local","user":"admincloud","password":""},{"encrypt":true,"previews":true,"enable_sharing":false,"filesystem_check_changes":1,"encoding_compatibility":false,"readonly":false},[],[],100,true]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_External\\Controller\\GlobalStoragesController"},"update"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_External\\Controller\\GlobalStoragesController"},"update"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_External\\Controller\\GlobalStoragesController","update",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"16","_route":"files_external.global_storages.update"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"id":"16","_route":"files_external.global_storages.update"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"id":"16","_route":"files_external.global_storages.update"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/files_external\/globalstorages\/16"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Exception\/Exception.php","Line":30,"CustomMessage":"Error while getting file info"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko\/20100101 Firefox\/65.0","version":"15.0.5.3"

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

<?php
$CONFIG = array (
  'instanceid' => 'oczvam4ucdjv',
  'passwordsalt' => 'uDLd/WM8QoUerMYvaxkb0Tg0fGzWWC',
  'secret' => 'mhuETAE+LDYNiywGLLbJGzmdJn9fPHWk3qY34KxntwwIei6Z',
  'trusted_domains' =>
  array (
    0 => '192.168.26.15',
    1 => '',
    2 => 'l',
    3 => '',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '15.0.5.3',
  'overwrite.cli.url' => 'http://192.168.26.15/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'admin',
  'dbpassword' => '',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'ldapUserCleanupInterval' => 5,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'webmail.seac-guiraud.fr',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => '',
  'mail_smtpport' => '25',
);

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

[Fri Mar 22 16:14:40.363085 2019] [authz_core:error] [pid 7979] [client 81.250.227.215:33709] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Mar 22 16:52:47.295234 2019] [autoindex:error] [pid 8074] [client 81.250.227.214:40058] AH01276: Cannot serve directory /var/www/nextcloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Fri Mar 22 16:56:27.870471 2019] [authz_core:error] [pid 1312] [client 81.250.227.214:40797] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata

Nobody ???

It looks like you need adjust your NetApp’s svm export policy to include your servers nfs ip address…