Skip to content

[BUG] [网络存储功能] 在对端samba协议为 V3 时,检测失败,不能上传文件 #385

@LSP0123

Description

@LSP0123

操作系统(如MacOS 10.15)

windows 11 25H2

网络环境(移动,联通,电信,移动宽带,联通宽带,电信宽带,等等..)

与公网网络环境无关

问题描述(简要描述发生的问题)

在对端samba 为 V3 时,检测失败,不能上传文件到网络存储

复现步骤(详细描述导致问题产生的操作步骤,如果能稳定复现)

1.A设备:windows11 25H2 B设备:飞牛OS 0.9.30 开启smb共享设置如下

Image

2.在picaqt中添加网络存储并测试连接

Image

3.修改飞牛OS的设置如下

Image

再次在pica内测试上传

Image

日志提交(问题截图或者日志,日志在设置中设置为INFO,在帮助界面打开日志目录)

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'

Traceback (most recent call last):
  File "task\upload_smb.py", line 38, in Connect
  File "smb\SMBConnection.py", line 129, in connect
  File "smb\SMBConnection.py", line 649, in _pollForNetBIOSPacket
  File "nmb\base.py", line 54, in feedData
  File "nmb\base.py", line 75, in _processNMBSessionPacket
  File "smb\base.py", line 128, in onNMBSessionMessage
  File "smb\smb_structs.py", line 230, in decode
  File "smb\smb_structs.py", line 257, in _decodePayload
  File "smb\smb_structs.py", line 363, in decode
smb.smb_structs.ProtocolError: Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'


2025-10-16 17:51:24,992 - task_upload.py[line:106] - INFO: task_id:2, type_id:1
2025-10-16 17:51:24,992 - base.py[line:104] - INFO: Authentication with remote machine "" for user "admin" will be using NTLM v2 authentication (with extended security)
2025-10-16 17:51:25,007 - upload_smb.py[line:43] - ERROR: Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'

Traceback (most recent call last):
  File "task\upload_smb.py", line 38, in Connect
  File "smb\SMBConnection.py", line 129, in connect
  File "smb\SMBConnection.py", line 649, in _pollForNetBIOSPacket
  File "nmb\base.py", line 54, in feedData
  File "nmb\base.py", line 75, in _processNMBSessionPacket
  File "smb\base.py", line 128, in onNMBSessionMessage
  File "smb\smb_structs.py", line 230, in decode
  File "smb\smb_structs.py", line 257, in _decodePayload
  File "smb\smb_structs.py", line 363, in decode
smb.smb_structs.ProtocolError: Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'


2025-10-16 17:51:25,860 - task_upload.py[line:106] - INFO: task_id:3, type_id:1
2025-10-16 17:51:25,861 - base.py[line:104] - INFO: Authentication with remote machine "" for user "admin" will be using NTLM v2 authentication (with extended security)
2025-10-16 17:51:25,874 - upload_smb.py[line:43] - ERROR: Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'

Traceback (most recent call last):
  File "task\upload_smb.py", line 38, in Connect
  File "smb\SMBConnection.py", line 129, in connect
  File "smb\SMBConnection.py", line 649, in _pollForNetBIOSPacket
  File "nmb\base.py", line 54, in feedData
  File "nmb\base.py", line 75, in _processNMBSessionPacket
  File "smb\base.py", line 128, in onNMBSessionMessage
  File "smb\smb_structs.py", line 230, in decode
  File "smb\smb_structs.py", line 257, in _decodePayload
  File "smb\smb_structs.py", line 363, in decode
smb.smb_structs.ProtocolError: Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS

==================== SMB Message ====================

Command: 0x72 (SMB_COM_NEGOTIATE) 

Status: NTSTATUS=0x00000000 

Flags: 0x88 

Flags2: 0xC003 

PID: 17460 

UID: 0 

MID: 1 

TID: 0 

Security: 0x0000000000000000 

Parameters: 2 bytes 

b'ffff' 

Data: 0 bytes 

b'' 

==================== SMB Data Packet (hex) ====================

b'ff534d4272000000008803c0000000000000000000000000000034440000010001ffff0000'


2025-10-16 17:51:33,083 - task_upload.py[line:106] - INFO: task_id:4, type_id:1
2025-10-16 17:51:33,084 - base.py[line:104] - INFO: Authentication with remote machine "" for user "admin" will be using NTLM v2 authentication (with extended security)
2025-10-16 17:51:33,111 - base.py[line:130] - INFO: Now switching over to SMB2 protocol communication
2025-10-16 17:51:33,111 - base.py[line:254] - INFO: SMB2 dialect negotiation successful
2025-10-16 17:51:33,114 - base.py[line:366] - INFO: Performing NTLMv2 authentication (on SMB2) with server challenge "b'028cb79f94722e06'"
2025-10-16 17:51:33,114 - base.py[line:369] - INFO: Performing NTLMv2 authentication (on SMB2) with server challenge "b'028cb79f94722e06'"
2025-10-16 17:51:33,115 - base.py[line:399] - INFO: Server supports SMB signing
2025-10-16 17:51:33,115 - base.py[line:415] - INFO: SMB signing deactivated. SMB messages will NOT be signed.
2025-10-16 17:51:33,138 - base.py[line:267] - INFO: Authentication (on SMB2) successful!
2025-10-16 17:51:41,698 - main_view.py[line:384] - INFO: Exit screen index:0
2025-10-16 17:51:41,716 - sql_server.py[line:161] - INFO: db: close conn:book

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions