-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS client error #583
Comments
@mmakassikis I don't have Mac device. Do you have it and can reproduce this issue ? |
Yes, I can reproduce it on my M1 Mac mini. I only test the latest macOS version 13.0.1 and 12.1 , mount the share, do some exploration and read operation, then click unmount button in Finder, the system would be dead, I must long press power button to reboot. What other information can I provide? |
Ah.. Unfortunately I don't have a MacBook... |
@cwbsw I'd suggest to report it to Apple as you might have found a way to crash macos kernel. |
@cwbsw Can you give me tcpdump(or wireshark) on problem reproduction ? |
I reproduced this issue and capture the traffic, and also capture the traffic made by samba server with similar procedure, hope this to be helpful. |
Any update about this? ksmbd seems to be broken for macOS clients and it isn't only ARM. Under macOS Ventura (Intel machine) it always says the password is incorrect while a Windows client can connect to the same share with the same username/password without issues. |
@TCB13 Other user can connect ksmbd server with the latest MacOS. Have you ever tried it with the latest ksmbd ? |
Well maybe you're right as my device is running ksmbd version 3.4.6. I'm sorry for bothering you. |
For future reference, here the SMB capture of two different macOS machines trying to connect to the same ksmbd server version 3.4.6. macOS Mojave is able to properly connect and macOS Ventura fails. |
@TCB13 Okay. But packets are encrypted, I can not check what error happen.
|
@namjaejeon here is the new capture. macOS stays stuck at this: Window bounces like of the user/password was incorrect. |
@TCB13 Okay, I can not find any clue in packets. I want to compare the packets with samba. Could you please capture it against samba ? |
There you go, macOS Ventura + Samba 4.9.5-Debian with |
Well vacations already end... Any update on this matter? |
I can not find any clue on dump packets. I need to check it with Mac machine that has the latest OS. But I don't have Mac... |
I hope a developer who has a Mac machine look into this... |
I am discussing this issue with the Mac's smb3 client maintainer (Apple developer). He wants 'packet trace' information that can be dumped in the following order:
|
Hello @namjaejeon . I've the information requested, now as the logs / sysdiagnose might contain personal information that I don't feel comfortable sharing here. Do you mind sending me an email? Thanks. |
@TCB13 Okay. I will cc you in mail. Thanks for your help! |
@TCB13 Could you please share print logs after enabling debug mode like the following ? echo all > /sys/class/ksmbd-control/debug |
Hey, what logs am I supposed to see and where? It doesn't seem to log anything else than before to both /var and the syslog. |
@TCB13 there is no ksmbd print log when command "dmesg" ?
|
@namjaejeon I decided to create a new Debian VM and configure everything from scratch once again. And guess what, everything worked even with version 3.4.2. I was able to connect and transfer files.
Thanks for the patience, I guess this is closed. |
@TCB13 Sorry? Your problem is fixed ? |
@TCB13 You can connect ksmbd using Mac client after enable/disable encryption ? (i.e. smb3 encryption = disabled or no need to set this parameter) |
It seems so, I'm not sure if this got fixed by some of the latest macOS smaller updates or was the clean VM, but it fact it is working now... and everything we did up to this point it was a waste of time. |
I'll test both cases tomorrow , just to be sure. |
@TCB13 Okay, Please check this and I will wait for this result. Thanks~! |
@namjaejeon it seems to be working with |
@TCB13 Okay. Thanks for your check! |
I use Arch linux with kernel 6.0.2 as server, and share a directory with read-only mode, I got these errors.
And then macOS would hang up, sorry I don't know how to debug it.
The text was updated successfully, but these errors were encountered: