question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find a solution for bundled cryptography pkg that works for Ubuntu 14.04 (Trusty)

See original GitHub issue

Observed behavior

I’m not able to import channel from browser or command line. When importing from browser, it shows that transfer failed.

Expected behavior

Importing channels successfully.

User-facing consequences

Users will not able to import a channel when their Python version is not the latest (or probably some other reasons that cause this problem).

Errors and logs

Relevant errors and tracebacks from:

  • the command line
WARNING:py.warnings:/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning

WARNING:py.warnings:/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Traceback (most recent call last):
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 365, in execute
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 293, in _wrap_coverage
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 325, in _wrap_profiling
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 408, in _execute
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 466, in execute_entry
  File "/home/osboxes/share/kolibri-0.7.dev020171030053720-git.pex/.bootstrap/_pex/pex.py", line 471, in execute_module
  File "/usr/lib/python2.7/runpy.py", line 180, in run_module
    fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/__main__.py", line 8, in <module>
    main(args=sys.argv[1:])
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/utils/cli.py", line 629, in main
    manage(command, args=django_args)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/utils/cli.py", line 460, in manage
    execute_from_command_line(argv=argv)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/tasks/management/commands/base.py", line 99, in handle
    return self.handle_async(*args, **options)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/content/management/commands/importchannel.py", line 89, in handle_async
    self.download_channel(options["channel_id"])
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/content/management/commands/importchannel.py", line 42, in download_channel
    self._transfer(DOWNLOAD_METHOD, channel_id)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/content/management/commands/importchannel.py", line 67, in _transfer
    with filetransfer:
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/content/utils/transfer.py", line 98, in __enter__
    self.start()
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/content/utils/transfer.py", line 153, in start
    self.source, stream=True, timeout=self.timeout)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/sessions.py", line 487, in get
    return self.request('GET', url, **kwargs)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/sessions.py", line 606, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/sessions.py", line 179, in resolve_redirects
    **adapter_kwargs
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/sessions.py", line 585, in send
    r = adapter.send(request, **kwargs)
  File "/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/adapters.py", line 477, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
  • ~/.kolibri/kolibri.log

No errors shown here.

  • the browser console

    Same as above

server logs
 WARNING:py.warnings:/home/osboxes/.pex/install/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl.f6b31bfd2a0b1e7de7753e26a8255f5d5f146d78/kolibri-0.7.dev020171030053720_git-py2.py3-none-any.whl/kolibri/dist/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Steps to reproduce

  1. Set up a Ubuntu 14.04 32-bit VM with python 2.7.6 installed (this python version comes with the VM)
  2. Use the latest 0.7 pex to start the server
  3. From command line or browser, try to import a channel

Context

  • Kolibri version: 0.7
  • Operating system: Ubuntu 14.04
  • Browser: Firefox

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:28 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
benjaomingcommented, May 9, 2019

Also we don’t seem to support Trusty anymore really? I know that it isn’t stated in the latest docs, it was intentionally removed after Trusty reached end of life 9 days ago.

Trusty is still the default VM on Travis CI, so in reality, we might keep supporting it for a bit 😃

0reactions
indirectlylitcommented, Apr 4, 2019

thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Software Packages in "trusty" - Ubuntu
Software Packages in "trusty". 0ad (0.0.15+dfsg-3) [universe]: Real-time strategy game of ancient warfare; 0ad-data (0.0.15-1) [universe]: Real-time ...
Read more >
Error when installing from repo: can't add pgp key, can't meet ...
Error when installing from repo: can't add pgp key, can't meet dependencies. Using Ubuntu 14.04LTS in a LXC container. #28371.
Read more >
Unable to install Python packages using pip in Ubuntu Linux
To fix it without upgrading Python, we need to install relevant packages manually, resolving dependencies: PyOpenSSL and cryptography (its ...
Read more >
Installation — Cryptography 39.0.0.dev1 documentation
pip install cryptography. If this does not work please upgrade your pip first, as that is the single most common cause of installation...
Read more >
Installing the host agent on Linux - IBM
Eclipse OpenJ9 11 bundled packages ... Ubuntu Linux 14.04 (trusty); Ubuntu Linux 16.04 (xenial) ... No provider of 'instana-agent-static' found.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found