home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.45k stars 30.69k forks source link

hassio website not working #10243

Closed seicento closed 6 years ago

seicento commented 7 years ago

Hi

Im running newest hassio on rpi3.

When i plug power on my pi it starts fine and website works fine for a short time, maybe 15 minutes. then when i try to connect again on 192.168.1.200:8123 the website is not showing up. samba and ssh still works. I have set rpi to static ip adress but have allso tried with dhcp. ssh restart wil not get website working. I need to pull power to rpi to get it working???

```yaml homeassistant: # Name of the location where Home Assistant is running name: ---------- # Location required to calculate the time the sun rises and sets latitude: -------- longitude: ------ # Impacts weather/sunrise data (altitude above sea level in meters) elevation: 16 # metric for Metric, imperial for Imperial unit_system: metric # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones time_zone: Europe/Copenhagen # Customization file customize: !include customize.yaml # Show links to resources in log and frontend introduction: # Enables the frontend frontend: # Enables configuration UI config: http: # Secrets are defined in the file secrets.yaml api_password: ------ # Uncomment this if you are using SSL/TLS, running in Docker container, etc. # base_url: example.duckdns.org:8123 # Checks for available updates # Note: This component will send some information about your system to # the developers to assist with development of Home Assistant. # For more information, please see: # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/ updater: # Optional, allows Home Assistant developers to focus on popular components. # include_used_components: true # Discover some devices automatically discovery: # Allows you to issue voice commands from the frontend in enabled browsers conversation: # Enables support for tracking state changes over time history: # View all events in a logbook logbook: # Enables a map showing the location of tracked devices map: # Track the sun sun: # Weather prediction sensor: - platform: yr # Text to speech tts: - platform: google mqtt: broker: core-mosquitto sensor: - platform: mqtt state_topic: 'Sonoff_varme_garage/garage/Temperature' name: 'Temperature garage' unit_of_measurement: '°C' - platform: mqtt state_topic: 'Sonoff_varme_garage/garage/Humidity' name: 'Humidity garage' unit_of_measurement: '%' - platform: mqtt state_topic: 'Sonoff_varme_bryggers/bryggers/Temperature' name: 'Temperature bryggers' unit_of_measurement: '°C' - platform: mqtt state_topic: 'Sonoff_varme_bryggers/bryggers/Humidity' name: 'Humidity bryggers' unit_of_measurement: '%' switch: - platform: mqtt name: "Manuel tænd garage" state_topic: "Sonoff_varme_garage/Relay/State" command_topic: "Sonoff_varme_garage/GPIO/12" payload_on: "1" payload_off: "0" optimistic: false qos: 0 retain: true - platform: mqtt name: "Manuel tænd bryggers" state_topic: "Sonoff_varme_bryggers/Relay/State" command_topic: "Sonoff_varme_bryggers/GPIO/12" payload_on: "1" payload_off: "0" optimistic: false qos: 0 retain: true light: platform: limitlessled bridges: - host: 192.168.1.200 version: 1 port: 8899 groups: - number: 1 type: rgbw name: Spot - number: 2 type: rgbw name: Bordlampe - number: 3 type: rgbw name: Spisebord - number: 4 type: rgbw name: Bar - host: 192.168.1.131 version: 5 port: 8899 groups: - number: 1 name: Seng media_player: - platform: onkyo climate: - platform: generic_thermostat name: garage heater: switch.manuel_tnd_garage target_sensor: sensor.temperature_garage min_temp: 1 max_temp: 21 target_temp: 7 tolerance: 1 min_cycle_duration: seconds: 5 - platform: generic_thermostat name: bryggers heater: switch.manuel_tnd_bryggers target_sensor: sensor.temperature_bryggers min_temp: 10 max_temp: 26 target_temp: 23 tolerance: 0.3 min_cycle_duration: minutes: 5 group: ###faner default_view: view: yes entities: - group.stue - group.soveværelse - group.varme - group.familie stue: name: Stue view: yes entities: - light.bordlampe - light.spot - light.Spisebord - light.Bar soveværelse: name: Soveværelse view: yes entities: - light.seng varme: name: Varmestyring view: yes entities: - group.garage - group.bryggers personer: name: Familie view: yes entities: - device_tracker.lars - device_tracker.patrik - device_tracker.bettina - device_tracker.erikka multimedie: name: Multimedie view: yes entities: - media_player.shield - media_player.txnr579_0009b049e1a2 - media_player.larss_chromecast_audio - media_player.kkken__stue ####GROUPS Garage: name: garage entities: - climate.garage - sensor.humidity_garage - sensor.temperature_garage - switch.manuel_tnd_garage Bryggers: name: bryggers entities: - climate.bryggers - sensor.humidity_bryggers - sensor.temperature_bryggers - switch.manuel_tnd_bryggers camera: - platform: ffmpeg input: rtsp://admin:3990@192.168.1.222:554/cam/realmonitor?channel=1&subtype=1. name: Kamera vest - platform: ffmpeg input: rtsp://admin:3990@192.168.1.221:554/cam/realmonitor?channel=1&subtype=1. name: Kamera syd weblink: entities: - name: Pellmon url: http://192.168.1.122:8081 panel_iframe: router: title: 'Router' url: 'http://192.168.1.1' fyr: title: 'Pellmon' url: 'http://192.168.1.122:8081' ifttt: key: XXXXXX group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml device_tracker: !include device_trackers.yaml ```
Danielhiversen commented 7 years ago

Any errors in the log?

(I edited your post to remove the ifttt key, but you might want to change it to be sure.)

seicento commented 7 years ago

thanks. log is not loading image

Danielhiversen commented 7 years ago

You have some errors in the log that you should fix. But I do not see anything that should stop HA from running.

Is that the end of the log file?

seicento commented 7 years ago

there was one more line: image

seicento commented 7 years ago

fixed the errors but homepage still stops workin/responding. this time after 2 minutes image

Danielhiversen commented 7 years ago

Ok, but what is the content of the ha log? I think it should be tail -f /config/home-assistant.log Or you could try hassio homeassistant logs

seicento commented 7 years ago

The following errors have been logged this session:

2017-10-31 11:59:03 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=62 from 2017-10-31 10:15:22.088079) 2017-10-31 11:59:14 WARNING (MainThread) [homeassistant.setup] Setup of climate is taking over 10 seconds. 2017-10-31 11:59:15 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds. 2017-10-31 11:59:16 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds. 2017-10-31 11:59:16 WARNING (MainThread) [homeassistant.setup] Setup of camera is taking over 10 seconds. 2017-10-31 11:59:16 WARNING (MainThread) [homeassistant.setup] Setup of light is taking over 10 seconds. 2017-10-31 11:59:16 ERROR (MainThread) [homeassistant.components.climate.generic_thermostat] Unable to update from sensor: could not convert string to float: 'unknown' 2017-10-31 11:59:16 ERROR (MainThread) [homeassistant.components.climate.generic_thermostat] Unable to update from sensor: could not convert string to float: 'unknown' 2017-10-31 11:59:17 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds. 2017-10-31 11:59:27 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform onkyo is taking over 10 seconds. 2017-10-31 11:59:43 WARNING (SyncWorker_2) [netdisco.ssdp] Error fetching description at 192.168.1.146 2017-10-31 11:59:43 WARNING (SyncWorker_2) [netdisco.ssdp] Found malformed XML at http://192.168.1.111:9080: status=ok 2017-10-31 12:00:01 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.

seicento commented 7 years ago

log is very long image image image image image

Danielhiversen commented 7 years ago

Is that the log from after the website stop working?

seicento commented 7 years ago

yes

Danielhiversen commented 7 years ago

Is the log updating after the website stop working?

seicento commented 7 years ago

no

Danielhiversen commented 7 years ago

So the problem is not only the website, but that HA is crashing. Could you try with a simple configuration:


homeassistant:
  # Name of the location where Home Assistant is running
  name: test
  # Location required to calculate the time the sun rises and sets
  latitude: 10
  longitude: 40
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 16
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Copenhagen
  # Customization file

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: ------
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Track the sun
sun:
seicento commented 7 years ago

when using simple config it works. Found that with my own config file problem disapear when I remove ffmpeg camera feed :-( what can i do to fix it?

Danielhiversen commented 7 years ago

It seems that it is an unsolved issue: https://community.home-assistant.io/t/hassio-and-cameras/23811/39

seicento commented 7 years ago

Okay thanks. Hope that it will come to work one day. Do you think it will work with hassbian?

Danielhiversen commented 7 years ago

Probably, I am using ffmpeg platform with ubuntu.

seicento commented 6 years ago

Hi again. Hove now tried with hassbian and no luck. still not working

balloobbot commented 6 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

balloobbot commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍