External Storages - FreeNAS 11.1-U6 disabled SMB1 - Can no longer mount SMB share via the External Storages plugin

Support intro

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 (eg, 12.0.2): 13.0.5.2
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04.1 LTS (Tech and Me Appliance)
Apache or nginx version (eg, Apache 2.4.25): 2.4.29
PHP version (eg, 7.1): 7.2.7

The issue you are facing: I am using the Tech and Me appliance and am trying to mount a FreeNAS 11.1-U6 SMB share. I am unable to mount the share, even though I am confident the settings are correct. I have an older version of the appliance that is running 13.0.5, but it is a Tech and Me appliance based off of Ubuntu 16.04 LTS. Both appliances are experiencing the same issue. I am able to mount the SMB share using sudo mount //${ipAddress}/${shareName} /foo/bar -o username=${userName},password=${password} -t cifs from the command line and I am able to browse the share on other Windows and Linux machines. I am unable to find any logs that pertain to the SMB share mounting and what the error is.

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

Steps to replicate it:

  1. Click on Settings
  2. Click on External Storages
  3. Configure SMB share
  4. Get red error box

The output of your Nextcloud log in Admin > Logging:

{"reqId":"W350wsM5NG8KgtcGvSh8EgAAAAE","level":3,"time":"2018-08-23T08:48:02+00:00","remoteAddr":"10.10.0.15","user":"--","app":"PHP","method":"GET","url":"\/nextcloud","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W350wsM5NG8KgtcGvSh8EwAAAAM","level":3,"time":"2018-08-23T08:48:03+00:00","remoteAddr":"10.10.0.15","user":"--","app":"PHP","method":"GET","url":"\/login","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W350xMM5NG8KgtcGvSh8LwAAADs","level":3,"time":"2018-08-23T08:48:04+00:00","remoteAddr":"10.10.0.15","user":"--","app":"PHP","method":"GET","url":"\/apps\/theming\/favicon?v=0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W3500MM5NG8KgtcGvSh8SwAAADU","level":3,"time":"2018-08-23T08:48:17+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/js\/notifications\/merged.js?v=4a847fc4-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W3509cM5NG8KgtcGvSh8@QAAAMU","level":3,"time":"2018-08-23T08:48:53+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/settings\/apps\/list?category=disabled","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W351LHgwEavh-kP@pxDkkwAAAAE","level":3,"time":"2018-08-23T08:49:48+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/user","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W351LXgwEavh-kP@pxDkqQAAAC0","level":3,"time":"2018-08-23T08:49:49+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/js\/notifications\/merged.js?v=265ece3a-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W351L3gwEavh-kP@pxDk4wAAAKE","level":3,"time":"2018-08-23T08:49:51+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/admin\/externalstorages","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W351MHgwEavh-kP@pxDk7AAAAK0","level":3,"time":"2018-08-23T08:49:52+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/css\/core\/0cac-59de-share.css?v=265ece3a-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-bcM5NG8KgtcGvSh9iAAAABk","level":3,"time":"2018-08-23T09:33:35+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/css\/files\/4fda-59de-merged.css?v=4fda350b-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-bcM5NG8KgtcGvSh9kQAAAC8","level":3,"time":"2018-08-23T09:33:35+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/apps\/theming\/styles?v=0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-bcM5NG8KgtcGvSh9mwAAAD8","level":3,"time":"2018-08-23T09:33:36+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/js\/activity\/activity-sidebar.js?v=265ece3a-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-b8M5NG8KgtcGvSh9oAAAAEs","level":3,"time":"2018-08-23T09:33:37+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/js\/gallery\/scripts-for-file-app.js?v=265ece3a-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-ccM5NG8KgtcGvSh9rAAAAGE","level":3,"time":"2018-08-23T09:33:38+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-ecM5NG8KgtcGvSh9ywAAAJ8","level":3,"time":"2018-08-23T09:33:46+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-g8M5NG8KgtcGvSh9zwAAAAE","level":3,"time":"2018-08-23T09:33:56+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/user","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-g8M5NG8KgtcGvSh9zwAAAAE","level":3,"time":"2018-08-23T09:33:56+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/settings\/user","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-h8M5NG8KgtcGvSh@CwAAAHk","level":3,"time":"2018-08-23T09:34:00+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/admin","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W35-icM5NG8KgtcGvSh@GAAAAJM","level":3,"time":"2018-08-23T09:34:01+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/css\/settings\/0cac-59de-settings.css?v=265ece3a-0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36BnMM5NG8KgtcGvSh@NQAAAAE","level":3,"time":"2018-08-23T09:42:52+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/admin\/externalstorages","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36BncM5NG8KgtcGvSh@UAAAADU","level":3,"time":"2018-08-23T09:42:53+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/heartbeat","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36B4cM5NG8KgtcGvSh@VgAAAAc","level":3,"time":"2018-08-23T09:44:01+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/admin\/logging","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36B4sM5NG8KgtcGvSh@ZwAAACk","level":3,"time":"2018-08-23T09:44:02+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36CA8M5NG8KgtcGvSh@cwAAAEE","level":3,"time":"2018-08-23T09:44:35+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"no app in context","method":"GET","url":"\/settings\/admin\/logging","message":"issuetemplate","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}
{"reqId":"W36CBcM5NG8KgtcGvSh@iAAAAGs","level":3,"time":"2018-08-23T09:44:38+00:00","remoteAddr":"10.10.0.15","user":"ncadmin","app":"PHP","method":"GET","url":"\/avatar\/ncadmin\/64?v=0","message":"PHP Startup: Unable to load dynamic library 'redis.so' (tried: \/usr\/lib\/php\/20170718\/redis.so (\/usr\/lib\/php\/20170718\/redis.so: undefined symbol: igbinary_serialize), \/usr\/lib\/php\/20170718\/redis.so.so (\/usr\/lib\/php\/20170718\/redis.so.so: cannot open shared object file: No such file or directory)) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36","version":"13.0.5.2"}

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

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '10.10.0.50',
    2 => 'nextcloud',
    3 => 'nextcloud',
  ),
  'datadirectory' => '/mnt/ncdata',
  'overwrite.cli.url' => 'https://nextcloud/',
  'dbtype' => 'pgsql',
  'version' => '13.0.5.2',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncadmin',
  'dbpassword' => 'xxxxxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'oc25e565hl6o',
  'mail_smtpmode' => 'smtp',
  'log_rotate_size' => '10485760',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
  ),
  'htaccess.RewriteBase' => '/',
  'maintenance' => false,
);

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

[Thu Aug 23 02:44:37.939368 2018] [mpm_event:notice] [pid 33291:tid 140667797134272] AH00491: caught SIGTERM, shutting down
[Thu Aug 23 02:44:57.395951 2018] [ssl:warn] [pid 1813:tid 140072047799232] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 23 02:44:57.397582 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Thu Aug 23 02:44:57.397606 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: APR compiled version="1.6.2"; loaded version="1.6.3"
[Thu Aug 23 02:44:57.397617 2018] [:warn] [pid 1813:tid 140072047799232] ModSecurity: Loaded APR do not match with compiled!
[Thu Aug 23 02:44:57.397628 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.39 2016-06-14"
[Thu Aug 23 02:44:57.397637 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: LUA compiled version="Lua 5.1"
[Thu Aug 23 02:44:57.397645 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: YAJL compiled version="2.1.0"
[Thu Aug 23 02:44:57.397653 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: LIBXML compiled version="2.9.4"
[Thu Aug 23 02:44:57.397744 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: StatusEngine call: "2.9.2,Apache/2.4.29 (Ubuntu),1.6.2/1.6.3,8.39/8.39 2016-06-14,Lua 5.1,2.9.4,e55c0df8b4d25ab6dd9c78843f5b4c4dcd5265f6"
[Thu Aug 23 02:44:57.468888 2018] [:notice] [pid 1813:tid 140072047799232] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Thu Aug 23 02:44:57.585207 2018] [ssl:warn] [pid 1830:tid 140072047799232] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 23 02:44:57.589437 2018] [mpm_event:notice] [pid 1830:tid 140072047799232] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Thu Aug 23 02:44:57.589485 2018] [core:notice] [pid 1830:tid 140072047799232] AH00094: Command line: '/usr/sbin/apache2'
[Thu Aug 23 02:49:52.660949 2018] [:error] [pid 1832:tid 140071503931136] [client 10.10.0.15:62955] [client 10.10.0.15] ModSecurity: JSON parser error: parse error: premature EOF\n [hostname "10.10.0.50"] [uri "/apps/files_external/globalstorages"] [unique_id "W351MHgwEavh-kP@pxDk@wAAANE"]
[Thu Aug 23 03:42:53.671955 2018] [:error] [pid 1833:tid 140071613036288] [client 10.10.0.15:64553] [client 10.10.0.15] ModSecurity: JSON parser error: parse error: premature EOF\n [hostname "10.10.0.50"] [uri "/apps/files_external/globalstorages"] [unique_id "W36BncM5NG8KgtcGvSh@TAAAAC8"]

Anybody? I would be happy to look into this further on my own if I could figure out how to log the SMB mount requests from Nextcloud.

Hi,
I experience the same issue. My Nextcloud version is 13.0.0.
Yesterday I’ve upgraded my FreeNas box to FreeNAS-11.1-U6 and suddenly NextCloud (and my TV Box) stopped working. I suppose they increased the Minimum SMB protocol. I could not solve the issue yet, any suggestion would be appreciated.

Update:
I’ve switched back to FreeNAS-11.1-U5, both Nextcloud and the tv box works fine.

@oRAirwolf

This seems to be something related to 18.04 LTS.
See here for workaround:

If you’re wanting to use a beta os, try:
https://www.oracle.com/technetwork/server-storage/solaris11/114beta/solaris114beta-4257760.html

Else, something a little more stable could work:
https://www.oracle.com/technetwork/server-storage/solaris11/downloads/install-2245079.html

Don’t see too many Solaris backed deployments these days.

Hmm. I wonder if Nextcloud is using an older SMB protocol that has been deprecated in FreeNAS.

Yep, they disabled SMB1 in FreeNAS:

Known Impacts

SMB1 has been disabled by default for security reasons. If legacy clients are no longer able to connect, type this command in the Shell, then restart the SMB service: ``

sysctl freenas.services.smb.config.server_min_protocol=NT1

If that resolves the issue, you can make that setting permanent by going to System → Tunables →Add Tunable and creating a Tunable with these settings:

Variable: freenas.services.smb.config.server_min_protocol

Value: NT1

Type: Sysctl

I was not able to get the FreeNAS SMB share to mount in Nextcloud, even with FreeNAS set to allow SMB1. It is still giving me an error. I ended up switching to NFS for the mount. I hope somebody can modify the External Storages plugin to use SMB2 or allow you to choose the SMB protocol, as using SMB1 is pretty insecure.

ModSecurity: JSON parser error: parse error: premature EOF\n [hostname "10.10.0.50"] [uri "/apps/files_external/globalstorages"]

Is ModSecurity enabled by default in the vm? @enoch85

I’d try to turn it off temporarily, if that fixes the problem you have to check the ruleset to make it work for the smb connections.

No it’s a up to the user to activate it, nothing that is done by default.

@tflidd @enoch85

Thanks for the response. I did select the extra security options when setting up the VM. Do you know what I need to do to turn off ModSecurity on the Tech and Me VM?

Here’s the modesecurity script: https://github.com/nextcloud/vm/blob/master/static/modsecurity.sh If that was the one, then undo everything in that.

Hi oRAirwolf,

I was also impacted by this error on Ubuntu 16.04 with Nextcloud 13.0.5. To fix the problem while keeping FreeNAS 11.1-U6 SMB1 disabled, I updated, installed smbclient and modified smb.conf like this:

  1. sudo apt update

  2. sudo apt install smbclient

  3. add in global section smb.conf (/etc/samba/smb.conf):

    client min protocol = SMB2
    client max protocol = SMB3

  4. reboot

NOTE: The fix doesn’t work on Ubuntu 18.04

1 Like

Thank you for the response. I am running the Tech and Me Ubuntu 18.04 VM. That is good to know that it fixed it for Ubuntu 16.04, though.

@enoch85 I deployed a new instance of Nextcloud with the latest Tech and Me OVA and did not enable any of the security features or extras. It is still not able to mount an SMB share from FreeNAS.

This same problem of upgrading FreeNAS to 11.1-U6 affected my Nextcloud’s External Storages app, too.

I cannot use the workaround of installing smbclient as described by Raegedoc above, because of the SMB downloading of large files issue described in this github issue. It seems that the PHP implementation of SMB is preferred by Nextcloud.

I think I’ll downgrade the security of SMB on my FreeNAS server because the PHP implementation of SMB in Nextcloud is not keeping up.

@ShaunCurrier Please let me know if you are able to get it working with FreeNAS. I tried downgrading my SMB to allow SMB1 and I am still having the same problem.

@oRAirwolf I followed your steps by adding the Tunable to FreeNAS, and after stop/start of SMB service I am now able to access my CIFS shares.

Are you using the Tech and Me appliance? I tried with mine and I am still getting diddly.

SMB access has been partially broken for over a year- the last version that completely works is 10. @enoch85 has worked extensively with us on it and verified that it’s a bug.

Not stating that this is the cause of your issue, just that there are certainly some SMB issues with versions 11 and 12.

1 Like

For you to know, I had to revert to SMB1 since my HP printer scan2folder “feature” stopped working because of SMB2.

I am not in the mood of buying a new printer for now :frowning: