Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 3 stability issues #7400

Closed
DimitarKrastev opened this issue May 2, 2017 · 9 comments

Comments

@DimitarKrastev
Copy link

commented May 2, 2017

Home Assistant release: 0.43.2 (current latest)

Python release: Not sure as I don't have access, but it is the one installed by the All in One Installer

Description of problem:
Raspberry Pi 3 running on Raspbian Jessy (latest with verified SHA-1) with installed Home Assistant by All In On Installer hangs every day. It barely manages to stay up for 24 hours. Last crash was with 15 hours uptime. At some point of the day (no pattern observed) it hangs - Web access returns "Error 500 - Server got itself in trouble.". SSH is sort of down - It doesnt seem to be stopped as the clients I am using to connect report a weird error (ex. "java.io.IOException: End of IO Stream Read").
HDMI output from the raspberry is also almost always cut - TV reports no signal. Tried to make fresh install several times with nothing added apart from device_tracker with bluetooth low energy following the official guide and 10 z-wave nodes connected ( a few switches and some sensors). Automation also stops, no rules are motion driven events occur.

After a restart the system is up and running as nothing happens until after about 15-24 hours the story repeats.

I have searched the web extensively for such problems and I have found a lot of people having it, but no solution.

Identical issue discussed here: https://community.home-assistant.io/t/server-got-into-trouble-ha-web-interface/12771

I am really happy with Homeassistant when it works and I believe this issue is probably something small and someone with the right knowledge could help me fix it. Please assist me with this problem.

Thank you.

@jonathanweinberg

This comment has been minimized.

Copy link

commented May 2, 2017

I would really look at replacing the SD card if you happen to have another around. Database writes are pretty tough on microSD's until you get into a high end industrial model. If you have read access to your configurations it might be a very good time, regardless if the card is the issue, to make sure you have a good backup.

@DimitarKrastev

This comment has been minimized.

Copy link
Author

commented May 2, 2017

Hi Jonathan,

Thanks for the suggestion. I just got home to check what was the reason of the latest crash. Unfortunately now the OS seems corrupted as the PI is not booting, not even outputing power to the Aeotec Z-stick that is plugged in, just the colorful boot splash screen displayed on the TV. Swapped the card with another one I had when I used the PI for Kodi and it is working fine. It indeed looks like there is some problem with the card.

I will now try with Samsung EVO 64GB. Honestly I don't know what better Micro SD card I can use. When I have some results, I will post back here. In the mean time any other ideas or suggestions are more than welcome.

P.S. I managed to mount the SD card on a Windows PC with DiskInternals, so I will easily backup my configuration.

Thanks!

@terrycarlin

This comment has been minimized.

Copy link
Contributor

commented May 2, 2017

@DimitarKrastev

This comment has been minimized.

Copy link
Author

commented May 2, 2017

Hmm... I have a 2.1A power supply from an iPad and nothing connected to the Pi apart from the Z-stick. I have been using it with Kodi for a year for much more heavier things (including torrent download, websites, FTP file server, etc.) with no problems whatsoever.

But if you guys think that is the issue, I will try to find a more powerful power supply.

Thanks a lot for the replies, much appreciated.

@DimitarKrastev

This comment has been minimized.

Copy link
Author

commented May 4, 2017

Hello guys. A short update:

I have a record of 34 hours uptime with no problems so far. I hope it will stay this way.

Steps performed:

  1. Replaced the Kingston 16GB class 10 micro SD with Samsung EVO 64 GB.
  2. Disabled Bluetooth device tracking (I noticed a delay of 3-5 minutes when shutting down or restarting the PI)

I am almost sure it is the memory card, but I don't have a 100% proof until I try Bluetooth tracking with the new SD card.

Another symptom that I now noticed is gone:
With the previous memory card I had this problem when I click on a sensor I was seeing a graph all all changes up until the last few hours. After that it was a straight line from the last accurate point. At first I thought it is caching or that Homeassistant only updates the graph on preset intervals. Now with the new memory card all graphs are realtime all the time.

I will leave the issue opened so that I can test a few more days and I will add the Bluetooth tracking to check how it goes. When I have more info I will update the issue.

Again thank you guys for the support.

@jonathanweinberg

This comment has been minimized.

Copy link

commented May 5, 2017

No problem :)

Some suggestions:

  1. I have not heard great things about Samsung MicroSD cards. I have several, and they eventually corrupt. My next thing to try is to poke around and see what cards are best for Dashcams. I figure those might be a bit more durable.

  2. Double check me, if I recall correctly, the Pi3 is rated to use up to 2.5 amps I think Very well could be my problem too! But I'm not entirely sure about it, most of the time my Pi isn't very heavily loaded.

  3. You should be enjoying high performance right now in the graphs. But as your database grows, you will see a corresponding decrease in performance. I had nearly the exact same symptoms when my card was last dying. You may want to looking to something like InfluxDB and Grafana for pretty and longer term charts. There have been some excellent guides posted lately and I'd be happy to try to help there also (I haven't gotten Grafana to run on ARM yet, super easy in Docker however on another non Pi box).

@gurumitts

This comment has been minimized.

Copy link
Contributor

commented May 27, 2017

Hey, does​ the RPI connect to your network with hardwired lan? Or WiFi?

I am running with an rpi3 and have up times for several weeks. I connect with a hardwired lan cable. WiFi on the rpi has issues.

@balloobbot

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2017

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 👍

@balloobbot

This comment has been minimized.

Copy link
Contributor

commented Sep 4, 2017

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 👍

@balloobbot balloobbot closed this Sep 4, 2017

@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants
You can’t perform that action at this time.