Scheduled maintenance: Community will be offline Monday June 17th, 1:00 AM - 6:00 AM (PT)
Reply
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

controller gui not working....

Hi

can not connect to the controller :

 

http://myhost:8443/

 

message 

myhost-ip refused to connect.

 

but service is running:

 

● unifi.service - unifi
   Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-06-10 17:50:52 CEST; 14min ago
  Process: 1452 ExecStop=/usr/lib/unifi/bin/unifi.init stop (code=exited, status=0/SUCCESS)
  Process: 1646 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS)
 Main PID: 1780 (jsvc)
    Tasks: 15 (limit: 4039)
   CGroup: /system.slice/unifi.service
           ├─1780 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/
           ├─1781 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/
           └─1782 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/

Jun 10 17:49:49 ub9 systemd[1]: Starting unifi...
Jun 10 17:49:49 ub9 unifi.init[1646]:  * Starting Ubiquiti UniFi Controller unifi
Jun 10 17:50:52 ub9 unifi.init[1646]:    ...fail!
Jun 10 17:50:52 ub9 systemd[1]: Started unifi.

restarted the service  but does not solve the problem

 

any hints please

 

It used to work some days back....

 

thanks T

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

Hello @riker1,

 

Service is not running... 

Jun 10 17:49:49 ub9 unifi.init[1646]:  * Starting Ubiquiti UniFi Controller unifi
Jun 10 17:50:52 ub9 unifi.init[1646]:    ...fail!

 

Upload the controller logs to a cloud drive and PM me the URL.

 

 

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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

Hi Glen,

 

ok wait...

 

but why is :

 

Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-06-12 23:13:40 CEST; 1min 3s ago

 

 

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

[ Edited ]

Hello @riker1,


The controller failed to start.... Send the me the controller logs.. 

 

 

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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

[ Edited ]

did send you a pm

 

server was up and running after installation, but I think after upgrade it failed....

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

Hello @riker1,

 

Output of the following command?

dpkg -l | grep "oracle\|openjdk"

Have you tried to run my Easy Update Script?

 

 

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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

dpkg -l | grep "oracle\|openjdk"

 

ii  openjdk-11-jdk:amd64                  11.0.3+7-1ubuntu2~18.04.1          amd64        OpenJDK Development Kit (JDK)
ii  openjdk-11-jdk-headless:amd64         11.0.3+7-1ubuntu2~18.04.1          amd64        OpenJDK Development Kit (JDK) (headless)
ii  openjdk-11-jre:amd64                  11.0.3+7-1ubuntu2~18.04.1          amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-11-jre-headless:amd64         11.0.3+7-1ubuntu2~18.04.1          amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-8-jdk:amd64                   8u212-b03-0ubuntu1.18.04.1         amd64        OpenJDK Development Kit (JDK)
ii  openjdk-8-jdk-headless:amd64          8u212-b03-0ubuntu1.18.04.1         amd64        OpenJDK Development Kit (JDK) (headless)
ii  openjdk-8-jre:amd64                   8u212-b03-0ubuntu1.18.04.1         amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-8-jre-headless:amd64          8u212-b03-0ubuntu1.18.04.1         amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

actually I think I did install it via your script.

it was not working in the first place but with your script...

 

problem is also java 8 on ubuntu 18.04 server.

 

 

 

 

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

[ Edited ]

Hello @riker1,

 

Looks like you ignored a warning from my script Man Wink

Run the following commands..

service unifi stop
apt purge openjdk-11-* -y
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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

I did delete java 11 now.

 

but still having the fail.....

 

should I rerun your script?

 

 

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

Hello @riker1,

 

Output of the following command?

/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar start

Yeah, run my script again.

 

 

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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

i Glen,

 

/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar start
Port 8080 not available

 

did rerun the script and it said:

# Your UniFi Network Controller is already on the latest stable release!

 

still: 

sudo service unifi status
● unifi.service - unifi
   Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-06-13 00:26:30 CEST; 3s ago
  Process: 25803 ExecStop=/usr/lib/unifi/bin/unifi.init stop (code=exited, status=0/SUCCESS)
  Process: 31956 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS)
 Main PID: 32019 (jsvc)
    Tasks: 28 (limit: 4039)
   CGroup: /system.slice/unifi.service
           ├─32019 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unif
           ├─32021 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unif
           ├─32022 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unif
           └─32620 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dapple.awt.UIElement=true -Xmx1024M -XX:+ExitOnOutOfMemoryE

Jun 13 00:25:28 ub9 systemd[1]: Starting unifi...
Jun 13 00:25:28 ub9 unifi.init[31956]:  * Starting Ubiquiti UniFi Controller unifi
Jun 13 00:26:30 ub9 unifi.init[31956]:    ...fail!
Jun 13 00:26:30 ub9 systemd[1]: Started unifi.
Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

Hello @riker1,

 

Seems like there is another service running on port 8080.

Stop that service or kill it.

netstat -nlp | grep :8080

 

 


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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN  

 

not sure which process this is?

 

thought unifi is running in port 8443?

 

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

Hello @riker1,

 

Any webservers running on the machine?

What does the following command show?

netstat -ano -p | grep :8080

 

UniFi uses more than only that 1 port... here you can find the full list.

 

 

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
Emerging Member
Posts: 52
Registered: ‎12-17-2018
Solutions: 1

Re: controller gui not working....

Hi Glen,

 

after removing https://microk8s.io/

 

with snap remove microks8s

 

controller is accessible again.

 

do you know the dependency to microks8s.

 

Thanks a lot so far...

 

T

Senior Member
Posts: 25,956
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1288

Re: controller gui not working....

[ Edited ]

Hello @riker1,

 

Microk8s uses port 8080 for the API server... 

Doubt you can change that port... you could change the inform port to 8081 for example, if you need to run both on the same machine.

 

 

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