Closed salfter closed 6 years ago
What's this:
--authentication-file=\\\/proc\\\/self\\\/fd\\\/3: No such file or directory
CC @icewind1991
also CC @Xenopathic
If you're using SMB storages it's highly recommended to install the libsmbclient-php extension, which brings a HUGE performance boost
libsmbclient-php isn't in Portage, but I created an ebuild for it and put it in my overlay. v0.7.0 is now installed. After restarting php-fpm, the SMB share configured in ownCloud is now working.
It would seem that the codepath that doesn't use libsmbclient-php is somehow broken. Should it be considered deprecated? On Gentoo, this would easily be sidestepped by requiring libsmbclient-php if the samba USE flag is enabled...but now we're straying into a distro-packaging issue. Will post to Gentoo's bug tracker shortly.
It's a bug with ownCloud (or more specifically icewind1991/SMB, the library we use), not Gentoo. It should work with smbclient directly, however it's strongly recommended to always use libsmbclient-php if possible. Feel free to refer to this comment in the Gentoo bug tracker, since everything there is compiled from source it makes sense to just go for libsmbclient-php directly.
any more luck with 9.0.5 ?
im having the same issue with 9.0.5, but with other system, so i assume that it may be an error in OC itself.
i've posted an issue once on central first, to see if anyone might be able to tell if its an issue within my configuration or not: https://central.owncloud.org/t/owncloud-9-0-x-smb-shares-disappear-reappear-server-2012r2/1743
any more luck with 9.0.5 ?
I'm currently on 9.1.1, and haven't had any problems since I added libsmbclient-php.
well, im using libsmbclient as well, but with php7:
apt-get install libsmbclient-dev -y
pecl install smbclient
echo 'extension=smbclient.so' >> /etc/php/7.0/apache2/php.ini
but i didnt move to 9.1.1 yet due to some issues we had with 9.1 stable.
any idea where to look at?
@victorbw if your issue doesn't match this one, please open a new issue (filling the template). I'm specifically talking about this log:
{"reqId":"VywKecCoAXAAAB84l58AAACI","remoteAddr":"192.168.1.1","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Storage not available\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(903): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('Books (Test)')\\n#1 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(334): Sabre\\\\DAV\\\\Server->getPropertiesForPath('Books (Test)', Array, 1)\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPropFind(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:PROPFIND', Array)\\n#5 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/remote.php(138): require_once('\\\/var\\\/www\\\/home.a...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/objecttree.php\",\"Line\":159,\"User\":\"salfter\"}","level":4,"time":"2016-05-06T03:07:37+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/Books%20(Test)","user":"salfter"}
{"reqId":"VywKecCoAXAAAB83w7gAAAAV","remoteAddr":"192.168.1.1","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Unknown error (sh: --authentication-file=\\\/proc\\\/self\\\/fd\\\/3: No such file or directory)\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(157): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#1 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(434): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#2 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(391): OC\\\\Files\\\\Storage\\\\Common->test()\\n#3 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(231): OC\\\\Files\\\\Storage\\\\SMB->test(false)\\n#4 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(256): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false)\\n#5 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/userglobalstoragescontroller.php(117): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#6 [internal function]: OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController->show(25)\\n#7 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController), 'show')\\n#9 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController), 'show')\\n#10 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('UserGlobalStora...', 'show', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#14 \\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/home.alfter.us\\\/htdocs\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php\",\"Line\":119}","level":3,"time":"2016-05-06T03:07:37+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files_external\/userglobalstorages\/25","user":"salfter"}
If you open a new issue, ping me there so I can have a look.
obviously its not the same error, thank you for your advice!
@jvillafanez didn't we talk about php7 support for libsmbclient recently, or at least an upstream ticket ?
I'm not sure. I don't think we should do anything on our side for php7. Users should compile https://github.com/eduardok/libsmbclient-php library (version 0.8.0 at least) or check if their linux distribution provides the package ready with 0.8.0 version.
As long as the library supports php7 it's fine.
@jvillafanez close ?
@jvillafanez the 0.8.0 version of libsmbclient-php from Ubuntu 16.04 repository did not work for me - had to compile the linked version against otherwise standard versions of PHP7.0 and libsmbclient. Just need to mention to create a symlink for the actual libsmb in the directory where this version expects it. libsmbclient:amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 libsmbclient-dev:amd64 2:4.3.11+dfsg-0ubuntu0.16.04.3 smbclient 2:4.3.11+dfsg-0ubuntu0.16.04.3
Did not have a chance to look into where the problem resides - but it's common to nextcloud as well.
@frkca please submit as much information as possible about your system. Right now I'm not able to reproduce the issue using the libsmbclient-php library, and if I can't reproduce the issue it's almost impossible to fix it if it's really an ownCloud's problem. In addition, check if it works with a virtual appliance to isolate the issue as much as possible. You can download it from the ownCloud's download page.
@frkca
did you try to use these commands instead?
apt-get install libsmbclient-dev -y
pecl install smbclient
echo 'extension=smbclient.so' >> /etc/php/7.0/apache2/php.ini
just give it a try, it worked perfectly on my system (Ubuntu 16.04.2 LTS, apache2, mysql, NC 11.0.2).
apt-get install libsmbclient-dev -y pecl install smbclient echo 'extension=smbclient.so' >> /etc/php/7.0/apache2/php.ini
Above verified on Ubuntu 16.04.2 LTS, apache2, mysql, NC 11.0.2. In addition with IIS 10 ARR 3.0.
OC is using the same SMB libs, so it's likely mostly about the versions of:
Please reopen if the issue persists with 10.0.4 and check the versions of the above components.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.