pysmb
pysmb copied to clipboard
smb.base.NotConnectedError --Urgent
conn = SMBConnection(username, password, '5CG1094TZH', 'cifstxsha', domain='jia.volvocars.net') print(conn) conn.connect('10.243.172.123', timeout=60) print(conn.auth_result)
Above is my code. and I got error below. Would you please help me to check?
Traceback (most recent call last):
File "Y:\Data\Desktop\11-spider\Battery mudule\Battery_analysis.py", line 50, in
Process finished with exit code 1
Can you drop the domain parameter and use:
conn = SMBConnection(username, password, '5CG1094TZH', 'cifstxsha')
I'm assuming that you have verified that the SMB service "cifstxsha" is running on 10.243.172.123
Can you drop the domain parameter and use:
conn = SMBConnection(username, password, '5CG1094TZH', 'cifstxsha')
I'm assuming that you have verified that the SMB service "cifstxsha" is running on 10.243.172.123
Hi Miketeo,
Thanks for quick respinse. I have tried that. but anothe issue occured as below. I don't know whether is because the user and password has no priviledge to this nas but only to specific direcotory of this nas.
File "Y:/Data/Desktop/11-spider/Battery_mudule/Battery_analysis.py", line 34, in
Process finished with exit code 1
Can you drop the domain parameter and use:
conn = SMBConnection(username, password, '5CG1094TZH', 'cifstxsha')
I'm assuming that you have verified that the SMB service "cifstxsha" is running on 10.243.172.123
It still doesn't work, I accidently close it and now reopen it again.
When the SMBConnection is aborted like this, it usually means that the remote service is not listening on the port. Does the NAS appear on your Windows network?
When the SMBConnection is aborted like this, it usually means that the remote service is not listening on the port. Does the NAS appear on your Windows network?
Sure, I can open it on my computer. It appears on my windows network