this message error appear when i trying to run test.ping command :
_error:
Failed to return clean data
retcode:
10
stderr:
ERROR: Unable to locate appropriate python command
stdout:
ERROR: salt requires python 2.6 or newer on target hosts, must have same major version as origin host
knowing that the version of python installed in both hosts (master and minion ) is the same
Related
So, when trying to enable ubuntu 22.04 on the chef client,
when running the command :
sudo chef-client --once -l info
i get this error:
ERROR: Running exception handlers
Running handlers complete
ERROR: Exception handlers complete
Chef Client failed. 60 resources updated in 39 seconds
FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
ERROR: bash[Install virtualenv] (<my_work_project_name>-python::python36 line 40) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '139'
after passing on the python recipe we have, i tried looking for solutions elsewhere but couldn't find any, thank you
i tried traversing through the actual default.rb file regarding this recipe, didn't see anything that would cause this issue , apart from something which might be related which is the fact it downloads resources from artifactory server , and it had 404 error when fething a package ,
also i tried doing the pip install env command , worked in the terminal, might be failing in the recipe from some reason
I am using gitlab for deployment and Packer for image automation and ansible for configuration management for creating windows image.
when I am trying to call ansible provisioner from packer it is throwing below error:
<default> Attempting python interpreter discovery
[WARNING]: Unhandled error in Python interpreter discovery for host default:
Using module file /usr/lib/python3.9/site-packages/ansible/modules/command.py
winrm or requests is not installed: No module named 'winrm'
Pipelining is enabled.
fatal: [default]: FAILED! => {
"msg": "winrm or requests is not installed: No module named 'winrm'"
also I am getting below ansible configs in output :
ansible-playbook 2.10.5
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.9.5 (default, Nov 24 2021, 21:19:13)
No config file found; using defaults
setting up inventory plugins
setting up inventory plugins
host_list declined parsing /tmp/packer-provisioner-ansible87uu7yu as it did not pass its verify_file() method
script declined parsing /tmp/packer-provisioner-ansible87uu7yu as it did not pass its verify_file() method
Can someone please suggest where it is getting stuck.. since I am already using winrm.ps1 for winrm installation before this ansible runs.. but it is still failing..
also .. I am not sure if ansible is failing for python or winrm
I have list of IP address stored in hosts_file in my local machine (windows) , running following code to run commands on remote linux servers from windows.
def set_hosts():
env.hosts = open('hosts_file.txt', 'r').readlines()
env.user = 'root'
def display_os():
run('ls -lart')
hosts_file.txt contains following entries
'192.168.56.101'
'192.168.56.102'
When I am executing above code getting following error
['192.168.56.101'] Executing task 'display_os'
['192.168.56.101'] run: ls -lart
Warning: Name lookup failed for '192.168.56.101'
Underlying exception:
getaddrinfo failed
['192.168.56.102'] Executing task 'display_os'
['192.168.56.102'] run: ls -lart
Warning: Name lookup failed for '192.168.56.102'
Underlying exception:
getaddrinfo failed
Done.
I have also checked on trailing spaces but not sure why error is thrown.
I am trying to upgrade my MacPorts. I ran sudo port -d selfupdate successfully after updating my xcode command line, but the problem is persisting. How can I successfully upgrade my outdated installations? I am running Mac Yosemite.
$ sudo port upgrade outdated
---> Fetching distfiles for python25
Error: python25 is not supported on Yosemite or later.
Error: org.macports.fetch for port python25 returned: unsupported platform
Please see the log file for port python25 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python25/python25/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
logfile:
$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python25/python25/main.log
version:1
:debug:main Executing org.macports.main (python25)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:fetch fetch phase started at Fri Jan 9 22:13:21 PST 2015
:notice:fetch ---> Fetching distfiles for python25
:debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
:error:fetch python25 is not supported on Yosemite or later.
:error:fetch org.macports.fetch for port python25 returned: unsupported platform
:debug:fetch Error code: NONE
:debug:fetch Backtrace: unsupported platform
while executing
"proc-pre-org.macports.fetch-fetch-0 org.macports.fetch"
("eval" body line 1)
invoked from within
"eval $pre $targetname"
:info:fetch Warning: targets not executed for python25: org.macports.destroot org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build
:notice:fetch Please see the log file for port python25 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python25/python25/main.log
I have installed the yowsub library (the latest version ) on my device ( Ubuntu 12.04 )
also I have obtained the request code by running this command
$ ./yowsup-cli --requestcode sms --config yowsup-cli.config
and then I registered it successfully using this command
$ ./yowsup-cli --register {MY-CODE} --config yowsup-cli.config
after that I entered the returned password in the configuration file.
but when I try to send messages by this command
$ ./yowsup-cli --send {Destination phone with it's country code} "Test message" --wait --config yowsup-cli.config
I have the following exception
Disconnected because close
I tried more than solution related to this issue but the result was the same exception.
I have solved the issue by downloading a new fork of the yowsube library from this link
http://mandroslabs.com/mandrosian/
and it's now working good.