DDWRT r44538 - samba3 issues

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
blackest
DD-WRT Novice


Joined: 25 Oct 2012
Posts: 8

PostPosted: Sat Oct 24, 2020 16:31    Post subject: DDWRT r44538 - samba3 issues Reply with quote
Hi,

Quick version info:
Router ModelTP-Link ARCHER-C7 v2
Firmware VersionDD-WRT v3.0-r44538 std (10/13/20)

Seems like I have two issues with samba:
1. From time to time (even a couple times a day) I cannot mount samba share to windows or any other device in network, that includes nextcloud instance.
Workaround is to ether change share name or restart smb3 service via ssh with service samba3 restart command.
What is strange, whenever samba share cannot be mounted, all processes on router seems to be up and running:
root@DD-WRT:~# ps | grep smb
3733 root 1388 S ksmbd.mountd -c /tmp/smb.conf -u /tmp/smb.db
3734 root 1416 S ksmbd.mountd -c /tmp/smb.conf -u /tmp/smb.db
3737 root 0 SW [ksmbd-br1]
3738 root 0 SW [ksmbd-br0]
3739 root 0 SW [ksmbd-eth0]
3772 root 0 SW [ksmbd:62941]

Question: What causes periodical 'freezes' of samba ?
Note,


2. I'm getting those messages in syslog whenever I reach share files via my nextcloud instance (nextcloud 20):
Oct 24 16:04:35 _gateway kernel: [ 140.100000] ksmbd: create_smb2_pipe:1805: Unable to open RPC pipe: -22
Oct 24 16:04:37 _gateway kernel: [ 142.480000] ksmbd: __rpc_method:85: Unsupported RPC: lsarpc
Question: what is causing those messages ?


SMB version:
server min protocol = SMB2_02
server max protocol = SMB3_11


Regards,
b.
Sponsor
neuviemeporte
DD-WRT Novice


Joined: 02 Feb 2021
Posts: 1

PostPosted: Tue Feb 02, 2021 20:45    Post subject: Reply with quote
I encountered similar problems with samba shares with build v3.0-r44715 std (11/30/2020) on my Asus RT-N18U.

I killed one of the ksmbd.mountd processes and it got immediately restarted. I killed the other one and it remained dead. Also, samba shares started working normally again.

I'm wondering if there's a problem where DD-WRT is spawning two instances of the daemon and they keep interfering with each other?
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Tue Feb 02, 2021 21:05    Post subject: Reply with quote
A lot of changes since r44715, especially in the past few weeks for ksmbd. Should be running r45632, ksmbd 3.3.3 plus additional work done, or wait for the next build whenever it releases with ksmbd 3.3.4 and more.
egorenar
DD-WRT Novice


Joined: 26 Dec 2019
Posts: 30

PostPosted: Sun Feb 07, 2021 10:31    Post subject: Reply with quote
I'm also having a lot of problems with ksmbd.
Especially with iOS devices, i can't get it mounted most of the time. But sometimes it works. BTW the user space smbd from Entware is also causing problems. SO ksmbd is not alone at least.

For example:
[ 2440.943723] ksmbd: smb2_check_sign_req:8209: bad smb2 signature
[ 2441.603146] ksmbd: smb2_check_sign_req:8209: bad smb2 signature
[ 2441.616731] ksmbd: smb2_check_sign_req:8209: bad smb2 signature
[ 2441.725669] ksmbd: smb2_check_sign_req:8209: bad smb2 signature
[ 2441.740590] ksmbd: smb2_check_sign_req:8209: bad smb2 signature
[ 2494.164853] ksmbd: smb2_check_sign_req:8209: bad smb2 signature

Or this:
[ 3773.485979] ksmbd: smb2_sess_setup:1682: Not support authentication
[ 3773.526897] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate
[ 3774.780099] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate
[ 3788.407401] ksmbd: smb2_sess_setup:1682: Not support authentication
[ 3788.530420] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate
[ 3789.875574] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate
[ 3790.676177] ksmbd: __rpc_method:91: Unsupported RPC: ping.txt
[ 3790.681922] ksmbd: create_smb2_pipe:1966: Unable to open RPC pipe: -22
[ 3809.237801] ksmbd: smb2_sess_setup:1682: Not support authentication
[ 3809.350189] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate
[ 3810.557566] ksmbd: build_sess_rsp_noextsec:972: server challenge is not assigned in negotiate


But my Linux PC has no issues. I guess because samba implementation on my Linux PC is compatible with the one on my router but iOS uses a different implementation. Only a guess so. Crying or Very sad

_________________
Netgear R9000
-------------------------------------------------------------
Firmware: DD-WRT v3.0-r45767 std (02/17/21)
Overclocking Frequency 1700 MHz
-------------------------------------------------------------
2.4 GHz - Disabled
5 GHz VHT80 AC/N-Mixed Channel 100 UU(+6)
ACK Timing 450, Tx Power 30dbm
SU Beamforming ON, MU Beamforming OFF, U-APSD ON
Protection Mode RTS/CTS, RTS Threshold 784
Beacon Interval 300, DTIM Interval 2
-------------------------------------------------------------
External USB3 drive (extra PSU) + Entware
VPN client, dnsmasq, samba(Entware), nginx, znc
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum