Unable to connect to SMB shares on 18.0.4

Nextcloud version: 18.0.4
Operating system and version: Ubuntu 20.04 LTS
PHP version: 7.4

The issue you are facing:
Just freshly installed 18.0.4 on Ubuntu 20.04 LTS and used TechandMe script (as Im using this on a VMware). Ive used the same thing on previous v18 Nextcloud instances.

I now cannot connect to any of my SMB shares. If I add the share in External Storage it shows the green check box acting like it accepts it, same exact info as the 18.0.3 implementation which works. But on 18.0.4 it doesnt work. Ive tried various different methods of IP, Hostname, Putting a domain in or not, doesnt matter.

When going to the files, The share appears, if you click on it you will get the following screenshot:

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. Add an SMB Share in External Storage (in my case a windows share
  2. Go to Files in Nextcloud
  3. Click on share created

The output of your Nextcloud log in Admin > Logging:

{"reqId":"aMbxmiAEVJZOTpPksXK4","level":4,"time":"2020-04-25T20:10:22-04:00","remoteAddr":"192.168.0.1","user”:”USERNAME”,”app":"webdav","method":"GET","url":"/remote.php/webdav/Main","message":
{"Exception":"Sabre\\DAV\\Exception","Message":"Invalid request for / (InvalidTypeException)","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":418,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},
{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},
{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":82,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},
{"file":"/var/www/nextcloud/remote.php","line":165,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":659,"Previous":
{"Exception":"Icewind\\SMB\\Exception\\InvalidTypeException","Message":"Invalid request for / (InvalidTypeException)","Code":21,"Trace":[{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":66,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::"},
{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":78,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},
{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":212,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},
{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":263,"function":"open","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},
{"file":"/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":416,"function":"read","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":299,"function":"fopen","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":314,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":299,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1160,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":996,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},
{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":416,"function":"fopen","class":"OC\\Files\\View","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},
{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->"},
{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},
{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":82,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},
{"file":"/var/www/nextcloud/remote.php","line":165,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php","Line":30},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","version":"18.0.4.2","id":"XXXXXXXXXX"}

Please take look at this: