Issues with Nextcloud 13 and SMB share

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.2

Operating system and version (eg, Ubuntu 17.04): Linux fileshare 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux

Apache or nginx version (eg, Apache 2.4.25): 2.4.45 (Debian)
PHP version (eg, 7.1): PHP 7.0.27-1

The issue you are facing:
When trying to open certain documents, either format error appear or the document just doesn.t open.
PDF throws the error PDF.js v1.9.426 (build: 2558a58d) Message: Unexpecred server response (0) while retrieving PDF.
Other files just give an HTTP page cannot be displayed error.

All files are located on a SMB share.

Also via the NextCloud client it just don’t sync because it can’t retrieve files throwing errors.

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

Steps to replicate it:

  1. Did a new install based in Ubuntu 16.04.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"MrpyY2iwpFxF18RBdU89","level":2,"time":"2018-05-11T19:10:08+00:00","remoteAddr":"84.241.207.231","user":"--","app":"user_ldap","method":"POST","url":"\/index.php\/login","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.0 Mobile\/15E148 Safari\/604.1","version":"13.0.2.1"}
{"reqId":"MrpyY2iwpFxF18RBdU89","level":2,"time":"2018-05-11T19:10:08+00:00","remoteAddr":"84.241.207.231","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'purser' (Remote IP: '84.241.207.231')","userAgent":"Mozilla\/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.0 Mobile\/15E148 Safari\/604.1","version":"13.0.2.1"}
{"reqId":"318eEO4XA9fq44KnZs0z","level":2,"time":"2018-05-11T19:25:17+00:00","remoteAddr":"84.241.207.231","user":"--","app":"user_ldap","method":"POST","url":"\/index.php\/login?user=purser","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.0 Mobile\/15E148 Safari\/604.1","version":"13.0.2.1"}
{"reqId":"318eEO4XA9fq44KnZs0z","level":2,"time":"2018-05-11T19:25:17+00:00","remoteAddr":"84.241.207.231","user":"--","app":"core","method":"POST","url":"\/index.php\/login?user=purser","message":"Login failed: 'purser' (Remote IP: '84.241.207.231')","userAgent":"Mozilla\/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.0 Mobile\/15E148 Safari\/604.1","version":"13.0.2.1"}
{"reqId":"l3jI00zsGTVojKECb7cD","level":3,"time":"2018-05-11T19:42:44+00:00","remoteAddr":"172.15.10.2","user":"ycadmin","app":"PHP","method":"POST","url":"\/index.php\/apps\/user_ldap\/ajax\/wizard.php","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at \/var\/www\/nextcloud\/apps\/user_ldap\/lib\/LDAP.php#293","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/66.0.3359.139 Safari\/537.36","version":"13.0.2.1"}
{"reqId":"NKDFWFZR8VdamDLv0fm8","level":2,"time":"2018-05-12T09:41:10+00:00","remoteAddr":"92.110.65.54","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'ycadmin' (Remote IP: '92.110.65.54')","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.1 Safari\/605.1.15","version":"13.0.2.1"}
{"reqId":"cdGmC1G6QoTVhuIKhVq2","level":2,"time":"2018-05-12T09:42:51+00:00","remoteAddr":"92.110.65.54","user":"--","app":"core","method":"POST","url":"\/index.php\/login?user=ycadmin","message":"Login failed: 'admin' (Remote IP: '92.110.65.54')","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/11.1 Safari\/605.1.15","version":"13.0.2.1"}
{"reqId":"ozQzn9aGBbJe84Kn82oA","level":2,"time":"2018-05-12T15:06:59+00:00","remoteAddr":"10.10.100.56","user":"23863315-DE21-4813-89A9-739D6AEDA82B","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"ozQzn9aGBbJe84Kn82oA","level":2,"time":"2018-05-12T15:06:59+00:00","remoteAddr":"10.10.100.56","user":"23863315-DE21-4813-89A9-739D6AEDA82B","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"ozQzn9aGBbJe84Kn82oA","level":2,"time":"2018-05-12T15:06:59+00:00","remoteAddr":"10.10.100.56","user":"23863315-DE21-4813-89A9-739D6AEDA82B","app":"core","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Login failed: 'eto' (Remote IP: '10.10.100.56')","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"ozQzn9aGBbJe84Kn82oA","level":2,"time":"2018-05-12T15:06:59+00:00","remoteAddr":"10.10.100.56","user":"--","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"ozQzn9aGBbJe84Kn82oA","level":2,"time":"2018-05-12T15:06:59+00:00","remoteAddr":"10.10.100.56","user":"--","app":"core","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Login failed: 'eto' (Remote IP: '10.10.100.56')","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"QvJQL6XHQAtTPSG1Z3Au","level":2,"time":"2018-05-12T15:07:00+00:00","remoteAddr":"10.10.100.56","user":"--","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}
{"reqId":"QvJQL6XHQAtTPSG1Z3Au","level":2,"time":"2018-05-12T15:07:00+00:00","remoteAddr":"10.10.100.56","user":"--","app":"core","method":"PROPFIND","url":"\/remote.php\/dav\/files\/23863315-DE21-4813-89A9-739D6AEDA82B\/","message":"Login failed: 'eto' (Remote IP: '10.10.100.56')","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.2.1"}

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

root@fileshare:/var/log/apache2# less /var/www/nextcloud/config/config.php

<?php
$CONFIG = array (
  'trusted_domains' =>
  array (

  ),
  'dbtype' => 'mysql',
  'version' => '13.0.2.1',
  'logtimezone' => 'UTC',
  'installed' => true,

  'ldapIgnoreNamingRules' => false,
  'maintenance' => false,
  'loglevel' => 2,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.release.channel' => 'stable',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'theme' => '',
  'mail_smtpauth' => 1,
);
/var/www/nextcloud/config/config.php (END)

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

PASTE HERE

We’ve fixed this issue. It seemed that NextCloud uses SMBv1 by default, and this is not supported with a Windows Server with Data Deduplication enabled.

We had to add these lines to our samba.conf file.
client min protocol = SMB2
client max protocol = SMB3

1 Like

Hi!
We have the same issue. But i can’t seem to find samba.conf or any other place to edit this preference.
We are running Ubuntu Server 16.04.
Do you know where I could look?

/robin

I found the file (/etc/samba/smb.conf)

added these lines under [global]
max protocol = SMB2
client max protocol = SMB2

Works now! :slight_smile: