core icon indicating copy to clipboard operation
core copied to clipboard

Multiple errors on 0.41.0

Open drock1985 opened this issue 9 years ago • 6 comments

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.40.0

Python release (python3 --version): 3.5.2

Component/platform: wake on lan systemmonitor

Description of problem: Cannot love systemmonitor (failed to install dependency psiutil == 5.2.0) wake_on_lane not initializing

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:


Traceback (if applicable):

17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'
17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'
17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'
17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'
17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'
17-03-25 20:28:26 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform wake_on_lan
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 43, in setup_platform
    add_devices([WOLSwitch(hass, name, host, mac_address, off_action)])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 59, in __init__
    self.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.5/subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ping'

Additional info:

drock1985 avatar Mar 25 '17 23:03 drock1985

FileNotFoundError: [Errno 2] No such file or directory: 'ping'

Can you show me your systemd file? cat /etc/systemd/system/home-assistant.service

flamechair avatar Mar 26 '17 02:03 flamechair

hi @iamtpage

This is the output from my /lib/systemd/system/[email protected] file:

Unit]
Description=Home Assistant
After=network.target

[Service]
Type=simple
User=homeassistant
# Make sure the virtualenv Python binary is used
Environment=VIRTUAL_ENV="/srv/homeassistant"
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target


drock1985 avatar Mar 26 '17 13:03 drock1985

Please try commenting out the two lines that start with "Environment=" like so: #Environment=... And restart HA

flamechair avatar Mar 26 '17 14:03 flamechair

hello again @iamtpage

What you suggested seems to fix the wake_on_lan and systemmonitor compoents; they are working great now, thanks. The only error i'm seeing now is in the sensor.iss component now:

17-03-26 11:47:03 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.iss
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.core] Unable to find service media_player/volume_set
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.core] Unable to find service light/turn_on
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.core] Unable to find service light/turn_on
17-03-26 11:47:03 WARNING (MainThread) [homeassistant.core] Unable to find service light/turn_on
17-03-26 11:47:03 WARNING (Thread-1) [homeassistant.components.emulated_hue] Alexa type is deprecated and will be removed in a future version
17-03-26 11:47:03 WARNING (Thread-1) [homeassistant.components.emulated_hue] Listen IP address not specified, auto-detected address is 192.168.86.129
17-03-26 11:47:08 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:08 WARNING (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
17-03-26 11:47:13 WARNING (MainThread) [homeassistant.setup] Setup of android_ip_webcam is taking over 10 seconds.
17-03-26 11:47:20 WARNING (MainThread) [homeassistant.components.sensor.statistics] variance requires at least two data points
17-03-26 11:47:20 WARNING (MainThread) [homeassistant.components.sensor.statistics] variance requires at least two data points
17-03-26 11:47:24 WARNING (Thread-12) [mysensors.mysensors] Child 2 is unknown
17-03-26 11:47:27 WARNING (Thread-12) [mysensors.mysensors] Child 2 is unknown
17-03-26 11:47:42 WARNING (Thread-5) [netdisco.ssdp] Error fetching description at https://192.168.86.130/HNAP1/
17-03-26 11:47:43 WARNING (Thread-5) [netdisco.ssdp] Error fetching description at https://192.168.86.118/HNAP1/
17-03-26 11:47:44 WARNING (Thread-12) [mysensors.mysensors] Child 2 is unknown
17-03-26 11:48:00 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
17-03-26 11:48:00 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.

drock1985 avatar Mar 26 '17 14:03 drock1985

That's because the ISS sensor was deprecated/removed in favor of the ISS binary_sensor. Check the component page for more information: https://home-assistant.io/components/sensor.iss/

flamechair avatar Mar 26 '17 15:03 flamechair

Thank you. That fixes everything.

drock1985 avatar Mar 26 '17 15:03 drock1985