jcifs.smb.SmbUnsupportedOperationException: Operation is not supported with the negotiated capabilities

0 users found this article helpful

Symptoms

A user is unable to access a drive in the "Files" tab of the Workspace.

A message is shown: Unable to list files from folder.

In the awingu-api.service.log file, a similar error can be seen:

 

2022-09-20 10:04:15.685953 awnode01 awingu-api.service[uwsgi:1727]: Internal Server Error: /api/v2/drives/1/dirents/
Traceback (most recent call last):
  File "./drives/backends/cifsbackend.py", line 165, in _get_attributes
    return self._connection.get_attributes(path)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/awingufileproxy/awingu_cifs_backend.py", line 133, in get_attributes
    return self._execute_action('get_attributes', path)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/awingufileproxy/awingu_cifs_backend.py", line 109, in _execute_action
    raise UnsupportedOperation(err)
awingufileproxy.awingu_cifs_backend.UnsupportedOperation: jcifs.smb.SmbUnsupportedOperationException: Operation is not supported with the negotiated capabilities
    at jcifs.smb.SmbTransportImpl.checkStatus2(SmbTransportImpl.java:1443)
    at jcifs.smb.SmbTransportImpl.checkStatus(SmbTransportImpl.java:1578)
    at jcifs.smb.SmbTransportImpl.sendrecv(SmbTransportImpl.java:1027)
    at jcifs.smb.SmbTransportImpl.send(SmbTransportImpl.java:1549)
    at jcifs.smb.SmbSessionImpl.sessionSetupSMB2(SmbSessionImpl.java:549)
    at jcifs.smb.SmbSessionImpl.sessionSetup(SmbSessionImpl.java:483)
    at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:369)
    at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:347)
    at jcifs.smb.SmbTreeImpl.treeConnect(SmbTreeImpl.java:611)
    at jcifs.smb.SmbTreeConnection.connectTree(SmbTreeConnection.java:614)
    at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:568)
    at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:489)
    at jcifs.smb.SmbTreeConnection.connect(SmbTreeConnection.java:465)
    at jcifs.smb.SmbTreeConnection.connectWrapException(SmbTreeConnection.java:426)
    at jcifs.smb.SmbFile.ensureTreeConnected(SmbFile.java:559)
    at jcifs.smb.SmbFile.exists(SmbFile.java:859)
    at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1077)
    at com.awingu.ClientHandler.run(CifsBackend.java:373)


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
    return self.dispatch(request, *args, **kwargs)
  File "./drives/views.py", line 388, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/opt/awingu/awingu-core/virtualenv/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "./drives/views.py", line 692, in dirents
    retry_not_found=False))
  File "./drives/views.py", line 490, in _get_dirent
    dirent = backend.list(path, retry_not_found=retry_not_found)
  File "./drives/backends/decorators.py", line 287, in list
    result = self._backend.list(path, retry_not_found=retry_not_found)
  File "./drives/backends/__init__.py", line 46, in log_function_call
    return function(self, *args, **kwargs)
  File "./drives/backends/cifsbackend.py", line 224, in list
    props_dict = self._get_attributes(path, retry_not_found)
  File "./drives/backends/__init__.py", line 46, in log_function_call
    return function(self, *args, **kwargs)
  File "./drives/backends/cifsbackend.py", line 172, in _get_attributes
    path, e))
drives.backends.errors.DriveBackendError: Cannot get file or folder "/someuser/Downloads", error: jcifs.smb.SmbUnsupportedOperationException: Operation is not supported with the negotiated capabilities
    at jcifs.smb.SmbTransportImpl.checkStatus2(SmbTransportImpl.java:1443)
    at jcifs.smb.SmbTransportImpl.checkStatus(SmbTransportImpl.java:1578)
    at jcifs.smb.SmbTransportImpl.sendrecv(SmbTransportImpl.java:1027)
    at jcifs.smb.SmbTransportImpl.send(SmbTransportImpl.java:1549)
    at jcifs.smb.SmbSessionImpl.sessionSetupSMB2(SmbSessionImpl.java:549)
    at jcifs.smb.SmbSessionImpl.sessionSetup(SmbSessionImpl.java:483)
    at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:369)
    at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:347)
    at jcifs.smb.SmbTreeImpl.treeConnect(SmbTreeImpl.java:611)
    at jcifs.smb.SmbTreeConnection.connectTree(SmbTreeConnection.java:614)
    at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:568)
    at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:489)
    at jcifs.smb.SmbTreeConnection.connect(SmbTreeConnection.java:465)
    at jcifs.smb.SmbTreeConnection.connectWrapException(SmbTreeConnection.java:426)
    at jcifs.smb.SmbFile.ensureTreeConnected(SmbFile.java:559)
    at jcifs.smb.SmbFile.exists(SmbFile.java:859)
    at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1077)
    at com.awingu.ClientHandler.run(CifsBackend.java:373)

Cause

There is a problem somewhere on the back-end, not on the Parallels Secure Workspace appliance.

Resolution

Currently, there is no specific resolution available.

Was this article helpful?

Tell us how we can improve it.