Reply
Highlighted
New Member
Posts: 4
Registered: ‎07-06-2017
Accepted Solution

Unifi Controller 5.10.19 on RPi 1 not working anymore

[ Edited ]

Hello,

 

I've been scratching my head for a couple of days now.

After the update to 5.10.19 it seems my controller isn't functioning anymore on my Raspberry Pi 1

 

The <IP>:8443 page doesn't give me a login page.

 

Running a netstat on my RPi, doesn't show port 8443 being used.

sudo service unifi status = Active.

 

Any advice how to troubleshoot this problem?

 


Accepted Solutions
Senior Member
Posts: 21,357
Registered: ‎08-04-2017
Kudos: 4028
Solutions: 1030

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

Hello @SemperFight,

 

There is your issue, please run the commands below.

su
apt-key adv --recv-key --keyserver keyserver.ubuntu.com EEA14886
echo deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main >>/etc/apt/sources.list.d/glennr-install-script.list
echo deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main >>/etc/apt/sources.list.d/glennr-install-script.list
apt-get update
apt-get install oracle-java8-installer -y
apt-get install oracle-java8-set-default -y

service unifi stop
touch /etc/default/unifi
apt purge oracle-java8-jdk -y
sed -i 's/^JAVA_HOME/#JAVA_HOME/' /etc/default/unifi
echo "JAVA_HOME="$( readlink -f "$( which java )" | sed "s:bin/.*$::" )"" >> /etc/default/unifi
service unifi start

 

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK

View solution in original post


All Replies
Senior Member
Posts: 21,357
Registered: ‎08-04-2017
Kudos: 4028
Solutions: 1030

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

Hello @SemperFight,

 

Can you PM me the controller logs? ( server.log and mongod.log )

What is the output of the command below?

dpkg -l | grep "openjdk\|oracle"

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 4
Registered: ‎07-06-2017

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

ii oracle-java8-jdk 8u65 armhf Java™ Platform, Standard Edition 8 Development Kit

 

Try to PM you the logfiles

 

Senior Member
Posts: 21,357
Registered: ‎08-04-2017
Kudos: 4028
Solutions: 1030

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

Hello @SemperFight,

 

There is your issue, please run the commands below.

su
apt-key adv --recv-key --keyserver keyserver.ubuntu.com EEA14886
echo deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main >>/etc/apt/sources.list.d/glennr-install-script.list
echo deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main >>/etc/apt/sources.list.d/glennr-install-script.list
apt-get update
apt-get install oracle-java8-installer -y
apt-get install oracle-java8-set-default -y

service unifi stop
touch /etc/default/unifi
apt purge oracle-java8-jdk -y
sed -i 's/^JAVA_HOME/#JAVA_HOME/' /etc/default/unifi
echo "JAVA_HOME="$( readlink -f "$( which java )" | sed "s:bin/.*$::" )"" >> /etc/default/unifi
service unifi start

 

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 4
Registered: ‎07-06-2017

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

@AmazedMender16 

 

Hero! Hurray

 

After proceeding through your steps it finally works.

If i understand it corrrectly, there was an issue with my java version?

Never would have came up to this solution myself.

 

Thank you very much!

 

Senior Member
Posts: 21,357
Registered: ‎08-04-2017
Kudos: 4028
Solutions: 1030

Re: Unifi Controller 5.10.19 on RPi 1 not working anymore

Hello @SemperFight,

 

You’re welcome!

Your JAVA version was to old for 5.10.x

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Reply