Openhabian 3 OS issues when mounting network shares

Hi ,

After installing openhabian , OH3 on my pi4 , my OH2.5 environment seems to work properly, means, most things/items/rules etc seems to work fine.
## Release = Raspbian GNU/Linux 10 (buster)
## Kernel = Linux 5.4.83-v7l+
## Platform = Raspberry Pi 4 Model B Rev 1.2
**## 3.0.0 - Release Build **
## openHABian v1.6.3

Unfortunately mounting network drives (fritz NAS) does not work anymore, as it did with OH2.5 openhabian release on same pi4. Same fstab, same parameters //ip-fritz/fritz-share /media/fritz-NAS cifs username=xxx,password=yyy,rw,auto,noserverino,dir_mode=0777,file_mode=0777,uid=1000 0 0

results in following errors:
mount error(2): No such file or directory

/var/log/kern.og
Jan 27 17:32:30 openhabian kernel: [ 6709.800286] Status code returned 0xc0000017 STATUS_NO_MEMORY
Jan 27 17:32:30 openhabian kernel: [ 6709.800328] CIFS VFS: \fritz-IP Send error in SessSetup = -121
Jan 27 17:32:30 openhabian kernel: [ 6709.800371] CIFS VFS: cigs_mount failed w/return code = -2

Same result with
smbclient -L //fritz-IP/fritz-share -U user
Enter WORKGROUP\user’s password:
session setup failed: NT_STATUS_NO_MEMORY

Any idea - if the Debian buster kernel installation might went wrong or how to fix such issue ?
Already uninstalled/installed smb and cifs, but no changes.
Of course, /media/fritz-NAS has been created, several options have been tested as well, sec=ntlm, vers=1/3.0 etc etc

Could you do a trial like

smbclient -d 4 -L //fritz-IP/fritz-share -U user

may be this gives more information about the root cause.

SMB1 is not enabled on my Fritzbox, and min-protocol set to smb3

:~ $ sudo smbclient -d 4 -L //fritz-IP/fritz-share -U user
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section “[global]”
doing parameter min protocol = SMB3
doing parameter workgroup = WORKGROUP
doing parameter wins support = yes
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
WARNING: The “syslog” option is deprecated
doing parameter server role = standalone server
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n password\supdated\ssuccessfully .
doing parameter pam password change = yes
doing parameter map to guest = bad user
pm_process() returned Yes
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section “[global]”
doing parameter min protocol = SMB3
doing parameter workgroup = WORKGROUP
doing parameter wins support = yes
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
WARNING: The “syslog” option is deprecated
doing parameter server role = standalone server
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n password\supdated\ssuccessfully .
doing parameter pam password change = yes
doing parameter map to guest = bad user
pm_process() returned Yes
added interface wlan0 ip=2003:c0:6734:8600:dea6:32ff:fe98:d920 bcast= netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=pi4-IP bcast=192.168.178.255 netmask=255.255.255.0
Client started (version 4.9.5-Debian).
Connecting to fritz-IP at port 445
session request ok
negotiated dialect[SMB3_11] against server[fritz-IP]
got OID=1.3.6.1.4.1.311.2.2.10
Enter WORKGROUP\backup’s password:
GENSEC backend ‘gssapi_spnego’ registered
GENSEC backend ‘gssapi_krb5’ registered
GENSEC backend ‘gssapi_krb5_sasl’ registered
GENSEC backend ‘spnego’ registered
GENSEC backend ‘schannel’ registered
GENSEC backend ‘naclrpc_as_system’ registered
GENSEC backend ‘sasl-EXTERNAL’ registered
GENSEC backend ‘ntlmssp’ registered
GENSEC backend ‘ntlmssp_resume_ccache’ registered
GENSEC backend ‘http_basic’ registered
GENSEC backend ‘http_ntlm’ registered
GENSEC backend ‘http_negotiate’ registered
GENSEC backend ‘krb5’ registered
GENSEC backend ‘fake_gssapi_krb5’ registered
Got challenge flags:
Got NTLMSSP neg_flags=0xe0890231
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_SEAL
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_TARGET_TYPE_DOMAIN
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_TARGET_INFO
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP_NEGOTIATE_56
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62080215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62080215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62080215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
session setup ok
tconx ok

Sharename       Type      Comment
---------       ----      -------
IPC$            IPC       IPC Service
fritz-share   Disk      FRITZ!Box

Reconnecting with SMB1 for workgroup listing.
Connecting to fritz-IP at port 139
session request ok
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
Failed to connect with SMB1 – no workgroup available

according to the smbclient manual:

   -m|--max-protocol protocol
       This allows the user to select the highest SMB protocol level that smbclient will use to connect to the server. By default this is set to NT1, which is the highest available
       SMB1 protocol. To connect using SMB2 or SMB3 protocol, use the strings SMB2 or SMB3 respectively. Note that to connect to a Windows 2012 server with encrypted transport
       selecting a max-protocol of SMB3 is required.

you need to add

-m SMB3

in case you do not want to use SMB1.

same result
but, I added min protocol to smb3 in global section of smb.conf and now the mount command
sudo mount -v -t cifs -o username=xxx,password=yyy,sec=ntlmv2 //fritz-IP/fritz-share/ /media/fritz-NAS
is working, but
mount -a with fstab
//fritz-IP/fritz-share /media/fritz-NAS cifs username=user,password=yyy, rw,auto,nounix,noserverino,dir_mode=0777,file_mode=0777 0 0
still not working
Jan 27 20:26:19 openhabian kernel: [17139.711059] CIFS: Attempting to mount //fritz-IP/fritz-share
Jan 27 20:26:19 openhabian kernel: [17139.711118] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Jan 27 20:26:19 openhabian kernel: [17139.737795] Status code returned 0xc000006d STATUS_LOGON_FAILURE
Jan 27 20:26:19 openhabian kernel: [17139.737859] CIFS VFS: \fritz-IPSend error in SessSetup = -13
Jan 27 20:26:19 openhabian kernel: [17139.737913] CIFS VFS: cifs_mount failed w/return code = -13

add

vers=3.0

to the mount options in /etc/fstab

ok - I think I found the error.
added vers=3.1.1 , but the issue seems to be the inverted commas enclosing username and password. As I just copied the fstab from former installation, this is somehow amazing. Just a tiny detail. Anyway - thanks for your support Wolfgang