I beat my head against the wall for hours trying to figure out why external storage wasn’t working with my Nextcloud instance after I migrated it over to CentOS 7. All I kept getting was a very unhelpful
There was an error with message: Empty response from the server.
I installed all the libraries multiple times. I tried different versions of smbclient and php-smbclient but the error kept happening! Eventually I decided to check the samba logs of my samba server. Sure enough:
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
The username and password I was using was correct. I read on some forum (sorry, no link) to put something in the Workgroup field. Voila! As soon as I populated the workgroup field in Nextcloud for my SMB shares, they all worked!
2 thoughts on “Nextcloud External Files SMB not working – Empty Response from Server”
Thanks. Saved my life. This tip is specially important because when using smbclient cli nextcloud will authenticate against samba share even without the “domaind” (workgroup) name set in the external share storage config. When using php-smbclient it won’t and you need to insert the “domain” or “workgroup” info in the share. Thank you.
Thanks. This was indeed also my problem.