owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.38k stars 2.06k forks source link

ownCloud 8.1 External Storage SMB to server 2008 working, server 2012 not working #17657

Closed directict closed 9 years ago

directict commented 9 years ago

Steps to reproduce

  1. enable external storage app
  2. mount SMB share on 2012 server = not working
  3. mount SMB share on 2008 server = working

    Expected behaviour

After updating from 8.04 to 8.1 i would expect that the mounted SMB shares would still be 'green/mounted'

Actual behaviour

all our SMB shares are on 2012, so all shares became inaccessible.

Server configuration

Operating system: centos 6.6

Web server: NGINX

Database: mySQL

PHP version: 5.5

ownCloud version: (see ownCloud admin page) 8.1 Updated from an older ownCloud or fresh install: updated from 8.0 / 8.04

List of activated apps:

The content of config/config.php: <?php $CONFIG = array ( 'instanceid' => xxxxx', 'passwordsalt' => 'xxxxx', 'secret' => 'xxxxx', 'trusteddomains' => array ( 0 => xxxxxxx', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => 'xxxx', 'dbtype' => 'mysql', 'version' => '8.1.0.8', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc', 'dbuser' => 'oc_admin',

'installed' => true, 'ldapIgnoreNamingRules' => false, 'theme' => 'DirectICT-8.1', 'mail_from_address' => 'no-reply-dev', 'mail_smtpmode' => 'smtp', 'mail_domain' => 'directict.nl', 'forcessl' => true, 'loglevel' => 0, 'mail_smtphost' => 'xxxx, 'mail_smtpport' => '25', 'maintenance' => false, );

Are you using external storage, if yes which one: SMB

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/...

LDAP configuration (delete this part if not used)

+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Configuration | | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 1 | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | CN=xxxxx,OU=Users,OU=MyBusiness,DC=xxxx,DC=local | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | DC=xxxxx | | ldapBaseGroups | DC=xxxx | | ldapBaseUsers | DC=xxxxxxx | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | | | ldapGroupDisplayName | cn | | ldapGroupFilter | (&(|(objectclass=group))(|(xxxxxxx;xxxxxxx;xxxxxxxx;xxxxxxxxxxx ))) | | ldapGroupFilterGroups | xxxxxxx;xxxxxxx;xxxxxxxx;xxxxxxxxxxx | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | group | | ldapGroupMemberAssocAttr | member | | ldapHost | xxxxx | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(&(|(objectclass=user))(|(memberof=CN=xxxxxxx,OU=Program Groups,OU=Groups,OU=Direct ICT,DC=xxxxxx,DC=local)))(|(|(mailPrimaryAddress=%uid)(mail=%uid))(|(mail=%uid)(userPrincipalName=%uid)))) | | ldapLoginFilterAttributes | mail;userPrincipalName | | ldapLoginFilterEmail | 1 | | ldapLoginFilterMode | 0 | | ldapLoginFilterUsername | 0 | | ldapNestedGroups | 0 | | ldapNoCase | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 389 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserDisplayName | displayname | | ldapUserFilter | (&(|(objectclass=user))(|(memberof=CN=xxxxxxxxxxxxx,OU=Program Groups,OU=Groups,OU=xxxxxxx,DC=xxxxxxx,DC=local))) | | ldapUserFilterGroups | xxxxxx | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | user | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.


### Client configuration
**Browser:** Firefox

**Operating system:** Windows 8

### Logs
#### Web server error log

Insert your webserver log here


#### ownCloud log (data/owncloud.log)
{"reqId":"PTTM6hPK3kSpCwDSxxZf","remoteAddr":"192.168.XXX.174","app":"user_ldap","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => CN=Owncloud-ICT,OU=Owncloud-ShareGroups,OU=Security Groups,OU=Groups,OU=Direct ICT,DC=xxxx,DC=local\n)\n attr Array\n(\n    [0] => \n)\n limit 500 offset 0","level":0,"time":"2015-07-15T10:21:36+00:00","method":"PUT","url":"\/index.php\/apps\/files_external\/globalstorages\/1"}
{"reqId":"PTTM6hPK3kSpCwDSxxZf","remoteAddr":"192.168.XXX.174","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2015-07-15T10:21:36+00:00","method":"PUT","url":"\/index.php\/apps\/files_external\/globalstorages\/1"}
{"reqId":"PTTM6hPK3kSpCwDSxxZf","remoteAddr":"192.168.XXX.174","app":"user_ldap","message":"readAttribute: CN=Owncloud-ICT,OU=Owncloud-ShareGroups,OU=Security Groups,OU=Groups,OU=Direct ICT,DC=xxxxxxx,DC=local found","level":0,"time":"2015-07-15T10:21:36+00:00","method":"PUT","url":"\/index.php\/apps\/files_external\/globalstorages\/1"}
{"reqId":"PTTM6hPK3kSpCwDSxxZf","remoteAddr":"192.168.XXX.174","app":"files_external","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\Exception\",\"Message\":\"Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for \\\/\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(365): Icewind\\\\SMB\\\\Parser->checkForError(Array, '\\\/')\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(130): Icewind\\\\SMB\\\\Share->parseOutput(Array, '\\\/')\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(99): Icewind\\\\SMB\\\\Share->stat('\\\/')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/smb.php(133): OC\\\\Files\\\\Storage\\\\SMB->getFileInfo('')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(408): OC\\\\Files\\\\Storage\\\\SMB->stat('')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/config.php(497): OC\\\\Files\\\\Storage\\\\Common->test(false)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/storagescontroller.php(123): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/controller\\\/globalstoragescontroller.php(157): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus(Object(OCA\\\\Files_external\\\\Lib\\\\StorageConfig))\\n#8 [internal function]: OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->update(1, 'ICT_Data', '\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, Array, Array, Array, 100)\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(108): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController), 'update')\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#13 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#15 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(867): OC\\\\Route\\\\Router->match('\\\/apps\\\/files_ext...')\\n#16 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Parser.php\",\"Line\":66}","level":4,"time":"2015-07-15T10:21:36+00:00","method":"PUT","url":"\/index.php\/apps\/files_external\/globalstorages\/1"}

![oc81smb20082012](https://cloud.githubusercontent.com/assets/12065695/8696525/41b2189a-2aed-11e5-936a-21fa6478da6c.png)
directict commented 9 years ago

oc81smb20082012

directict commented 9 years ago

On another server2012 server it is working.. so it should be something inside my SERVER2012?

enoch85 commented 9 years ago

@directict

On another server2012 server it is working.. so it should be something inside my SERVER2012?

If another instance is working, it's probably a configuration issue and nothing wrong with ownCloud. Feel free to reopen if there is something wrong with ownCloud.

directict commented 9 years ago

yes.. well it was working before so i am confused :(

enoch85 commented 9 years ago

Join the IRC channel and ask for help there. https://webchat.freenode.net/#

directict commented 9 years ago

Ok

Met vriendelijke groet, Gert-jan Slot Direct ICT


Van: Daniel Hanssonmailto:notifications@github.com Verzonden: ‎15-‎7-‎2015 19:57 Aan: owncloud/coremailto:core@noreply.github.com CC: NOC | Direct ICTmailto:NOC@directict.nl Onderwerp: Re: [core] ownCloud 8.1 External Storage SMB to server 2008 working, server 2012 not working (#17657)

Join the IRC channel and ask for help there. https://webchat.freenode.net/#

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/17657#issuecomment-121693239.

area51pilot commented 9 years ago

directict: I have the same issue connecting to a Windows 2011 Small Business Server. Running my OC instance on Xubuntu 14.04 with Apache2/MariaDB-server for dedicated ownCloud server. Reverted back to 8.0.5 and I'm back in business. Will continue testing 8.1 on a non production machine/VM until this gets figured out.

directict commented 9 years ago

Thanks @area51pilot i made a copy of my production env... updated to 8.1.. waiting for a solution now :

tgebler commented 9 years ago

Same thing, shares to my Server2012R2 don't work anymore, the Server is pretty much default, non domain joined. Workes bevore, OC 8.1 is on debian stable, mysql, apache, php5.4 now php5.5

Exception while scanning storage "smb::server2012r2\owncloud@server2012r2/sharename//": Icewind\SMB\Exception\Exception: Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for /

Exception: {"Exception":"Exception","Message":"Creating \OC\Files\Storage\Dropbox storage failed","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/files_external\/lib\/config.php(496): OC\Files\Storage\Dropbox->construct(Array)\n#1 \/var\/www\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(123): OC_Mount_Config::getBackendStatus('\OC\Files\Stora...', Array, false)\n#2 \/var\/www\/owncloud\/apps\/files_external\/controller\/storagescontroller.php(138): OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OCA\Files_external\Lib\StorageConfig))\n#3 \/var\/www\/owncloud\/apps\/files_external\/controller\/userstoragescontroller.php(99): OCA\Files_External\Controller\StoragesController->show('1')\n#4 [internal function]: OCA\Files_External\Controller\UserStoragesController->show('1')\n#5 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(159): call_user_func_array(Array, Array)\n#6 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\UserStoragesController), 'show')\n#7 \/var\/www\/owncloud\/lib\/private\/appframework\/app.php(108): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\UserStoragesController), 'show')\n#8 \/var\/www\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(45): OC\AppFramework\App::main('UserStoragesCon...', 'show', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#9 [internal function]: OC\AppFramework\routing\RouteActionHandler->invoke(Array)\n#10 \/var\/www\/owncloud\/lib\/private\/route\/router.php(274): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#11 \/var\/www\/owncloud\/lib\/base.php(867): OC\Route\Router->match('\/apps\/files_ext...')\n#12 \/var\/www\/owncloud\/index.php(40): OC::handleRequest()\n#13 {main}","File":"\/var\/www\/owncloud\/apps\/files_external\/lib\/dropbox.php","Line":57}

tgebler commented 9 years ago

This fixed to problem for me: https://github.com/eduardok/libsmbclient-php Found the sollution here: https://github.com/owncloud/core/issues/17499