simpleflow
simpleflow copied to clipboard
Error retrieving credentials
Traceback (most recent call last):
File "/usr/local/bin/simpleflow", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/simpleflow/command.py", line 524, in standalone
ex.run_id,
File "/usr/local/lib/python2.7/dist-packages/simpleflow/swf/helpers.py", line 41, in get_workflow_execution
workflow_execution = action(**keywords)
File "/usr/local/lib/python2.7/dist-packages/swf/querysets/workflow.py", line 489, in get
open_counts=response['openCounts'],
File "/usr/local/lib/python2.7/dist-packages/swf/querysets/workflow.py", line 446, in to_WorkflowExecution
execution_info['workflowType']['version']
File "/usr/local/lib/python2.7/dist-packages/swf/utils.py", line 159, in __new__
new = mutableclass(*args, **kw) # __init__ gets called while still mutable
File "/usr/local/lib/python2.7/dist-packages/swf/models/workflow.py", line 129, in __init__
super(self.__class__, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/simpleflow/utils/retry.py", line 48, in decorated
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/swf/core.py", line 48, in __init__
boto.swf.connect_to_region(self.region, **settings_))
File "/usr/local/lib/python2.7/dist-packages/boto/swf/__init__.py", line 45, in connect_to_region
return region.connect(**kw_params)
File "/usr/local/lib/python2.7/dist-packages/boto/regioninfo.py", line 187, in connect
return self.connection_cls(region=self, **kw_params)
File "/usr/local/lib/python2.7/dist-packages/boto/swf/layer1.py", line 85, in __init__
debug, session_token, profile_name=profile_name)
File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 555, in __init__
profile_name)
File "/usr/local/lib/python2.7/dist-packages/boto/provider.py", line 201, in __init__
self.get_credentials(access_key, secret_key, security_token, profile_name)
File "/usr/local/lib/python2.7/dist-packages/boto/provider.py", line 377, in get_credentials
self._populate_keys_from_metadata_server()
File "/usr/local/lib/python2.7/dist-packages/boto/provider.py", line 394, in _populate_keys_from_metadata_server
creds = self._get_credentials_from_metadata(metadata)
File "/usr/local/lib/python2.7/dist-packages/boto/provider.py", line 424, in _get_credentials_from_metadata
"%s" % (msg))
boto.exception.InvalidInstanceMetadataError: Expected a dict type of credentials instead received an empty string
You can set the 'metadata_service_num_attempts' in your boto config file to increase the number of times boto will attempt to retrieve credentials from the instance metadata service.
Obviously a boto error, but if we can make something at simpleflow level..