![]() ![]() => Builds finished but no artifacts were created. > Ubuntu-18.04: Script exited with non-zero exit status: 1.Allowed exit codes are: Since options 2 and 3 require a TTY (sudo wont read from a pipe) it wont run if it cant. the user entered the correct source password. the user entered the correct target password. => Some builds didn't complete successfully and had errors: sudo will only run a program as a different user if one of these 3 conditions has been met (as far as passwords are concerned): the NOPASSWD option is specified. => Wait completed after 8 minutes 21 seconds ![]() => Ubuntu-18.04: Destroying virtual machine.īuild 'Ubuntu-18.04' errored after 8 minutes 21 seconds: Script exited with non-zero exit status: 1.Allowed exit codes are: I did: sudo usermod -a -G dialout zabbix So modbus. sudo: no tty present and no askpass program specified Google told me to either set the environment variable SSHASKPASS or to set askpass in the sudoers file. update, i tried again the modbus.get e now a got this. => Ubuntu-18.04: Stopping virtual machine. sudo: no tty present and no askpass program specified Ty Hamardaban i appreciate your tips. => Ubuntu-18.04: Provisioning step had errors: Running the cleanup provisioner, if present. => Ubuntu-18.04: sudo: no tty present and no askpass program specified => Ubuntu-18.04: Provisioning with shell script: /tmp/packer-shell382031289 => Ubuntu-18.04: Waiting for SSH to become available. => Ubuntu-18.04: Typing the boot command over VNC. This is the full error: => Ubuntu-18.04: Connecting to VNC over websocket. In ESXi I see the VM build and complete and reboot and it gets an IP and I get a SSH prompt briefly before Packer deletes the VM after I see the above message. I'm simply trying to deploy a Ubuntu 18.04 VM however at the end of the build I get this error in the packer console: sudo: no tty present and no askpass program specifiedĬommand I run: sudo packer build -var-file=variables.json build.json ![]() Try upgrading to v0.14 or newer.I'm been learning how to use Packer this week on my home lab where I have an ESXi 7 host. Steps to fix sudo: no tty present and no askpass program specified error in SSH: Allocate pseudo terminal when connecting via SSH. 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 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 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 The downside of this is the security risk from your password being displayed in the clear on your terminal window. This will issue a password prompt (' enter pw: ') that will display on your local host/terminal. I've tried googling and it seems impossible to find a yum/rpm dependency tree. Try: ssh userfoohost 'sudo -S p'enter pw: ' command '. I don't know how to walk a yum dependency tree to see what packages may need reinstalling. The problem is that pip could have overwritten files installed by yum. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |