{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/syncserver/issues/80","repository_url":"https://api.github.com/repos/mozilla-services/syncserver","labels_url":"https://api.github.com/repos/mozilla-services/syncserver/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/syncserver/issues/80/comments","events_url":"https://api.github.com/repos/mozilla-services/syncserver/issues/80/events","html_url":"https://github.com/mozilla-services/syncserver/issues/80","id":169737565,"number":80,"title":" AttributeError: 'module' object has no attribute 'ssl_' on Ubuntu 16.04.1 LTS","user":{"login":"DigNative","id":1613087,"avatar_url":"https://avatars.githubusercontent.com/u/1613087?v=3","gravatar_id":"","url":"https://api.github.com/users/DigNative","html_url":"https://github.com/DigNative","followers_url":"https://api.github.com/users/DigNative/followers","following_url":"https://api.github.com/users/DigNative/following{/other_user}","gists_url":"https://api.github.com/users/DigNative/gists{/gist_id}","starred_url":"https://api.github.com/users/DigNative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigNative/subscriptions","organizations_url":"https://api.github.com/users/DigNative/orgs","repos_url":"https://api.github.com/users/DigNative/repos","events_url":"https://api.github.com/users/DigNative/events{/privacy}","received_events_url":"https://api.github.com/users/DigNative/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-06T08:57:57Z","updated_at":"2016-08-17T04:35:48Z","closed_at":null,"body":"Hi,\r\n\r\nsome days ago, I upgraded one of my servers from Ubuntu 14.04 LTS to Ubuntu 16.04.1 LTS and noticed that the Firefox Sync Server is not working anymore, throwing errors similar to those reported in issue #57. I completely reinstalled the Sync Server by cloning a fresh copy of the master to a local working dir and running `make build`. A subsequent `make test` shows no errors. I got rid of the previous error.\r\n\r\nHowever, running the server with Apache and the following Apache configuration\r\n\r\n    WSGIProcessGroup sync\r\n    WSGIDaemonProcess sync user=www-data group=www-data processes=2 threads=25 python-path=/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/\r\n    WSGIPassAuthorization On\r\n    WSGIScriptAlias     /       /srv/software/mozilla-syncserver/syncserver.wsgi\r\n\r\ngives me the following errors in the web server's log:\r\n\r\n    [wsgi:error] mod_wsgi (pid=30328): Target WSGI script '/srv/software/mozilla-syncserver/syncserver.wsgi' cannot be loaded as Python module.\r\n    [wsgi:error] mod_wsgi (pid=30328): Exception occurred processing WSGI script '/srv/software/mozilla-syncserver/syncserver.wsgi'.\r\n    [wsgi:error] Traceback (most recent call last):\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/syncserver.wsgi\", line 40, in <module>\r\n    [wsgi:error]     application = loadapp('config:%s'% ini_file)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 247, in loadapp\r\n    [wsgi:error]     return loadobj(APP, uri, name=name, **kw)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 271, in loadobj\r\n    [wsgi:error]     global_conf=global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 296, in loadcontext\r\n    [wsgi:error]     global_conf=global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 320, in _loadconfig\r\n    [wsgi:error]     return loader.get_context(object_type, name, global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 454, in get_context\r\n    [wsgi:error]     section)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 476, in _context_from_use\r\n    [wsgi:error]     object_type, name=use, global_conf=global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 406, in get_context\r\n    [wsgi:error]     global_conf=global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 296, in loadcontext\r\n    [wsgi:error]     global_conf=global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 328, in _loadegg\r\n    [wsgi:error]     return loader.get_context(object_type, name, global_conf)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 620, in get_context\r\n    [wsgi:error]     object_type, name=name)\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 646, in find_egg_entry_point\r\n    [wsgi:error]     possible.append((entry.load(), protocol, entry.name))\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/pkg_resources.py\", line 2048, in load\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/syncserver/__init__.py\", line 13, in <module>\r\n    [wsgi:error]     import requests.packages.urllib3.contrib.pyopenssl\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/requests/__init__.py\", line 53, in <module>\r\n    [wsgi:error]     from .packages.urllib3.contrib import pyopenssl\r\n    [wsgi:error]   File \"/srv/software/mozilla-syncserver/local/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py\", line 86, in <module>\r\n    [wsgi:error]     DEFAULT_SSL_CIPHER_LIST = util.ssl_.DEFAULT_CIPHERS\r\n    [wsgi:error] AttributeError: 'module' object has no attribute 'ssl_'\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla-services/syncserver/issues/comments/240311335","html_url":"https://github.com/mozilla-services/syncserver/issues/80#issuecomment-240311335","issue_url":"https://api.github.com/repos/mozilla-services/syncserver/issues/80","id":240311335,"user":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T04:35:48Z","updated_at":"2016-08-17T04:35:48Z","body":"IIRC this error can occur when mod_wsgi is not configured to correctly load the virtualenv into which the server is installed.  Have you used to `python-path` directive as specified at [1] and pointed it to your own local install?\r\n\r\n[1] https://docs.services.mozilla.com/howtos/run-sync-1.5.html#apache-mod-wsgi"}}
{"actor":{"display_login":"rfk"}}