Docker container keeps restarting

I recently switched from virtual machines that hosts my home-assistant setup to Docker, hosted on Alpine Linux and experience some restarts of home-assistant. I recreated the container already to 0.66.1 after I’ve seen the issue in 0.66.0. I traced down the following (part of the-) error in the logging from docker logs:

I’m not that experienced in Docker yet, but someone can give me a direction to resolve this one?

2018-04-05T13:34:33.215369998Z  Fatal Python error: GC object already tracked
2018-04-05T13:34:33.215398784Z  
2018-04-05T13:34:33.215404918Z  Current thread 0x000076a2ebfff700 (most recent call first):
2018-04-05T13:34:33.215410115Z    File "/usr/local/lib/python3.6/site-packages/pydispatch/robustapply.py", line 54 in <listcomp>
2018-04-05T13:34:33.215415717Z    File "/usr/local/lib/python3.6/site-packages/pydispatch/robustapply.py", line 54 in robustApply
2018-04-05T13:34:33.215431873Z    File "/usr/local/lib/python3.6/site-packages/pydispatch/dispatcher.py", line 338 in send
2018-04-05T13:34:33.215443917Z    File "/usr/local/lib/python3.6/site-packages/openzwave/network.py", line 1504 in _handle_value_changed
2018-04-05T13:34:33.215487167Z    File "/usr/local/lib/python3.6/site-packages/openzwave/network.py", line 952 in zwcallback
2018-04-05T13:34:33.215493049Z  
2018-04-05T13:34:33.215497716Z  Thread 0x000076a2deffd700 (most recent call first):
2018-04-05T13:34:33.215514015Z    File "/usr/local/lib/python3.6/threading.py", line 299 in wait
2018-04-05T13:34:33.215534006Z    File "/usr/local/lib/python3.6/threading.py", line 551 in wait
2018-04-05T13:34:33.215564236Z    File "/usr/local/lib/python3.6/threading.py", line 1180 in run
2018-04-05T13:34:33.215592006Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.215616904Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.215636271Z  
2018-04-05T13:34:33.215649514Z  Thread 0x000076a2ddffb700 (most recent call first):
2018-04-05T13:34:33.215654974Z    File "/usr/local/lib/python3.6/threading.py", line 299 in wait
2018-04-05T13:34:33.215666903Z    File "/usr/local/lib/python3.6/threading.py", line 551 in wait
2018-04-05T13:34:33.215690638Z    File "/usr/local/lib/python3.6/threading.py", line 1180 in run
2018-04-05T13:34:33.215720571Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.215751184Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.215756740Z  
2018-04-05T13:34:33.215761702Z  Thread 0x000076a2dd7fa700 (most recent call first):
2018-04-05T13:34:33.215779121Z    File "/usr/local/lib/python3.6/selectors.py", line 376 in select
2018-04-05T13:34:33.215809615Z    File "/usr/local/lib/python3.6/socketserver.py", line 236 in serve_forever
2018-04-05T13:34:33.215835745Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.215868582Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.215893528Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.215899183Z  
2018-04-05T13:34:33.215903839Z  Thread 0x000076a2e9ffb700 (most recent call first):
2018-04-05T13:34:33.215919893Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.215937869Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.215978464Z    File "/usr/local/lib/python3.6/site-packages/pyhap/accessory_driver.py", line 234 in send_events
2018-04-05T13:34:33.216007115Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.216038850Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.216066146Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.216071881Z  
2018-04-05T13:34:33.216076749Z  Thread 0x000076a300d92700 (most recent call first):
2018-04-05T13:34:33.216088433Z    File "/usr/local/lib/python3.6/socket.py", line 586 in readinto
2018-04-05T13:34:33.216121440Z    File "/usr/local/lib/python3.6/http/client.py", line 493 in readinto
2018-04-05T13:34:33.216145453Z    File "/usr/local/lib/python3.6/http/client.py", line 449 in read
2018-04-05T13:34:33.216177366Z    File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 384 in read
2018-04-05T13:34:33.216253841Z    File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 436 in stream
2018-04-05T13:34:33.216262628Z    File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 745 in generate
2018-04-05T13:34:33.216319019Z    File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 789 in iter_lines
2018-04-05T13:34:33.216353439Z    File "/usr/local/lib/python3.6/site-packages/pyhik/hikvision.py", line 385 in alert_stream
2018-04-05T13:34:33.216365763Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.216382936Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.216409649Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.216415357Z  
2018-04-05T13:34:33.216420581Z  Thread 0x000076a301593700 (most recent call first):
2018-04-05T13:34:33.216430886Z    File "/usr/local/lib/python3.6/socket.py", line 586 in readinto
2018-04-05T13:34:33.216456564Z    File "/usr/local/lib/python3.6/http/client.py", line 493 in readinto
2018-04-05T13:34:33.216482454Z    File "/usr/local/lib/python3.6/http/client.py", line 449 in read
2018-04-05T13:34:33.216518882Z    File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 384 in read
2018-04-05T13:34:33.216555229Z    File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 436 in stream
2018-04-05T13:34:33.216595401Z    File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 745 in generate
2018-04-05T13:34:33.216633502Z    File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 789 in iter_lines
2018-04-05T13:34:33.216670589Z    File "/usr/local/lib/python3.6/site-packages/pyhik/hikvision.py", line 385 in alert_stream
2018-04-05T13:34:33.216694939Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.216733580Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.216749179Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.216754836Z  
2018-04-05T13:34:33.216768945Z  Thread 0x000076a301d94700 (most recent call first):
2018-04-05T13:34:33.216781026Z    File "/usr/local/lib/python3.6/threading.py", line 299 in wait
2018-04-05T13:34:33.216808099Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1742 in wait
2018-04-05T13:34:33.216840806Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1207 in run
2018-04-05T13:34:33.216867508Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.216898913Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.216904373Z  
2018-04-05T13:34:33.216909086Z  Thread 0x000076a302595700 (most recent call first):
2018-04-05T13:34:33.216928681Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1128 in run
2018-04-05T13:34:33.216962187Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.216986732Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217019696Z  
2018-04-05T13:34:33.217025518Z  Thread 0x000076a3034ef700 (most recent call first):
2018-04-05T13:34:33.217037703Z    File "/usr/local/lib/python3.6/site-packages/serial/serialposix.py", line 450 in read
2018-04-05T13:34:33.217067837Z    File "/usr/local/lib/python3.6/site-packages/RFXtrx/__init__.py", line 609 in receive_blocking
2018-04-05T13:34:33.217104084Z    File "/usr/local/lib/python3.6/site-packages/RFXtrx/__init__.py", line 730 in _connect
2018-04-05T13:34:33.217128275Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.217191498Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217199181Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217204466Z  
2018-04-05T13:34:33.217209183Z  Thread 0x000076a303fff700 (most recent call first):
2018-04-05T13:34:33.217221649Z    File "/usr/local/lib/python3.6/threading.py", line 299 in wait
2018-04-05T13:34:33.217253399Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1742 in wait
2018-04-05T13:34:33.217287419Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1207 in run
2018-04-05T13:34:33.217302276Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217345897Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217351918Z  
2018-04-05T13:34:33.217356633Z  Thread 0x000076a308f30700 (most recent call first):
2018-04-05T13:34:33.217370695Z    File "/usr/local/lib/python3.6/site-packages/zeroconf.py", line 1128 in run
2018-04-05T13:34:33.217402664Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217429484Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217435115Z  
2018-04-05T13:34:33.217439891Z  Thread 0x000076a321ffb700 (most recent call first):
2018-04-05T13:34:33.217453928Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.217478587Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.217508533Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.217535915Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.217566073Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217593400Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217598954Z  
2018-04-05T13:34:33.217603624Z  Thread 0x000076a3227fc700 (most recent call first):
2018-04-05T13:34:33.217622716Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.217645071Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.217675353Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.217699952Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.217728991Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217753542Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217758975Z  
2018-04-05T13:34:33.217772760Z  Thread 0x000076a322ffd700 (most recent call first):
2018-04-05T13:34:33.217785171Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.217805410Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.217835105Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.217858978Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.217893925Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.217932018Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.217949630Z  
2018-04-05T13:34:33.217954919Z  Thread 0x000076a3237fe700 (most recent call first):
2018-04-05T13:34:33.217995555Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221265452Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221276086Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221281554Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221286688Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221291735Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221296626Z  
2018-04-05T13:34:33.221301370Z  Thread 0x000076a323fff700 (most recent call first):
2018-04-05T13:34:33.221306073Z    File "/usr/local/lib/python3.6/socket.py", line 144 in __init__
2018-04-05T13:34:33.221311024Z    File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 64 in create_connection
2018-04-05T13:34:33.221316047Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141 in _new_conn
2018-04-05T13:34:33.221320905Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 284 in connect
2018-04-05T13:34:33.221328837Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850 in _validate_conn
2018-04-05T13:34:33.221334180Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346 in _make_request
2018-04-05T13:34:33.221339193Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601 in urlopen
2018-04-05T13:34:33.221353147Z    File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440 in send
2018-04-05T13:34:33.221358594Z    File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618 in send
2018-04-05T13:34:33.221363616Z    File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508 in request
2018-04-05T13:34:33.221368613Z    File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 58 in request
2018-04-05T13:34:33.221373419Z    File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 72 in get
2018-04-05T13:34:33.221378166Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 185 in _get
2018-04-05T13:34:33.221383180Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 198 in _get_json
2018-04-05T13:34:33.221388169Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 192 in _get_json_with_retry
2018-04-05T13:34:33.221393287Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 153 in camera_event_motion_enum
2018-04-05T13:34:33.221398296Z    File "/usr/local/lib/python3.6/site-packages/synology/surveillance_station.py", line 25 in update
2018-04-05T13:34:33.221403395Z    File "/usr/src/app/homeassistant/components/camera/synology.py", line 115 in update
2018-04-05T13:34:33.221409318Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56 in run
2018-04-05T13:34:33.221414502Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 69 in _worker
2018-04-05T13:34:33.221419497Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221424332Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221429187Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221433932Z  
2018-04-05T13:34:33.221438534Z  Thread 0x000076a340be7700 (most recent call first):
2018-04-05T13:34:33.221444445Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221449543Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221454373Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221459249Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221463922Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221468860Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221473851Z  
2018-04-05T13:34:33.221478275Z  Thread 0x000076a3413e8700 (most recent call first):
2018-04-05T13:34:33.221482878Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221487610Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221492401Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221501678Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221506878Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221511913Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221516795Z  
2018-04-05T13:34:33.221521059Z  Thread 0x000076a341be9700 (most recent call first):
2018-04-05T13:34:33.221525746Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221530699Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221535459Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221540383Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221545152Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221549996Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221554739Z  
2018-04-05T13:34:33.221559252Z  Thread 0x000076a3427fc700 (most recent call first):
2018-04-05T13:34:33.221563840Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221568778Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221573504Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221578844Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221583889Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221588572Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221593470Z  
2018-04-05T13:34:33.221597910Z  Thread 0x000076a342ffd700 (most recent call first):
2018-04-05T13:34:33.221602766Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221607522Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221612252Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221617193Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221622033Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221626904Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221631671Z  
2018-04-05T13:34:33.221636182Z  Thread 0x000076a3437fe700 (most recent call first):
2018-04-05T13:34:33.221640906Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221645819Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.221654656Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.221659897Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221664719Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221669417Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221674351Z  
2018-04-05T13:34:33.221678733Z  Thread 0x000076a343fff700 (most recent call first):
2018-04-05T13:34:33.221683522Z    File "/usr/local/lib/python3.6/ssl.py", line 631 in read
2018-04-05T13:34:33.221688261Z    File "/usr/local/lib/python3.6/ssl.py", line 871 in read
2018-04-05T13:34:33.221692966Z    File "/usr/local/lib/python3.6/ssl.py", line 1009 in recv_into
2018-04-05T13:34:33.221697926Z    File "/usr/local/lib/python3.6/socket.py", line 586 in readinto
2018-04-05T13:34:33.221703056Z    File "/usr/local/lib/python3.6/http/client.py", line 258 in _read_status
2018-04-05T13:34:33.221707852Z    File "/usr/local/lib/python3.6/http/client.py", line 297 in begin
2018-04-05T13:34:33.221712782Z    File "/usr/local/lib/python3.6/http/client.py", line 1331 in getresponse
2018-04-05T13:34:33.221717538Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383 in _make_request
2018-04-05T13:34:33.221722445Z    File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601 in urlopen
2018-04-05T13:34:33.221727242Z    File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 440 in send
2018-04-05T13:34:33.221732223Z    File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618 in send
2018-04-05T13:34:33.221737718Z    File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508 in request
2018-04-05T13:34:33.221742760Z    File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 58 in request
2018-04-05T13:34:33.221747476Z    File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 72 in get
2018-04-05T13:34:33.221752206Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 185 in _get
2018-04-05T13:34:33.221757159Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 198 in _get_json
2018-04-05T13:34:33.221762006Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 192 in _get_json_with_retry
2018-04-05T13:34:33.221766823Z    File "/usr/local/lib/python3.6/site-packages/synology/api.py", line 153 in camera_event_motion_enum
2018-04-05T13:34:33.221771674Z    File "/usr/local/lib/python3.6/site-packages/synology/surveillance_station.py", line 25 in update
2018-04-05T13:34:33.221777417Z    File "/usr/src/app/homeassistant/components/camera/synology.py", line 115 in update
2018-04-05T13:34:33.221817783Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56 in run
2018-04-05T13:34:33.221843360Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 69 in _worker
2018-04-05T13:34:33.221862492Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.221907544Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.221928134Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.221943208Z  
2018-04-05T13:34:33.221951897Z  Thread 0x000076a354c7b700 (most recent call first):
2018-04-05T13:34:33.221960457Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.221992760Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222024956Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.222062810Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.222095095Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222127063Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222133897Z  
2018-04-05T13:34:33.222139166Z  Thread 0x000076a3554fc700 (most recent call first):
2018-04-05T13:34:33.222153120Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.222203114Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222213279Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.222270267Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.222287347Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222328259Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222334934Z  
2018-04-05T13:34:33.222340290Z  Thread 0x000076a355cfd700 (most recent call first):
2018-04-05T13:34:33.222368962Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.222394526Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222418265Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.222445750Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.222487194Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222519991Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222528602Z  
2018-04-05T13:34:33.222533591Z  Thread 0x000076a35e1a9700 (most recent call first):
2018-04-05T13:34:33.222549451Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.222579033Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222592809Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.222610975Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.222641249Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222660366Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222668065Z  
2018-04-05T13:34:33.222671408Z  Thread 0x000076a35e9aa700 (most recent call first):
2018-04-05T13:34:33.222696689Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.222704528Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222730072Z    File "/usr/src/app/homeassistant/components/recorder/__init__.py", line 283 in run
2018-04-05T13:34:33.222751870Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222795091Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222802713Z  
2018-04-05T13:34:33.222807679Z  Thread 0x000076a374cb9700 (most recent call first):
2018-04-05T13:34:33.222823882Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.222829427Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.222858201Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.222882840Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.222914276Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.222938408Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.222943973Z  
2018-04-05T13:34:33.222955895Z  Thread 0x000076a3754fa700 (most recent call first):
2018-04-05T13:34:33.222968092Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.223019237Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.223027220Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.223049747Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.223076045Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.223108722Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.223114762Z  
2018-04-05T13:34:33.223119685Z  Thread 0x000076a375cfb700 (most recent call first):
2018-04-05T13:34:33.223131037Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.223160234Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.223190857Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.223215429Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.223241774Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.223273833Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.223279266Z  
2018-04-05T13:34:33.223284113Z  Thread 0x000076a3765fc700 (most recent call first):
2018-04-05T13:34:33.223301702Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.223319509Z    File "/usr/local/lib/python3.6/queue.py", line 164 in get
2018-04-05T13:34:33.223355583Z    File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 67 in _worker
2018-04-05T13:34:33.223382226Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.223413960Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.223437729Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.223443191Z  
2018-04-05T13:34:33.223456824Z  Thread 0x000076a376dfd700 (most recent call first):
2018-04-05T13:34:33.223468532Z    File "/usr/local/lib/python3.6/threading.py", line 295 in wait
2018-04-05T13:34:33.223504304Z    File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 427 in result
2018-04-05T13:34:33.223532239Z    File "/usr/src/app/homeassistant/util/logging.py", line 83 in _process
2018-04-05T13:34:33.223556148Z    File "/usr/local/lib/python3.6/threading.py", line 864 in run
2018-04-05T13:34:33.223585963Z    File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner
2018-04-05T13:34:33.223615080Z    File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrap
2018-04-05T13:34:33.223620771Z  
2018-04-05T13:34:33.223625512Z  Thread 0x000076a38167d700 (most recent call first):
2018-04-05T13:34:33.223643115Z    File "/usr/src/app/homeassistant/core.py", line 154 in start
2018-04-05T13:34:33.223678357Z    File "/usr/src/app/homeassistant/__main__.py", line 289 in setup_and_run_hass
2018-04-05T13:34:33.223714389Z    File "/usr/src/app/homeassistant/__main__.py", line 363 in main
2018-04-05T13:34:33.223742783Z    File "/usr/src/app/homeassistant/__main__.py", line 371 in <module>
2018-04-05T13:34:33.223780138Z    File "/usr/local/lib/python3.6/runpy.py", line 85 in _run_code
2018-04-05T13:34:33.223789283Z    File "/usr/local/lib/python3.6/runpy.py", line 193 in _run_module_as_main

Do you have any issues running any other Docker containers? Are you passing through any volume bind mounts (might have a permission issue on the host storage)? Did you set it to net=host?

I have issues with node-red, doesn’t start at all (keeps restarting without logging?)… But I’ve got 4 other containers running without issues.

To HA I mounted localtime, the config location and /dev. /dev is mounted because I remapped the Zwave and RFXCom USB dongles with udev.

HA is connected to the host-network yes.

are you mapping to /dev directly or to /dev/<zwavedevice>?

That could be your issue if you are mapping /dev to /dev

This issue is permissions related. Chmod 777 the logging volume bind mount and the config mount

1 Like

Thanks flamingm0e, I changed the docker-compose.yml for home-assistant with your suggestion. Time will tell… :slight_smile:

The node-red is another issue, but no success with Chmod the config volume mount (don’t have a logging volume mount). Docker shows nothing in the logging, only the following events:

2018-04-05T19:51:14.954969717+02:00 network connect 64ab785ab428b7ab6a2e8f4892b40dd854a57b7396a19e4bd4c84b49e327b141 (container=dbec6dd44d9cab170f7466071178e9e094458c952a1cc07b263691bf60b6f151, name=bridge, type=bridge)
2018-04-05T19:51:15.253476856+02:00 container start dbec6dd44d9cab170f7466071178e9e094458c952a1cc07b263691bf60b6f151 (com.docker.compose.config-hash=11262ff4ea5a070613064dc7e308cc0e9bfc1b94960421b268f8d1c100d0193a, com.docker.compose.container-number=1, com.docker.compose.oneoff=False, com.docker.compose.project=docker, com.docker.compose.service=nodered, com.docker.compose.version=1.20.1, image=nodered/node-red-docker:slim, name=node-red)
2018-04-05T19:51:15.338917464+02:00 container die dbec6dd44d9cab170f7466071178e9e094458c952a1cc07b263691bf60b6f151 (com.docker.compose.config-hash=11262ff4ea5a070613064dc7e308cc0e9bfc1b94960421b268f8d1c100d0193a, com.docker.compose.container-number=1, com.docker.compose.oneoff=False, com.docker.compose.project=docker, com.docker.compose.service=nodered, com.docker.compose.version=1.20.1, exitCode=139, image=nodered/node-red-docker:slim, name=node-red)
2018-04-05T19:51:15.551257125+02:00 network disconnect 64ab785ab428b7ab6a2e8f4892b40dd854a57b7396a19e4bd4c84b49e327b141 (container=dbec6dd44d9cab170f7466071178e9e094458c952a1cc07b263691bf60b6f151, name=bridge, type=bridge)

Just an FYI: If you want to use Node-Red with Home Assistant, you will need tag v8

Still restarts, do you have maybe another direction? :slight_smile:

for what it’s worth, I fixed the restarting problem by changing the permission of my container folders to 777

Thanks! One year ago I rebuild my docker host with Ubuntu and after that no single issue anymore. Alpine was not for me I quess :slight_smile: