-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ignore FSDriverRequired when attempting to get DFS information for a BadNetworkName handler #196
Comments
I think that adding a bit more info about your setup can help with troubleshooting this. Is this a "simple" Windows share, do you have distributed shares... Azure Files, Samba server. Are username and password non-empty? Cheers |
@adiroiban Is a share on AWS FSx for Windows Server (aka SMB share on Windows Server). User credentials are Active Directiry's credentials. Thanks |
This error should only occur if Can you 100% verify that |
Yes, I've just print the variables out. 😄 |
register_session(server=host, username=username, password=password)
with open_file(r"\\" + os.environ['fsxDns'] + "\\" + eKey, mode="w") as fd:
fd.write(eObjBody) In this example you have |
When running [ERROR] FSDriverRequired: Received unexpected status from the server: A volume has been accessed for which a file system driver is required that has not yet been loaded. (3221225884) STATUS_FS_DRIVER_REQUIRED: 0xc000019c
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 59, in lambda_handler
with open_file(r"\\" + os.environ['fsxDns'] + "\\" + eKey, mode="w", username=username, password=password) as fd:
File "/opt/python/smbclient/_os.py", line 369, in open_file
raw_fd = file_class(path, mode=mode, share_access=share_access, desired_access=desired_access,
File "/opt/python/smbclient/_io.py", line 377, in __init__
tree, fd_path = get_smb_tree(path, **kwargs)
File "/opt/python/smbclient/_pool.py", line 327, in get_smb_tree
referral = dfs_request(ipc_tree, "\\%s\\%s" % (path_split[0], path_split[1]))
File "/opt/python/smbclient/_pool.py", line 209, in dfs_request
response = tree.session.connection.receive(request)
File "/opt/python/smbprotocol/connection.py", line 1006, in receive
raise SMBResponseException(response)END RequestId: d3b4dc90-feb1-4518-a5d3-ff9a5b52b271 |
Ok so we are at least past the authentication problems which is nice. The trouble here is that it's trying to do a DFS request but something is going wrong. What version of smbprotocol do you have installed? |
smbprotocal version is 1.9.0 (latest) |
It seems like it is failing at https://github.com/jborean93/smbprotocol/blob/v1.9.0/smbclient/_pool.py#L327 which occurs when the initial result is |
ahhhh got it, I missed to add the share name in that string. Many thanks! |
I'm going to keep this open as a reminder to ignore |
Hi, the following error occurred:
Failed to authenticate with server: SpnegoError (1): SpnegoError (16): Operation not supported or available, Context: Retrieving NTLM store without NTLM_USER_FILE set to a filepath, Context: Unable to negotiate common mechanism
My code:
Traceback:
Any help will be appericated. Thank you :D
The text was updated successfully, but these errors were encountered: