Even though I have abode set up properly in my configuration.yaml file, I keep getting the “the following components could not be set up” error. I just have the bare minimum in the config (username and password). Running hass --script check_config
shows no errors. Any suggestions?
Post your config and the error message.
Config is default with only this added:
abode:
username: [email protected]
password: password
Here’s the log:
2019-02-10 03:01:37 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2019-02-10 03:01:53 ERROR (Thread-4) [homeassistant.util.package] Unable to install package abodepy==0.15.0: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/shutil.py", line 544, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/colorlog-4.0.2.dist-info/DESCRIPTION.rst' -> '/tmp/pip-4sxnxpzi-uninstal$
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run
prefix=options.prefix_path,
File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/srv/homeassistant/lib/python3.5/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python3.5/shutil.py", line 559, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/colorlog-4.0.2.dist-info/DESCRIPTION.rst'
2019-02-10 03:01:53 ERROR (MainThread) [homeassistant.requirements] Not initializing abode because could not install requirement abodepy==0.15.0
2019-02-10 03:01:53 ERROR (MainThread) [homeassistant.setup] Setup failed for abode: Could not install all requirements.
Well it is fairly clear what is happening, the abode component is unable to install a dependency named abodepy, but I am unclear why.
Thanks for posting you logs though, hopefully someone will be along to help soon. @MisterWil. (?)
What’s your Home Assistant setup (I.e. Hassio, hassbian, etc.)?
Hassbian, fresh install yesterday.
Ah, okay. Unfortunately I don’t have another Raspberry Pi to test it out on. I was hoping to try to set it up to see if I could duplicate the issue. I did make a new HA install in a virtual environment on my computer and had no issues setting up the Abode component.
I use to run Hassbian with Abode without any issues but switched over to Hassio about two months ago. I would assume it’s the PermissionError
causing the issue, which doing a search on that line leads to this thread, which then points to this thread.
Reading through that thread, it looks like some folks identified some of the directories are owned by root instead of the homeassistant user, which was causing the issue. Running this seems to have fixed the issue for them:
sudo chown homeassistant:homeassistant -R /srv/homeassistant/
Another user claimed it was his SD card, which I guess is always a possibility.
Same, I had abode working in a virtual environment on my PC but I wanted to put it on a pi after testing it out on the PC. Thanks for the tips! I’ll give it a shot this afternoon.
Looks like it worked! Thanks for the help, I never would have found that.
No problem! Glad to hear it’s working. Not sure what changed but when I setup Hassbian in the past, I did not have any permission issues so who knows.
Switched to Hassio from hassbian, now my abode integration doesn’t seem to last more than 12 hours without failing. I get this error when I restart homeassistant after I notice abode isn’t working.
Error during setup of component abode
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 168, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x70d7b490>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='my.goabode.com', port=443): Max retries exceeded with url: /api/auth2/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x70d7b490>: Failed to establish a new connection: [Errno -3] Try again',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/abode.py", line 135, in setup
username, password, cache, name, polling, exclude, lights)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/abode.py", line 96, in __init__
get_automations=True, cache_path=cache)
File "/usr/local/lib/python3.6/site-packages/abodepy/__init__.py", line 99, in __init__
self.login()
File "/usr/local/lib/python3.6/site-packages/abodepy/__init__.py", line 132, in login
response = self._session.post(CONST.LOGIN_URL, json=login_data)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='my.goabode.com', port=443): Max retries exceeded with url: /api/auth2/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x70d7b490>: Failed to establish a new connection: [Errno -3] Try again',))
Any ideas? It almost looks like it’s getting a login error from using the wrong password but that doesn’t make sense.
Is there a limit on how many times you can access the url?
Not that I’m aware of. That’s also why this is confusing.
Well your first error that is produced from an invalid hostname.
Definitely seems like it! I think I’m just gonna do a wipe and clean install tonight. I’m getting some other weird errors related to chromecast even though they’re all working and even though the component in question is updating its status in HA, the automations associated with those status changes aren’t firing even though they used to work reliably.
Are the automations turned on?
Yep. I tried toggling them on and off several times as well. No record in the log of the automations firing either.
Fixed the automations but abode broke again after the clean install last night. Whenever it breaks I just need to change something in the abode config, change it back, and then save and restart. For instance, add a letter to the end of the password, delete it, save and restart. Then it fixes it for a time. Strange. No idea what to do.