{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13485","labels_url":"https://api.github.com/repos/owncloud/core/issues/13485/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13485/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13485/events","html_url":"https://github.com/owncloud/core/issues/13485","id":54801733,"number":13485,"title":"ownCloud login impossible after upgrade of cURL library - stream_wrapper_register(): Protocol smb:// is already defined","user":{"login":"j-ed","id":2572764,"avatar_url":"https://avatars.githubusercontent.com/u/2572764?v=3","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":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_external","name":"app:files_external","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-19T19:17:01Z","updated_at":"2015-10-28T14:19:12Z","closed_at":null,"body":"## Actual behavior\r\n\r\nWithout any specific announcement, but after a web server restart,  I realized that I wasn't able to login to ownCloud anymore. After entering my login credentials the following error message was shown on the screen: `Failed to register protocol`.\r\n\r\nI found the following, more detailed, error message In the log file:\r\n```\r\n{\"reqId\":\"54bd07d9f3e3f\",\"app\":\"PHP\",\"message\":\"stream_wrapper_register(): Protocol smb:\\/\\/ is already defined. at \\/var\\/www\\/htdocs\\/owncloud\\/apps\\/files_external\\/3rdparty\\/smb4php\\/smb.php#515\",\"level\":0,\"time\":\"2015-01-19 14:34:18+01:00\",\"method\":\"OPTIONS\",\"url\":\"\\/owncloud\\/remote.php\\/caldav\\/calendars\\/juergen\\/\"}\r\n```\r\n\r\nI checked the server configuration with `phpinfo()` and found out that \"**smb**\" was listed under the registered protocols and especially that \"libcurl\" also listed smb as its supported protocols.\r\nThat pointed me into the right direction because I had updated the libcurl library from v7.38.0 to **cURL v7.40.0** (released on January 8th 2015) only a couple of days ago. After downgrading the library to v7.38.0, the smb protocol wasn't listed as *registered protocol* anymore and ownCloud worked as expected again.\r\n\r\nIt seems that the developers of cURL have not only applied bug fixes but also added initials SMB support\r\n(`smb: Added initial support for the SMB/CIFS protocol`). A side effect of this change is, that ownCloud refuses to work and denies every connection.\r\n\r\nHere you will find the change the relevant change note of the cURL v7.40.0 release:\r\nhttp://curl.haxx.se/changes.html\r\n\r\nDue to the fact that more and more users will most likely install the new library in the future, ownCloud should double-check if a desired protocol is already registered before it tries to register it on its own using the `stream_wrapper_register()` function.\r\n\r\n## Environment\r\n\r\n#### Server Configuration\r\n\r\nOS: Linux 3.2.54\r\nWeb server: Apache2 2.4.10\r\nDatabase: MySQL 5.1.73\r\nPHP version: 5.4.35\r\nownCloud version: 7.0.4\r\n\r\n#### Client Configuration\r\n\r\nBrowser: Firefox 35.0\r\nOperating system: Windows 7"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/151859207","html_url":"https://github.com/owncloud/core/issues/13485#issuecomment-151859207","issue_url":"https://api.github.com/repos/owncloud/core/issues/13485","id":151859207,"user":{"login":"j-ed","id":2572764,"avatar_url":"https://avatars.githubusercontent.com/u/2572764?v=3","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},"created_at":"2015-10-28T14:19:12Z","updated_at":"2015-10-28T14:19:12Z","body":"@PVince81 I've not seen that error anymore, after I had upgraded my server to 8.1.3."}}