ImportError: 'pyOpenSSL' module missing required functionality. Raise ImportError("'pyOpenSSL' module missing required functionality. pyopenssl.inject_into_urllib3() # type: ignoreįile "/usr/lib/python2.7/site-packages/ urllib3-1.24.1-py2.7.egg/urllib3/contrib/pyopenssl.py", line 118, in inject_into_urllib3įile "/usr/lib/python2.7/site-packages/ urllib3-1.24.1-py2.7.egg/urllib3/contrib/pyopenssl.py", line 153, in _validate_dependencies_met Return get_distribution(dist).load_entry_point(group, name)įile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_pointįile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in loadĮntry = _import_(self.module_name, globals(),globals(), )įile "/usr/lib/python2.7/site-packages/certbot/main.py", line 2, inįrom certbot._internal import main as internal_mainįile "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 20, inįile "/usr/lib/python2.7/site-packages/certbot/_internal/account.py", line 18, inįrom acme.client import ClientBase # pylint: disable=unused-importįile "/usr/lib/python2.7/site-packages/acme/client.py", line 39, in 1 02-21-2010 linuxgeek Registered User 78, 0 sudo: no tty present and no askpass program specified Hi Gurus: Can you help me get out of this message I already commented out the ff line in /etc/sudoers file but still prompts me for this message. Im using adhoc way to run synchronize module as a sudo user nopasswd is not enabled to synchronize local and remote directories (push) Below is host file /etc/ansible/hosts. Load_entry_point('certbot=1.9.0', 'console_scripts', 'certbot')()įile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point ubuntu 14.04.3 LTS ansible version: 2.1.0, the sshport on remote server is 44022. Now I have again the original error message again: I uninstalled the pip things and reinstalled the yum versions: To replace pyOpenSSL yum version with pip. After the first error, I just followed an instruction I found Provider: python2-josepy.noarch 1.3.0-2.el7 Provider: python2-distro.noarch 1.2.0-3.el7 Provider: python2-configargparse.noarch 0.11.0-2.el7ĭependency: python2-cryptography >= 1.2.3 Provider: python2-acme.noarch 1.9.0-1.el7ĭependency: python2-configargparse >= 0.9.3 Provider: python-zope-component.noarch 1:4.1.0-5.el7 Provider: python-setuptools.noarch 0.9.8-7.el7 Provider: python2-parsedatetime.noarch 2.4-6.el7 The big one seems to be python2-certbot, but I can only see one level: ~]# rpm -q -requires python2-certbot I've tried googling and it seems impossible to find a yum/rpm dependency tree. ![]() I don't know how to walk a yum dependency tree to see what packages may need reinstalling. Sign up for free to subscribe to this conversation on GitHub. Optional: Login as new/temporary user and change the name/home dir of ubuntu user. add username ALL (ALL) NOPASSWD: ALL to /etc/sudoers killbill/killbill-cloud62. I'm still searching for that info myself actually).The problem is that pip could have overwritten files installed by yum. efenderbosch mentioned this issue on Oct 4, 2016. (Apologies for my point in the right direction instead of a perfect answer. This blog attempts to explain, but perhaps could have spent more time on the 'sudo' example: sudo: no tty present and no askpass program specified Build step Execute shell marked build as failure Finished: FAILURE Showing error like that. So the question is, how does one emulate the "-t" option inside the Paramiko object? There's your answer. Basics of sudo, tty and askpass First, we’ll take a look at sudo. Additionally, we’ll learn how to fix this error. Now the remote sudo runs fine inside SSH, no complaints about tty. Overview What does the sudo: no tty present and no askpass program specified error in Linux mean In this tutorial, we’ll answer this question by examining the sudo, tty, and askpass commands. See SSH inside SSH fails with 'stdin: is not a tty' for a more detailed explanation. If you pass a command to ssh, it assumes that the command doesn't need a terminal and doesn't create one, unless you pass -t. Localhost$ ssh -C 'sudo su - anotheruser ssh -t /run/this/executable' You need to have a terminal available to run sudo so that it can prompt you for the password. How do you fix this with bare ssh command? Pass in the -t, ex: In any case, you are able to run non-sudo commands using the above, but prefixing with sudo causes "no tty present". ![]() Maybe you're not allowed to touch sudoers or any other file on host2. (Why not SSH directly to the target box? Well, maybe SSH keys are only setup between host1 and host2, or the network is routed to prohibit host2 access w/o travelling through host1. Localhost$ ssh -C 'sudo su - anotheruser ssh /run/this/executable' FYI - may help you in your search - note you get the SAME error in plain SSH if you encapsulate one SSH command inside another, ex:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |