Can not get home assistant to work

Hey everyone,

I have been racking my brain trying to figure this out. When I try to load https://mydomain.duckdns.org I get “this site can not be reached” “mydomain.duckdns.org refused to connect” It did work when entering 192.yadda…:8123 when I initially installed HA but now it doesn’t. Thanks
This is my home-assistant.log: (not sure where to even begin with this)

16-09-28 05:37:31 pynetgear: Error talking to API
Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 346, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/packages/urllib3/util/url.py", line 189, in parse_url
    raise LocationParseError(url)
requests.packages.urllib3.exceptions.LocationParseError: Failed to parse: None:None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hass/.homeassistant/deps/pynetgear/__init__.py", line 113, in _make_request
    self.soap_url, headers=headers, data=message, timeout=10)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 461, in request
    prep = self.prepare_request(req)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 394, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 294, in prepare
    self.prepare_url(url, params)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 348, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: None:None
16-09-28 05:37:31 homeassistant.components.device_tracker.netgear: Failed to Login
16-09-28 05:37:31 homeassistant.components.device_tracker: Error setting up platform netgear

Can you still access it locally? i.e. 192.yadda:8123?

If so it maybe a configuration within the duckdns set up or with your router.

no, locally is gone also.

Have you set up port forwarding on your router? You should have port 443 sent to the local port 8123 at your HA’s local IP address.
On that same note, do you have your local HA setup with a static IP address, or DHCP reservation?

Also, if you are using plain old port 80, it might be blocked by your service provider. So definitely try port 443 (though it might also be blocked too).

Thanks for the replies. I am using a raspberry pi2 for HA. I did the all in 1 install. My ports are set with 443 as my external port and 8123 as my internal port for my pi, which has a static ip. please keep suggestions and questions coming so I can keep what hair I have left.

Thanks

You need to work on the local access before you can think about remote access. Use hass from the command line to check your configuration.

``` to see where your configuration has problems.

Yep, i had local access working then started working on remote access. Thats when something broke. I will try that command when i get home from work. Thanks

This is the result of testing config file
((hass_venv) hass@raspberrypi:~/.homeassistant$ hass --script check_config -i all
Testing configuration at /home/hass/.homeassistant
Successful config (all)

When I run “./duck.sh” it appears to be successfull and when I run “cat duck.log” I get “OK”

Please let me know what additional info is needed or ideas that can be given.
Thanks

Hey guys and gals,

Well after backtracking through the steps my issue came down to taking something for granted…like my knowledge of port forwarding. With that, I am now up and running.

Thanks again.

Can you elaborate on how you fixed these errors? I’m getting the same thing but not for the same symptoms I don’t think. To be honest I don’t know if these errors are causing any major issue but it’s driving me nuts. Device tracking is working but not very well. Is that normal?

  • Access to HASS is working fine both locally and remotely.
  • I’m auto-discovering my netgear R7000.
  • I can use routerlogin.net locally
  • Pi 2 is on static IP
  • Using SSL with certbot and my own domain (working fine)
  • Port 443 is forwarded to 8123

For the last few few versions I’m getting these login errors for netgear:

16-10-10 20:23:02 netdisco.ssdp: Error fetching description at http://192.168.1.1:8200/rootDesc.xml
16-10-10 20:23:04 netdisco.ssdp: Error fetching description at https://192.168.1.3:8888
16-10-10 20:23:06 pynetgear: Error talking to API
Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 346, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/packages/urllib3/util/url.py", line 189, in parse_url
    raise LocationParseError(url)
requests.packages.urllib3.exceptions.LocationParseError: Failed to parse: None:None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hass/deps/pynetgear/__init__.py", line 113, in _make_request
    self.soap_url, headers=headers, data=message, timeout=10)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 461, in request
    prep = self.prepare_request(req)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 394, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 294, in prepare
    self.prepare_url(url, params)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 348, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: None:None
16-10-10 20:23:06 homeassistant.components.device_tracker.netgear: Failed to Login
16-10-10 20:23:06 homeassistant.components.device_tracker: Error setting up platform netgear
16-10-10 20:23:09 pywemo.ssdp: Error fetching description at http://192.168.1.1:8200/rootDesc.xml
16-10-10 20:23:10 pywemo.ssdp: Error fetching description at https://192.168.1.3:8888

I’d love to get rid of them and any help would be appreciated.

Thanks.

Wish i can help, however after i posted that it stopped working again for no reason. I changed nothing. I have read and read and read some more trying to figure it out but came up with nothing. I removed all firewalls and any other software on my end that may block ports. This had me thinking i didnt know how to set up my router but i set that up correctly. So i deleted HA and decided keep working on my own project that i started. Good luck!

I couldn’t figure it out either. So I flashed to DD-WRT and all is working fine now. Finally reasonably accurate presence detection. I use Owntracks too. Love to know what happened to Netgear. Maybe a firmware issue? Who knows. In this case the workaround was the best solution for me.