Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with salt-cloud shows unknown locale error #645

Closed
AmitChotaliya opened this issue Aug 5, 2015 · 2 comments
Closed

not working with salt-cloud shows unknown locale error #645

AmitChotaliya opened this issue Aug 5, 2015 · 2 comments

Comments

@AmitChotaliya
Copy link

I am using salt-cloud to create instances and passing a specific version for salt-minion as script argument.

staging2-frontline:
  provider: aws
  image: ami-408c7f28
  size: m1.small
  securitygroup:
    - Staging-Global
    - Staging-FrontLine
  tag:
      circle: staging2
      type: frontline
  script: bootstrap-salt
  script_args: stable 2015.5

I am getting the following error.

* ERROR: salt-minion was not found running
 * ERROR: Failed to run daemons_running()!!!
nohup: ignoring input
Traceback (most recent call last):
  File "/usr/bin/salt-minion", line 6, in <module>
    from salt.scripts import salt_minion
  File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 68, in <module>
    __define_global_system_encoding_variable__()
  File "/usr/lib/python2.7/dist-packages/salt/__init__.py", line 42, in __define_global_system_encoding_variable__
    encoding = locale.getdefaultlocale()[-1]
  File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.7/locale.py", line 475, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
 * DEBUG: Running salt-minion by hand outputs:
 * DEBUG: DAEMON LOGS for minion:
 * DEBUG: 2015-08-05 14:57:47,477 [salt.cli.daemons ][INFO    ][4367] SeConnection to 10.170.64.36 closed.
tting up the Salt Minion "scrap2"
2015-08-05 14:57:48,624 [salt.minion      ][ERROR   ][4367] Invalid keyword 'str' for variable 'master_type'
2015-08-05 14:57:48,651 [salt.cli.daemons ][INFO    ][4367] The salt minion is shut down
2015-08-05 14:58:00,985 [salt.cli.daemons ][INFO    ][4414] Setting up the Salt Minion "scrap2"
2015-08-05 14:58:01,921 [salt.minion      ][ERROR   ][4414] Invalid keyword 'str' for variable 'master_type'
2015-08-05 14:58:01,922 [salt.cli.daemons ][INFO    ][4414] The salt minion is shut down
@AmitChotaliya AmitChotaliya changed the title not working with salt-cloud with minion version as script arg not working with salt-cloud when minion version passed as script arg Aug 5, 2015
@AmitChotaliya AmitChotaliya changed the title not working with salt-cloud when minion version passed as script arg not working with salt-cloud shows unknown locale error Aug 6, 2015
@AmitChotaliya
Copy link
Author

I even tried without passing any script args and it still does not work. I used it without passing any script args a month back It worked then.

@saltstack-bot
Copy link

Moved to saltstack/salt#26063.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants