Unable to set up minion (TypeError: string indices must be integers, not str)

244 views
Skip to first unread message

Anush Jayaraman

unread,
Feb 18, 2015, 7:24:27 PM2/18/15
to salt-...@googlegroups.com
hello, I'm working on setting up an automation framework for my dev team. I read about salt stack and was wanting try this one out. I managed to configure it on my system running mac os x (mavericks) and another machine that I borrowed which os x as well (yosemite). I successfully started salt-master on my machine and salt-slave on the other machine. When I try to enable to the minion machine I'm seeing the following error. Can someone help me resolve this? Thanks in advance

Config on minion machine -- 

           Salt: 2014.7.2
         Python: 2.7.5 (default, Mar  9 2014, 22:15:05)
         Jinja2: 2.7.3
       M2Crypto: 0.21.1
 msgpack-python: 0.4.5
   msgpack-pure: Not Installed
       pycrypto: 2.6.1
        libnacl: Not Installed
         PyYAML: 3.11
          ioflo: Not Installed
          PyZMQ: 14.5.0
           RAET: Not Installed
            ZMQ: 4.0.5
           Mako: Not Installed

[ERROR   ] An un-handled exception was caught by salt's global exception handler:
TypeError: string indices must be integers, not str
Traceback (most recent call last):
  File "/usr/local/bin/salt-minion", line 9, in <module>
    load_entry_point('salt==2014.7.0', 'console_scripts', 'salt-minion')()
  File "/Library/Python/2.7/site-packages/salt/scripts.py", line 57, in salt_minion
    minion.start()
  File "/Library/Python/2.7/site-packages/salt/__init__.py", line 262, in start
    self.prepare()
  File "/Library/Python/2.7/site-packages/salt/__init__.py", line 241, in prepare
    self.minion = salt.minion.Minion(self.config)
  File "/Library/Python/2.7/site-packages/salt/minion.py", line 604, in __init__
    opts['environment'],
  File "/Library/Python/2.7/site-packages/salt/pillar/__init__.py", line 91, in compile_pillar
    ret_pillar = self.sreq.crypted_transfer_decode_dictentry(load, dictkey='pillar', tries=3, timeout=7200)
  File "/Library/Python/2.7/site-packages/salt/transport/__init__.py", line 245, in crypted_transfer_decode_dictentry
    aes = key.private_decrypt(ret['key'], 4)
TypeError: string indices must be integers, not str
Traceback (most recent call last):
  File "/usr/local/bin/salt-minion", line 9, in <module>
    load_entry_point('salt==2014.7.0', 'console_scripts', 'salt-minion')()
  File "/Library/Python/2.7/site-packages/salt/scripts.py", line 57, in salt_minion
    minion.start()
  File "/Library/Python/2.7/site-packages/salt/__init__.py", line 262, in start
    self.prepare()
  File "/Library/Python/2.7/site-packages/salt/__init__.py", line 241, in prepare
    self.minion = salt.minion.Minion(self.config)
  File "/Library/Python/2.7/site-packages/salt/minion.py", line 604, in __init__
    opts['environment'],
  File "/Library/Python/2.7/site-packages/salt/pillar/__init__.py", line 91, in compile_pillar
    ret_pillar = self.sreq.crypted_transfer_decode_dictentry(load, dictkey='pillar', tries=3, timeout=7200)
  File "/Library/Python/2.7/site-packages/salt/transport/__init__.py", line 245, in crypted_transfer_decode_dictentry
    aes = key.private_decrypt(ret['key'], 4)
TypeError: string indices must be integers, not str

Anush Jayaraman

unread,
Feb 18, 2015, 7:32:55 PM2/18/15
to salt-...@googlegroups.com
Worked after installing pycrypto on the master!

Thank you
Reply all
Reply to author
Forward
0 new messages