Closed jovolk01 closed 7 years ago
Any special characters in the files that don't work ? Or any file cannot be downloaded ?
cc @jvillafanez
Have it tested.
it belongs to every file. Example filename: pcbe92linux.tar.gz
ok not to every file. because files smaller than 1.6mb can be downloaded but bigger filles will have a download error at 1.6mb every time.
Am 12.10.2016 um 12:17 schrieb Vincent Petry:
Any special characters in the files that don't work ? Or any file cannot be downloaded ?
@jovolk01 Please, solve these issues first:
{"reqId":"7lbWDwE5DDL5t7Ui2l9C","remoteAddr":"89.0.99.25","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Invalid login\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(279): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo('')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(436): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->stat('')\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(616): OC\\\\Files\\\\Storage\\\\Common->test()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(231): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->test(false, true)\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(255): OC_Mount_Config::getBackendStatus('\\\\\\\\OCA\\\\\\\\Files_Exte...', Array, false, true)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/GlobalStoragesController.php(177): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_External\\\\Lib\\\\StorageConfig), true)\\n#6 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(6, 'audio', '\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', 'password::sessi...', Array, Array, Array, Array, 90, true)\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(159): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(280): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(891): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php\",\"Line\":172}","level":3,"time":"2016-10-12T08:39:39+00:00","method":"PUT","url":"\/owncloud\/apps\/files_external\/globalstorages\/6","user":"root"}
{"reqId":"547HN\/486VhLQNy5ICN7","remoteAddr":"89.0.99.25","app":"files_external","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"Invalid login\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(279): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo('')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(436): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->stat('')\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(616): OC\\\\Files\\\\Storage\\\\Common->test()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(231): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->test(false, true)\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(255): OC_Mount_Config::getBackendStatus('\\\\\\\\OCA\\\\\\\\Files_Exte...', Array, false, true)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/GlobalStoragesController.php(177): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_External\\\\Lib\\\\StorageConfig), true)\\n#6 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(9, 'kasse_jugend', '\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', 'password::sessi...', Array, Array, Array, Array, 90, true)\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(159): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(280): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(891): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php\",\"Line\":172}","level":3,"time":"2016-10-12T08:39:39+00:00","method":"PUT","url":"\/owncloud\/apps\/files_external\/globalstorages\/9","user":"root"}
{"reqId":"Rzr6iqQWme55pb+XJNPP","remoteAddr":"89.0.99.25","app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20131226\/smbclient.so' - \/usr\/lib\/php5\/20131226\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2016-10-12T08:39:59+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"jovolk01"}
{"reqId":"hurX7HxxyiN+tfklBCRo","remoteAddr":"89.0.99.25","app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20131226\/smbclient.so' - \/usr\/lib\/php5\/20131226\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2016-10-12T08:40:29+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"jovolk01"}
Specially:
PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20131226\/smbclient.so' - \/usr\/lib\/php5\/20131226\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0
and
Invalid login (in the storage configuration)
I have nearly the same configuration (oc 9.1.1, with samba backend and ldap auth) and the same behaviour. Maybe ist's related with this bug report:
Small Files (nearly every time 2.1 MB) are downloadable, bigger downloads abort after 2.1 MB. The error only occurs if I access the owncloud through wan from outside the lan (dsl with upload about 1200 kbit/s). From local lan everything is fine.
I didn't find anything in owncloud.log neither in samba or php.log. Also not the messages listed avove (Invalid login, Unable to load dynamic library). I could guess that's a kind of caching problem. How are files from external storage are cached for download?
In other setups (same configuration, also wan - but with different transfer rates) I have no problems.
Anybody has an idea for further debugging?
tried this with libsmbclient-php instead of smbclient (on debian testing) - but still the same error.
Does this behaviour only occurs with Samba as backend? Which version? Did you have the opportunity to test using a Windows Server as backend?
Yes, problem occurs only with samba backend. Local Backend, sftp, generic owncloud files are ok.
Owncloud-Server (Debian jessie):
Samba-Server (Debian jessie)
I just tried the following:
At the moment I can't test it against a windows-server - but I'll try ... ... yes I tried. No difference. Error still occurs.
I've successfully download a 3.1 GB file both in-house and from internet. My guess it has to do with the version of smbclient you're using. I'm using Ubuntu 14.04 and a compiled Samba (version 4.5.1) as backend and oC 9.1.1.3 which uses root@mightyserver:~# sudo -u www-data smbclient -V Version 4.3.11-Ubuntu root@mightyserver:~#
Is there a way you could try to upgrade smbclient?
First I tried it with the smbclient 4.2.10. Now I upgraded to version 4.4.7 - but without success.
I also tried it already with libsmbclient-php (does it need still smbclient?) A newer one i not available in debian. But I can try to compile. Is there any way to debug smbclient?
installed 4.5.1 (from debian experimental) - same error
@jankowa Please try with the smbclient CLI app and check if the file can be downloaded. If the smbclient app can't download the file, it's likely an environmental issue and we probably can't do anything. The libsmbclient could have some kind of bug, the server could be doing weird things...
If the smbclient app can download the file, open a new ticket (note that your issue doesn't match this one because you don't have those logs) and provide all the information you can, specially the libsmbclient and libsmbclient-php versions, and the server you're connecting to.
I could guess that's a kind of caching problem. How are files from external storage are cached for download?
There is no caching. Files are stored in the external storage and are fetched from there.
No, this is not the problem. I can downlad via smbclient directly as I can download via owncloud and samba if I'm in local network.
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10-Debian]
getting file \Downloads\gimp-2.8.0-setup.exe of size 76225536 as gimp-2.8.0-setup.exe (63030,5 KiloBytes/sec) (average 63030,5 KiloBytes/sec)
The problem occurs if the following circumstances come together:
Each condition alone works.
(note that your issue doesn't match this one because you don't have those logs)
I think - at least this log entry from above has nothing to do with the error. I can reproduce the log error entry, if I reference the smbclient-php in the php.ini but php library is not installed - then it seems to fallback to smbclient and produces the error.
On another setup somewhere else but with the same configuration all works without problem. The only difference: a faster dsl connection and a less powerfull server.
reqId":"Rzr6iqQWme55pb+XJNPP","remoteAddr":"89.0.99.25","app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20131226\/smbclient.so' - \/usr\/lib\/php5\/20131226\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2016-10-12T08:39:59+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"jovolk01"}
But anyway, I'll open a new ticket: https://github.com/owncloud/core/issues/26621
closing as likely environment issue
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.
Steps to reproduce
Expected behaviour
Files from an SMB Share should download fully and without error
Actual behaviour
I have included many smb shares in the owncloud (9.1.1). Seems that was all right, because i can upload large/small files, list files, copy files in the included smb directories. But i cant download the files over the webview and also the dektop client cant syncronize the files out of the mounted smb shares.
All operations from the owncloud storage are fully functionable. Also Copying files inside owncloud to/from the samba shares is possible. Just the download operation from client computers arent working.
Server configuration
Operating system: lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie) Release: 8.6 Codename: jessie Web server: apache2 -v Server version: Apache/2.4.10 (Debian) Server built: Sep 15 2016 20:44:43 Database: 9.4+165+deb8u1 PHP version: php -v PHP 5.6.24-0+deb8u1 (cli) (built: Jul 26 2016 08:17:07) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies ownCloud version: (see ownCloud admin page) 9.1.1 Updated from an older ownCloud or fresh install: many times updated Where did you install ownCloud from:
Signing status (ownCloud 9.0 and above):
List of activated apps:
Enabled:
The content of config/config.php: If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your ownCloud installation folder { "system": { "instanceid": "ocwruj86515w", "passwordsalt": "_REMOVED SENSITIVE VALUE_", "secret": "_REMOVED SENSITIVE VALUE_", "trusted_domains": [ "ffw-geyen.no-ip.org" ], "datadirectory": "\/var\/www\/ownclouddata", "overwrite.cli.url": "https:\/\/ffw-geyen.no-ip.org\/owncloud", "dbtype": "pgsql", "version": "9.1.1.3", "dbname": "owncloud", "dbhost": "10.0.0.99", "dbtableprefix": "oc", "dbuser": "_REMOVED SENSITIVE VALUE_", "dbpassword": "_REMOVED SENSITIVE VALUE_", "logtimezone": "UTC", "installed": true, "maintenance": false, "loglevel": 2, "htaccess.RewriteBase": "\/owncloud" } }
Are you using external storage, if yes which one: local/smb/sftp/... yes, smb Are you using encryption: yes/no yes Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... OpenLDAP
LDAP configuration (delete this part if not used)
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Configuration | | +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | cn=admin,dc=no-ip,dc=org | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | dc=no-ip,dc=org | | ldapBaseGroups | dc=no-ip,dc=org | | ldapBaseUsers | dc=no-ip,dc=org | | ldapCacheTTL | 60 | | ldapConfigurationActive | 1 | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 1 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | uid | | ldapGroupDisplayName | cn | | ldapGroupFilter | (&(|(objectclass=posixGroup))(|(cn=Administration)(cn=Gruppenfuehrer)(cn=Kasse_Jugend)(cn=Kasse_LZ)(cn=LZ_Jugend)(cn=owncloud_alle)(cn=owncloud_partner))) | | ldapGroupFilterGroups | Administration;Gruppenfuehrer;Kasse_Jugend;Kasse_LZ;LZ_Jugend;owncloud_alle;owncloud_partner | | ldapGroupFilterMode | 1 | | ldapGroupFilterObjectclass | posixGroup | | ldapGroupMemberAssocAttr | memberUid | | ldapHost | ldap://10.0.0.99 | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(|(objectclass=inetOrgPerson))(|(uid=%uid))) | | ldapLoginFilterAttributes | uid | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 1 | | ldapLoginFilterUsername | 0 | | ldapNestedGroups | 0 | | ldapOverrideMainServer | 0 | | ldapPagingSize | 500 | | ldapPort | 389 | | ldapQuotaAttribute | | | ldapQuotaDefault | 500MB | | ldapTLS | 0 | | ldapUserDisplayName | cn | | ldapUserDisplayName2 | | | ldapUserFilter | (|(objectclass=inetOrgPerson)) | | ldapUserFilterGroups | | | ldapUserFilterMode | 1 | | ldapUserFilterObjectclass | inetOrgPerson | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM
oc_appconfig
WHEREappid
= 'user_ldap';Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.