-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External storage SMB/CIFS root directory does not behave as it should #1970
Comments
@icewind1991 anything wrong with mounting a partition root? |
Hi, Joas. |
Confirm the problem. It occurs when using shares not on disk C. I think the code is used incorrectly. 'smbclient allinfo "."' in function stat($path) on /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Share.php. |
I confirm - the problem is still exist. |
https://www.evernote.com/shard/s69/sh/ceeed8fa-69d7-4dda-b64e-aa0ca1dd5399/f652c5c234fab70c99bed1e29eddae61 |
@midaw1 Sorry, I don't have Evernote account and I don't want to create an account there, please, upload your screenshot somewhere else, e.g. https://snag.gy/ |
I'm sorry, the link was a curve. Try to go for a new one. Placed in the same top. |
I am found problem. smbclient + "allinfo " not work on share from disk D,E,.... |
I confirm the problem is reproducible. When you go in External Storage and click on the share folder, WebDAV returns a 404 not found in the Google Chrome console. As soon as you select a sub folder not in the root directory of an hard drive, the problem doesn't occur. I would like to mention that smbclient.so is registered in php.ini, so I guess using it doesn't fix the problem. I am using Ubuntu Server 16.04.1 LTS x64. The file server is a Windows Server 2016 Core Datacenter. |
there are several php.ini. moreover desirable to use the fpm. smbclient.so problem takes exactly. check script phpinfo (), that you have loaded smbclient. and not included fpm. |
I am not really sure to understand what you mean. The only thing I have done is to enable the module using the command "phpenmod smbclient", then restarting Apache. When I look in /etc/php/7.0/apache2/conf.d/20-smbclient.ini, there is only one line and it's extension=smbclient.so, which is good right? |
one last line in /etc/php/7.0/cli/php.ini or /etc/php/7.0/fpm/php.ini or /etc/php/7.0/apache2/php.ini... |
None of the three files you've specified contains the line "extension=smbclient.so". Folder fpm doesn't exist for me. "You always put the do not understand[...]" what? I don't understand what you are trying to say. :/ |
Add to all these files that line. My English is poor. I sit with a dictionary ... Sorry |
So you want me to add the line "extension=smbclient.so" into all php.ini file? |
exactly... and restart server. |
Hi, This is not working and doesn't change anything to the behavior. I still receive a 404 not found from the WebDAV module when tempting to browse the SMB share through the menu "External Storage". This is what makes NextCloud automatically redirect to "All files" as described by @iG8R . |
I too have this issue. Have there been any further advances? I also logged the issue on the OwnCloud forum a while ago but got nowhere. |
Hi, Nothing new on my side. I end up creating an additional SMB share for I wanted to do. Seems like NC 11 is out, maybe this corrects the issue? Dave |
Ah, so you just settled on having to have your share as a subfolder...? I'm running 11 and can confirm the issue is still present. :-( |
Unfortunately, this is the only workaround at this moment... Until someone wants to take care of the issue. |
Hmmm... a bit of a tricky work-around for me. I wonder if they have a 'snagging list' of such things they're working through (can't think of the proper name for it at the moment). |
I don't know how the NC's team handles their priority internally. I guess someone of their team needs to reproduce the problem first. Maybe with the number of issues loggued here, this might take some time? |
I have now had a chance to try midaw1's suggestion of adding the 'extension=smbclient.so' to the two php.ini files available to me (under /cli and /apache2 (I didn't have an fpm directory)) and restarted and it hasn't worked for me. Do we think iG8R entered all relevant info in his initial logging of this issue on the 1st November? I know the NextCloud team request a lot of information in the logging of issues. |
Hi,
Did not solve anything. The issue happens for both "local" and "SMB/CIFS" mounts. |
I was just trying to upgrade from Owncloud to Nextcloud and experienced the issue described. Note that this works in Owncloud and should work in Nextcloud as described in the Wiki. I tried adding a / or ./ and other variations into the subfolder parameter but nothing worked so far. Could someone look at the source of Owncloud and check what was done differently? I'll do it as soon as I have some time in my hands, will report if I find something. |
Hi 'soldier9945'. Good stuff. Interesting that you found it works in OwnCloud as I've been keeping a vague eye on their Release Notes and not noticed that they fixed it. Also, I have a similar issue logged with OwnCloud which receives the odd comment but nobody's said it's fixed. I'll test when I get a sec.
James
On 22 Mar 2017, at 13:41, soldier9945 <notifications@github.com<mailto:notifications@github.com>> wrote:
I was just trying to upgrade from Owncloud to Nextcloud and experienced the issue described. Note that this works in Owncloud and should work in Nextcloud as described in the Wiki.
I tried adding a / or ./ and other variations into the subfolder parameter but nothing worked so far.
Could someone look at the source of Owncloud and check what was done differently? I'll do it as soon as I have some time in my hands, will report if I find something.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#1970 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AXhF1CnjFIiV3c0K1ChfJr9FOYdQ3ahJks5roST1gaJpZM4KmTxO>.
|
My share is \computername\2TBDrive. Ive added another one in Windows as \computername\H . Still doesnt work as far as sharing that entire drive on Nextcloud. Remote Subfolder field is left blank. If I put a remote subfolder (say I have \computername\2TBDrive\Temp) then it works fine as others have stated. Ive tried the creating a symlink directory (junction in windows) and still doesnt allow the ability to share the entire drive. |
I tested it: I'll stay on owncloud for now, where it perfectly works. I'm looking forward to get this fixed and switch to nextcloud. I mean, is it really something that demanding to fix? |
Sorry, I can't answer that since I'm not a core developer. But it seems unlikely that it won't be fixed, if it turns out to be a bug. |
“If”? Are there debug/log files I can attach from owncloud and nextcloud so that devs can sort this out by checking what fails? I know there is a workaround, but it’s almost 4 years now, and still not fixed? Damn... I can even put emojis in documents’ filenames now! |
Afaik something changed in 11.0.4 since it was working in 11.0.3 from what I've heard. I'm not using SMB myself so I don't really know for sure. @icewind1991 is the right person for this issue I'd say. |
Also regarding:
I'm not saying that it never will be fixed. If the issue is not solved, a workaround can be a good way to use it until the main issue is addressed properly. Nextcloud can be used in so many other ways than through SMB, but if that's your main concern I understand your point. |
@enoch85 I don't know much about smb. Can you explain how to setup a smb share with this issue? |
It is required that the windows user has a password. |
Thank you @carlox97 👍
The main difference between the root share and the normal share are the attributes:
Nextcloud tries to fetch the permissions for the share and the result for HSD is zero (= we cannot read this file / share). #15706 adds a flag to show hidden files. It's possible to enter the share then but not possible to see or upload any files. |
@kesselb thanks for the explanation. Glad I could help! |
This seems fixed in v17 now. Just need to enable the "Show hidden files" checkbox on the External Storage settings for the root directory share. Finally works now! Yes! Good job Nextcloud team. |
@kesselb sorry, I don't use Nextcloud for the time being, maybe I'll try it somehow later. |
Thanks. Let's close this then. |
@kesselb Note: |
https://github.com/nextcloud/vm/blob/master/nextcloud_install_production.sh#L434-L442 |
Thanks for pointing this out! |
I actually have no idea. But I installed the VM for a client, and everything checked out perfectly - using the latest VM scripts (which is now on Ubuntu 20.04). They have like 20 shares all together. |
Ok. the shares that are not disks root directories work fine to me as well. |
How are you two @carlox97 or @enoch85 even getting the SMB shares to work on 18.0.4? I recently installed a fresh version of it using TechandMe script (on Ubuntu 20.04) (Also tried downloading the prebuilt VMs and still same issue) and SMB shares no longer work at all. Same shares on my Nextcloud 18.0.2 VM works perfectly fine. So lost on how you two are getting it to work. I tried installing smbclient and that didnt help. The share acts like its added when I added on External Storage, but when under files you click on it, you just get an internal server error nextcloud page. |
Seems like a bug in 18.0.4. please confirm: #20622 (comment) And this: https://help.nextcloud.com/t/unable-to-connect-to-smb-shares-on-18-0-4/79290 |
Thanks, guess its a bug and will have to wait. Yea the second link you posted was me reporting the issue. |
This might be the reason: #20405 |
I installed a Nextcloud 18.0.3 instance on 20.04 LTS (PHP 7.4; smbclient instead of php-smbclient, which is not available on 7.4 yet). Nextcloud log (settings - logging)log
|
@enoch85 could you reopen this, please? |
Steps to reproduce
Expected behaviour
Mounted External storage SMB/CIFS expected to appear in the "All files" folder and have to be accessible.
Actual behaviour
Mounted External storage SMB/CIFS appear in "All files"->"External storage" and doesn't accessible - you'll be moved to the root of "All files".
But if I mount any subfolder of this root SMB/CIFS - it will be mounted without any issues. E.g. if I mount D:\_Video\ as DiskD_Video it will appear in "All files" and will be accessible.
Screenshots:
https://snag.gy/Q0zfPj.jpg
https://snag.gy/Y0lMH6.jpg
https://snag.gy/wLG7M3.jpg
Server configuration
Windows 8.1 Pro - Nextcloud VM - Ubuntu Server 16.04.1: Pre-installed Nextcloud (PHP 7) from https://cloud.techandme.se/index.php/s/lTjoMr5smSYHIiM/download?path=%2F&files=Nextcloud_Community_VM_PRODUCTION.rar
Client configuration
Browser: Firefox 47, Chrome 54, IE 11
Operating system: Windows, Android
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: