-
Notifications
You must be signed in to change notification settings - Fork 288
access.smb Cannot Connect to Azure Files SMB Shares #1440
Comments
Hi Guy |
Thanks, @cdujeu. As an update, I switched over to using
Is it possible that when you create a workspace, you get temporary access to it in the session, but if the session gets reloaded, you lose that temporary access? In any even, I can confirm that the workspace access errors at least seem unrelated to the changes I made to As an aside: I have some changes I'd like to PR into |
Hello @GuyPaddock
Concerning problem of deletion multiple files, could you please try with disabled CLI in Pydio? (Pydio >> Settings >> Main option >> CLI) |
@c12simple I think that you are incorrect about the I will try with CLI disabled. |
With CLI disabled, the workspace access errors go away on bulk actions. Is there a separate issue I can link to related to CLI not working properly on Ubuntu? I am still having a problem where I lose workspace access after a few hours. I have to keep going back and adding myself in. |
@c12simple According to the man page for
This means that |
For reference to anyone else who runs into this issue, I've stashed my changes here: |
I'm trying out Pydio Community Edition 8.2.2 (2018-10-10) on a VM in Azure, with SMB shares provided by Azure Files.
I can add an SMB-based workspace with the Azure Files share, but browsing to the share yields the following error:
On Azure, I've tried toggling the "secure transfer required" setting on and off but that did not affect the ability to connect. That option is described as follows:
I enabled server debug mode (
AJXP_SERVER_DEBUG
set totrue
in/etc/pydio/bootstrap_context.php
, for anyone else who similarly is trying to figure out how to do that), and was able to get the arguments that were being passed down to the underlying command:After some digging, I found a few posts out there that indicate the
-N
option in the command is to blame. Here's an example of such a post: https://ubuntuforums.org/showthread.php?t=1501277Sure enough, after monkey-patching the offending line in
smb.php
to remove the-N
option, I got a different error in the logs that indicated that/
cannot be found. I tried runningsmbclient
directly with the maximum level of debugging output, both with and without the-N
option, and found that when the option is set,smbclient
does not set theNTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
option on the connection. When-N
is absent, theNTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
option does get set. Presumably this is required in order to negotiate the connection with Azure Files.I was able to fix that issue by commenting out the line that defaults an empty path to
"/"
. Is there any reason this line is needed?Lastly, I noticed that the options to
smbclient
are getting passed twice, so I removed the duplicate reference to$options
.Now, I can PR these changes into the project, but I don't fully understand what effect that's going to have on other SMB implementations. Is
-N
really necessary for other implementations to function? Do other implementations requiredir
to receive/
to get an index of the share?Separately from the SMB access Issue: I did notice that I can't delete multiple files in Pydio over SMB. I was getting this error message when I select multiple items and try to delete them:
Deleting items one-by-one seemed to work fine.
I made no changes to permissions or roles, but today that workspace has now completely disappeared from my list of workspaces. It doesn't appear in the list of "My Workspaces" and when I click on it in the "Recent History", I now get this error:
I was able to re-gain access to the workspace by finding my account under Settings and granting read + write access to that workspace, but that was the first time I visited that page. Any ideas as to why permissions on a new workspace would get lost after 12-24 hours? Do either of these issues seem to have anything to do with the changes I made to the SMB client, or is this a different functional area? Is this just misconfiguration on my end?
I'm new to Pydio, so my apologies for dropping so much into my first issue. I would just like to get some feedback from the team before I PR any changes.
The text was updated successfully, but these errors were encountered: