{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/6597","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/6597/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/6597/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/6597/events","html_url":"https://github.com/nextcloud/server/issues/6597","id":259427344,"number":6597,"title":"NC 12.0.3: Unable to mount SMB shares","user":{"login":"j-ed","id":2572764,"avatar_url":"https://avatars1.githubusercontent.com/u/2572764?v=4","gravatar_id":"","url":"https://api.github.com/users/j-ed","html_url":"https://github.com/j-ed","followers_url":"https://api.github.com/users/j-ed/followers","following_url":"https://api.github.com/users/j-ed/following{/other_user}","gists_url":"https://api.github.com/users/j-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/j-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-ed/subscriptions","organizations_url":"https://api.github.com/users/j-ed/orgs","repos_url":"https://api.github.com/users/j-ed/repos","events_url":"https://api.github.com/users/j-ed/events{/privacy}","received_events_url":"https://api.github.com/users/j-ed/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":389033477,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20external%20storage","name":"feature: external storage","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2017-09-21T09:11:04Z","updated_at":"2018-02-11T15:25:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Expected behavior\r\nNextcloud should be able to mount external SMB shares.\r\n\r\n## Current behavior\r\nNextcloud seems not able to always mount an external SMB share, provided via a Samba server, in a reliable way. The usual square in front of the share is displayed, which indicates an authentication problem, although all required information have been entered correctly. On top of the external mount screen the message \"**Verbindung zum Server verloren**\" (lost connection to server) is shown for a short moment.\r\n\r\nI've double-checked that `libsmbclient` is installed and activated on the web server as recommended in other postings. Additionally I've tested access to the share using the smbclient command line tool:\r\n```\r\n# smbclient //192.168.1.11/Tmp -U \"juergen\"\r\n```\r\nAdditionally I've written a small PHP script to check if the given SMB share can be accessed properly using the smbclient functions:\r\n```\r\n<?php\r\n// Create new state:\r\n$state = smbclient_state_new();\r\n\r\n// Initialize the state with workgroup, username and password:\r\nsmbclient_state_init($state, '', 'juergen', 'XXXXX');\r\n\r\n// Open a directory:\r\n$dir = smbclient_opendir($state, 'smb://192.168.1.11/Tmp');\r\n\r\n// Loop over the directory contents, print each node:\r\nwhile (($entry = smbclient_readdir($state, $dir)) !== false) {\r\n    echo \"{$entry['name']} : {$entry['type']}<br>\\n\";\r\n}\r\n\r\n// Close the directory handle:\r\nsmbclient_closedir($state, $dir);\r\n\r\n// Free the state:\r\nsmbclient_state_free($state);\r\n?>\r\n```\r\n Everything works fine, except that it doesn't work from within Nextcloud :-( No error messages are shown in the Nextcloud log or elsewhere which gives a hint about the possible root cause of the problem.\r\n\r\nDue to the fact that problems with external mount points appears very often I would recommend to add a kind of diagnosis function to each external mount function which allows double-check the base requirements and shows detailed information, including all steps of a mount attempt.\r\n\r\n**BTW:** I've managed to created several identical mount configurations within seconds only by editing the SMB mount options of my test share. It seems that there is another issue with the external mount configuration dialog itself.\r\n\r\n### Steps to reproduce\r\n1. In my closed environment it is easy, but most likely in your test it isn't.\r\n\r\n## Environment\r\n#### Server Configuration\r\nOS: Linux 3.16.47\r\nWeb server: Apache2 2.4.26\r\nPHP version: 5.6.29\r\nDatabase: MariaDB 10.0.32\r\nNextcloud version: 12.0.3\r\n\r\n#### Client Configuration\r\nBrowser: Mozilla Firefox 55.0.3\r\nOperating system: Windows 7\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/364759640","html_url":"https://github.com/nextcloud/server/issues/6597#issuecomment-364759640","issue_url":"https://api.github.com/repos/nextcloud/server/issues/6597","id":364759640,"user":{"login":"Bagorolin","id":7559494,"avatar_url":"https://avatars3.githubusercontent.com/u/7559494?v=4","gravatar_id":"","url":"https://api.github.com/users/Bagorolin","html_url":"https://github.com/Bagorolin","followers_url":"https://api.github.com/users/Bagorolin/followers","following_url":"https://api.github.com/users/Bagorolin/following{/other_user}","gists_url":"https://api.github.com/users/Bagorolin/gists{/gist_id}","starred_url":"https://api.github.com/users/Bagorolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bagorolin/subscriptions","organizations_url":"https://api.github.com/users/Bagorolin/orgs","repos_url":"https://api.github.com/users/Bagorolin/repos","events_url":"https://api.github.com/users/Bagorolin/events{/privacy}","received_events_url":"https://api.github.com/users/Bagorolin/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T15:25:31Z","updated_at":"2018-02-11T15:25:31Z","author_association":"NONE","body":"I am also having issues with mounting smb shares on a fresh installed (ubuntu) lemp stack with Nextcloud 13.0.0.\r\nWhat me really bugs, is that I don't get any feedback but a red square. Can't you print out some logs?!"}}
{"actor":{"display_login":"Bagorolin"}}