salt icon indicating copy to clipboard operation
salt copied to clipboard

salt-minion could not run normally

Open jumping opened this issue 12 years ago • 4 comments

I got the following error messages from the salt-minion:

======
error messages from minion
======
2014-03-18 17:38:20,139 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
2014-03-18 17:38:38,162 [salt.state                                  ][ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/state.py", line 1371, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 470, in installed
    **kwargs)
  File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg5.py", line 554, in install
    return __salt__['pkg_resource.find_changes'](old, new)
KeyError: 'pkg_resource.find_changes'

2014-03-18 17:38:41,164 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
2014-03-18 17:39:03,950 [salt.state                                  ][ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/state.py", line 1371, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 470, in installed
    **kwargs)
  File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg5.py", line 554, in install
    return __salt__['pkg_resource.find_changes'](old, new)
KeyError: 'pkg_resource.find_changes'

2014-03-18 17:44:02,732 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
2014-03-18 17:44:15,737 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
2014-03-18 17:44:28,741 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
2014-03-18 17:44:41,746 [salt.crypt                                  ][WARNING ] SaltReqTimeoutError: Waited 3 seconds
======
versions
======

# salt-minion --versions-report
           Salt: 0.17.5
           Python: 2.6.8 (unknown, Nov  7 2012, 14:47:45)
          Jinja2: 2.5.5
          M2Crypto: 0.21.1
         msgpack-python: 0.1.12
         msgpack-pure: Not Installed
         pycrypto: 2.3
         PyYAML: 3.08
         PyZMQ: 13.1.0
         ZMQ: 3.2.2

jumping avatar Mar 18 '14 09:03 jumping

Could you please include the commands you were executing which triggered these errors, as well as any state files that were involved? I can't do any debugging without seeing the original states.

basepi avatar Mar 20 '14 22:03 basepi

[DEBUG   ] schedule.clean_proc_dir: Cleaning proc dir, pid 2004 still exists.
[DEBUG   ] I am ay-ads-hz-02 and I am not supposed to start any proxies.
[INFO    ] Minion is starting as user 'root'
[DEBUG   ] Minion 'ay-ads-hz-02' trying to tune in
[DEBUG   ] Minion PUB socket URI: ipc:///var/run/salt/minion/minion_event_92f8354798a247969315fc9935f498fc_pub.ipc
[DEBUG   ] Minion PULL socket URI: ipc:///var/run/salt/minion/minion_event_92f8354798a247969315fc9935f498fc_pull.ipc
[DEBUG   ] Setting zmq_reconnect_ivl to '100ms'
[DEBUG   ] Setting zmq_reconnect_ivl_max to '5100ms'
[DEBUG   ] Running scheduled job: __mine_interval
[DEBUG   ] schedule: This job was scheduled with jid_include, adding to cache (jid_include defaults to True)
[DEBUG   ] schedule: This job was scheduled with a max number of 2
[DEBUG   ] schedule.handle_func: Checking job against fun mine.update: {'tgt_type': 'glob', 'jid': '20140324113748421002', 'tgt': 'ay-ads-hz-02', 'pid': 2004, 'ret': '', 'user': 'sudo_ec2-user', 'arg': [], 'fun': 'state.highstate'}
[DEBUG   ] schedule.handle_func: adding this job to the jobcache with data {'fun': 'mine.update', 'jid': '20140324194700259880', 'pid': 2603, 'id': 'ay-ads-hz-02'}
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] Decrypting the current master AES key
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[WARNING ] SaltReqTimeoutError: Waited 3 seconds
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[WARNING ] SaltReqTimeoutError: Waited 3 seconds
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] Decrypting the current master AES key
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem

jumping avatar Mar 24 '14 11:03 jumping

Please provide the commands you ran, and state files that were involved. Just some logs will not suffice.

basepi avatar Mar 25 '14 21:03 basepi

Closing issue due to inactivity for several months and duplication information not provided. Thanks for the report.

ssgward avatar Nov 24 '14 22:11 ssgward