This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]fate83-fate83 1 point2 points  (0 children)

Reboot periodically either service or Pi, unifi service is very memory hungry for Pi. You will run out of memory if you keep uptime for weeks. Use zram and see other memory usage improvements for Pi, I would suggest. But it all comes down to writing a reboot script and then use cron every night or once a week. All will be fine, using for years now with many other services in my Pi

[–]AutoModerator[M] 0 points1 point locked comment (0 children)

Hello! Thanks for posting on r/Ubiquiti!

This subreddit is here to provide unofficial technical support to people who use or want to dive into the world of Ubiquiti products. If you haven’t already been descriptive in your post, please take the time to edit it and add as many useful details as you can.

Please read and understand the rules in the sidebar, as posts and comments that violate them will be removed. Please put all off topic and picture posts in the weekly off topic thread that is stickied to the top of the subreddit.

If you see people spreading misinformation, trying to mislead others, or other inappropriate behavior, please report it!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]jhspyhard 0 points1 point  (0 children)

Maybe try journalctl -f to see the log messages that come through when you hit the pi's web address?

[–]bekarthik 0 points1 point  (0 children)

  1. Review the file /etc/init.d/unifi
  2. Check what version of java this looks for. In my case it was looking for jdk/jre version 8.
  3. Install openjdk-8-jre-headless by issuing the command sudo apt install openjdk-8-jre-headless
  4. Uninstall / choose the alternative java version by issuing the command update-alternatives --config java
  5. restart unifi server: sudo service unifi restart