@Aephir wrote:
I recently upgraded my hardware to a used server. I am running everything in docker, and have successfully moved pretty much everything. But after moving, I’ve had issues with the database, and the logs. Not sure if they are related.
The log no longer shows in the UI. I can manually read the file when I SSH into the server.
I don’t seem to have MariaDB working any longer. Home assistant can’t show history graphs, history or logbook (says “
No logbook entries found.
”, but the history just loads forever with nothing showing).As for why the log won’t load in UI, I’m completely blank. No idea what to even try (file is owned by
aephir
, but everyone has read access).For MariaDB I have completely removed containers, image, and persistent data, and re-pulled it. I’m using docker-compose with this service:
hass_db: image: mariadb:latest container_name: hass_db environment: MYSQL_ROOT_PASSWORD: SECRET MYSQL_DATABASE: homeassistant MYSQL_USER: homeassistant MYSQL_PASSWORD: SECRET restart: on-failure volumes: - /mnt/data/docker/hass_db:/var/lib/mysql networks: mynet: ipv4_address: 172.11.0.7
for recorder config, I have:
db_url: mysql://homeassistant:SECRET@172.11.0.7/homeassistant?charset=utf8 purge_interval: 2 purge_keep_days: 8
With a few
excludes
as well.This is the exact same config as on my old hardware. It is also basically the same MariaDB setup I am using (successfully) with a NextCloud container, so I think the issue is with Home Assistant. Could there be anything in the home assistant persistent dir that needs to be deleted, if re-creating the DB container?
The only thing in the log I don’t know what is:
2020-05-27 09:49:06 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1344, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 318, in recv_into raise SocketError(str(e)) OSError: (104, 'ECONNRESET') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 403, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1344, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 318, in recv_into raise SocketError(str(e)) urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(104, 'ECONNRESET')")) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/google_maps/device_tracker.py", line 74, in _update_info for person in self.service.get_all_people(): File "/usr/local/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 220, in get_all_people people = self.get_shared_people() + [self.get_authenticated_person()] File "/usr/local/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 177, in get_shared_people output = self._get_data() File "/usr/local/lib/python3.7/site-packages/cachetools/__init__.py", line 46, in wrapper v = func(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/locationsharinglib/locationsharinglib.py", line 160, in _get_data response = self._session.get(url, params=payload, verify=True) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 543, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(104, 'ECONNRESET')"))
Posts: 1
Participants: 1