-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[13.0.0beta4] SMB mounts work poorly or not at all #7748
Comments
cc @icewind1991 |
Same goes for 12.0.3 and 12.0.4. |
Related: #6597 |
I have this same issue since at least 12.0.3. Feedback below is based on 12.0.4. I found that what is failing on my particular set up is the auth file being provided via the /proc/self/fd/3 When I change apps/files_external/3rdparty/icewind/smb/src/RawConnection.php function writeAuthentication to point to a physical file which I create with the content provided by getAuthStream() then everything "just works". @icewind1991 I followed your test instructions regarding the example.php in https://github.com/icewind1991/SMB and that again "just works". |
Which version of smbclient are you using, I know that the smb wrapper shipped with 12.0.x doesn't like the /proc trick. You can try applying #7774 and see if that fixes the issue for you |
@icewind1991 Do we use the latest smbclient libs in 13.0.0beta4 as well, because it's exactly the same issue there as in 12.0.4. |
And just to be clear, it's working perfectly fine without involving Nextcloud, in other words when using smbclient. It's the External Storage App that is dysfunctional. |
if you're experiencing the issue with 13 then it's most likely a separate one as @twrhills has Try running the steps described in #6597 (comment) to narrow down the issue to either the smb library or the NC integration of it |
@icewind1991 I already tried to reach you on IRC when I was debugging it, but you didn't answer. :) My question there was where to put all the info, I mean "test" must be replaced with the real values to get a valid result right? |
Yes, on line 8/10 you put the server address, user name and password in that order then on line 13 the name of the share |
@icewind1991 Great! @waynehawken Maybe we can schedule a meeting for this? |
@enoch85 - happy to set up another - it is probably fastest - however looking at the details we aren't providing user/pwd details in the config as we are using at runtime accounts and per user authentication to the shares. Providing a single user account in the backend would defeat this authentication purpose would it not? |
@waynehawken Aah you're right. Forgot about that. I don't remember, did it work when we used a single account or not? @icewind1991 This is a little bit special case as the users authenticate with LDAP and permissions to the different CIFS shares are set in AD. So testing just one account might not provide fair result, and in @waynehawken setup we have about 10 000 users if I'm not mistaken. |
ok - have had to do something as it has been unusable for us for an extended time period. Have build a new v11 VM and reverted back to 11.03 - problems are gone & SMB working fine again. There is something buggy in at least v12.3 - possibly 12.02 and maybe 12.01, but we have been trying to work around the issue for so long now that failed/change history doesn't align with end user reports enough. |
Yup, I can confirm that I had multiple customers that complained about this since 11.X.X cc @icewind1991 |
Same here with NC 13.0.0, having this kind of problems since I was using Owncloud back to 2015. Samba shares doesn't work proprely at all, bad files' size shown, files truncated when downloaded etc. During these years I tried to:
I was thinking about a memory problem, I only have 2 Go ram on an XU4 Odroid, but it doesn't seems, I tried to share and download a > 8 Go file using Webdav and there was no problem. |
IMHO I think this should be looked at. We have a lot of Windows users that use SMB, and that it's broken since 11.0.X is just sad. Dunno if this has priority on the todo-list? |
Issues with big files using smb shares exists at least since 2015 (as I know) in OC or NC, unfortunatly maybe Samba is not very popular among NC users so I guess it's not realy a priority :s. |
With NC11 no longer supported, but this functionality is still not working in v12 or v13, is there any timeline or plans to resolve this or should we be looking for a replacement product and moving to something else? |
Hi @waynehawken and others. I think this matter would be resolved pretty quickly after a discussion with Nextcloud looking at this: https://nextcloud.com/enterprise/ |
Also having Samba Errors. We are using Nextcloud 14.03 and everything works fine until I try to open a PDF or a Image File. Then I get mostly:
With smbclient I can successfully mount everything. Also with the Nextcloud App but accessing files is sometimes possible and sometimes not and I dont know why... |
Just tested that on nextcloud 15, at least .pdf/.jpeg opens as expected from a samba-share. I only got a problem getting smb work with kerberos-tickets atm, as the libary seems not to use the ticket that is generated at the login. |
15.0.4 we have exactly the same error: |
As the version of the software you've reported this for has reached end of life, I will close this ticket. If this is still happening after an upgrade to the latest version, feel free to reopen |
Steps to reproduce
Expected behaviour
SMB shares should be listed, not only the root folders in that share.
Actual behaviour
We can mount SMB just fine with the smbclient in Ubuntu. Listing shows up as expected and all the files and folders are showing up as expected, not in Nextcloud though.
Server configuration detail
Operating system: Linux 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64
Webserver: Apache/2.4.18 (Ubuntu) (apache2handler)
Database: mysql 10.2.12
PHP version: 7.0.22-0ubuntu0.16.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, redis, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, intl, json, ldap, exif, mcrypt, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: 13.0.0 Beta 4 - 13.0.0.9
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Tech and Me VM with installation help from @enoch85
Signing status
Array
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local/smb/sftp/...
SMB
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
Client configuration
Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0
Operating system:
Windows Server 2012 R2 Datacenter
Logs
Browser log
Nextcloud log
Browser log
Nothing relevant
The text was updated successfully, but these errors were encountered: