Hapush always stops after several hours

Hello,

i am using HADashboard with an iPad Mini 1 and it works perfectly fine for the first 1-2 hours, afterwards hapush stops and no switch changes are pushed to the dashboard.

My Setup:
I am running Home Assistant (0.38.1, exactly the same error in 0.35.3 and 0.37.1) in a Docker container and there is also an NGINX as a proxy running.

At first, everything works perfectly fine:

2017-02-15 13:57:49,321 DEBUG Event type:state_changed:
2017-02-15 13:57:49,322 DEBUG Entity ID:switch.kitchen_spotlight:
2017-02-15 13:57:49,322 INFO switch.kitchen_spotlight -> on
2017-02-15 13:57:49,323 DEBUG http://10.0.1.3:3030/widgets/kitchen_spotlight
2017-02-15 13:57:49,324 DEBUG {'state': 'on'}
2017-02-15 13:57:49,337 DEBUG Event type:service_executed:
2017-02-15 13:57:49,357 DEBUG Event type:state_changed:
2017-02-15 13:57:49,357 DEBUG Entity ID:group.all_switches:

Here are the last few entries of the hapush.log. As you can see, there is no error or warning, it just stops.

2017-02-15 18:47:47,539 DEBUG Entity ID:media_player.apple_tv:
2017-02-15 18:47:50,520 DEBUG Event type:state_changed:
2017-02-15 18:47:50,521 DEBUG Entity ID:sensor.ram_free:
2017-02-15 18:47:58,533 DEBUG Event type:state_changed:
2017-02-15 18:47:58,535 DEBUG Entity ID:media_player.apple_tv:
2017-02-15 18:48:02,883 DEBUG Event type:mqtt_message_received:
2017-02-15 18:48:06,196 DEBUG Event type:mqtt_message_received:
2017-02-15 18:48:09,537 DEBUG Event type:state_changed:
2017-02-15 18:48:09,538 DEBUG Entity ID:media_player.apple_tv:

And the same, a few days ago:

2017-02-12 22:47:35,046 DEBUG Entity ID:sensor.dark_sky_wind_bearing:
2017-02-12 22:47:35,058 DEBUG Event type:state_changed:
2017-02-12 22:47:35,059 DEBUG Entity ID:sensor.dark_sky_apparent_temperature:
2017-02-12 22:47:35,070 DEBUG Event type:state_changed:
2017-02-12 22:47:35,071 DEBUG Entity ID:sensor.dark_sky_temperature:
2017-02-12 22:48:02,658 DEBUG Event type:mqtt_message_received:
2017-02-12 22:48:03,676 DEBUG Event type:mqtt_message_received:
2017-02-12 22:48:04,526 DEBUG Event type:state_changed:
2017-02-12 22:48:04,527 DEBUG Entity ID:sensor.time:
2017-02-12 22:48:04,538 DEBUG Event type:state_changed:
2017-02-12 22:48:04,539 DEBUG Entity ID:sensor.ram_free:
2017-02-12 22:48:30,533 DEBUG Event type:state_changed:
2017-02-12 22:48:30,534 DEBUG Entity ID:sun.sun:
2017-02-12 22:48:34,525 DEBUG Event type:state_changed:
2017-02-12 22:48:34,525 DEBUG Entity ID:sensor.ram_free:

Do you have any idea, how to debug this problem further?

I have seen something similar with AppDaemon and I believe it is an issue with the underlying SSE client library on certain platforms. What platform are you running on?

In the Upcoming version of HADasboard v2, this will not be an issue as I have moved to Websockets.

First of all: Thank your for working on this great project!!

HADashboard is running as an docker container, which runs an an iMac with macOS Sierra. To build the docker image I just used the Dockerfile from the HADashboard repo and added the debug flag in the last line.

Do you have any roadmap for the v2 release, yet?

This is the docker version:

Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      linux/amd64
 Experimental: true

I just made an announcement - I should have something in a couple of weeks,

cool! if you need a bug reporter who uses docker, just invite me to the beta.

Sure thing - it’s integrated into AppDaemon which has a Docker install. When I’m ready I’ll post a Beta announcement.