hassio won’t start, this thread said it might be due to secrets.yaml, so I reverted all my secrets related changes. on raspberry pi 3, was trying to get secrets.yaml to work, but I keep getting errors. I removed all my “!secret” entries, and even renamed my secrets.yaml file. Now when I do the check prior to starting it says the check is fine, but I get the NoRegionError on start in logs.
Any clues or troubleshooting tips appreciated. Could some file/database have gotten corrupted?
Logs:
core-ssh:/config# hassio homeassistant check
Success homeassistant/check
core-ssh:/config# hassio homeassistant start
Error on homeassistant/start:
core-ssh:/config# hassio homeassistant logs
2017-10-06 17:19:10 INFO (SyncWorker_0) [botocore.vendored.requests.packages.urllib3.connectionpool] Starting new HTTP connection (1): 169.254.169.254
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.6/site-packages/homeassistant/__main__.py", line 374, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/homeassistant/__main__.py", line 366, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/usr/lib/python3.6/site-packages/homeassistant/__main__.py", line 272, in setup_and_run_hass
log_rotate_days=args.log_rotate_days, log_file=args.log_file)
File "/usr/lib/python3.6/site-packages/homeassistant/bootstrap.py", line 175, in from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days, log_file)
File "uvloop/loop.pyx", line 1203, in uvloop.loop.Loop.run_until_complete (uvloop/loop.c:25629)
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/asyncio/tasks.py", line 181, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/bootstrap.py", line 202, in async_from_config_file
conf_util.load_yaml_config_file, config_path)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/config.py", line 280, in load_yaml_config_file
conf_dict = load_yaml(config_path)
File "/usr/lib/python3.6/site-packages/homeassistant/util/yaml.py", line 70, in load_yaml
return yaml.load(conf_file, Loader=SafeLineLoader) or OrderedDict()
File "/usr/lib/python3.6/site-packages/yaml/__init__.py", line 72, in load
return loader.get_single_data()
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 37, in get_single_data
return self.construct_document(node)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 41, in construct_document
data = self.construct_object(node)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 86, in construct_object
data = constructor(self, node)
File "/usr/lib/python3.6/site-packages/homeassistant/util/yaml.py", line 171, in _ordered_dict
nodes = loader.construct_pairs(node)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 141, in construct_pairs
value = self.construct_object(value_node, deep=deep)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 86, in construct_object
data = constructor(self, node)
File "/usr/lib/python3.6/site-packages/homeassistant/util/yaml.py", line 198, in _construct_seq
obj, = loader.construct_yaml_seq(node)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 393, in construct_yaml_seq
data.extend(self.construct_sequence(node))
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 116, in construct_sequence
for child in node.value]
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 116, in <listcomp>
for child in node.value]
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 86, in construct_object
data = constructor(self, node)
File "/usr/lib/python3.6/site-packages/homeassistant/util/yaml.py", line 171, in _ordered_dict
nodes = loader.construct_pairs(node)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 141, in construct_pairs
value = self.construct_object(value_node, deep=deep)
File "/usr/lib/python3.6/site-packages/yaml/constructor.py", line 86, in construct_object
data = constructor(self, node)
File "/usr/lib/python3.6/site-packages/homeassistant/util/yaml.py", line 269, in _secret_yaml
pwd = credstash.getSecret(node.value, table=_SECRET_NAMESPACE)
File "/usr/lib/python3.6/site-packages/credstash.py", line 438, in getSecret
dynamodb = session.resource('dynamodb', region_name=region)
File "/usr/lib/python3.6/site-packages/boto3/session.py", line 389, in resource
aws_session_token=aws_session_token, config=config)
File "/usr/lib/python3.6/site-packages/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/usr/lib/python3.6/site-packages/botocore/session.py", line 828, in create_client
client_config=config, api_version=api_version)
File "/usr/lib/python3.6/site-packages/botocore/client.py", line 69, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/lib/python3.6/site-packages/botocore/client.py", line 222, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/lib/python3.6/site-packages/botocore/args.py", line 44, in get_client_args
endpoint_url, is_secure, scoped_config)
File "/usr/lib/python3.6/site-packages/botocore/args.py", line 101, in compute_client_args
service_name, region_name, endpoint_url, is_secure)
File "/usr/lib/python3.6/site-packages/botocore/client.py", line 295, in resolve
service_name, region_name)
File "/usr/lib/python3.6/site-packages/botocore/regions.py", line 122, in construct_endpoint
partition, service_name, region_name)
File "/usr/lib/python3.6/site-packages/botocore/regions.py", line 135, in _endpoint_for_partition
raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.