Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
New Member
Posts: 3
Registered: ‎05-17-2016
Kudos: 1

unifi won't start after apt-get upgrade and reboot

Hi,

My unifi run on debian jessie , my last apt-get upgrade have break the unif service.

I have already repair the mongodb 

but nothng change.

this my service status:

 

service unifi status
● unifi.service - unifi
Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
Active: active (running) since mar 2017-06-20 09:51:13 CEST; 7min ago
Process: 1654 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS)
Main PID: 1777 (jsvc)
CGroup: /system.slice/unifi.service
├─1777 unifi -home /usr/lib/jvm/java-7-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi/unifi.pid -procname unifi -outfile SYSLOG -errfile SYSLOG -Dunifi.datadir=/var/lib/
└─1779 unifi -home /usr/lib/jvm/java-7-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi/unifi.pid -procname unifi -outfile SYSLOG -errfile SYSLOG -Dunifi.datadir=/var/lib/

jun 20 09:51:13 unifi unifi.init[1654]: Starting Ubiquiti UniFi Controller: unifi.
jun 20 09:51:13 unifi systemd[1]: Started unifi.
jun 20 09:51:13 unifi unifi[1779]: 2017-06-20 09:51:13 1777 unifi error: Service killed by signal 11
jun 20 09:52:13 unifi unifi[1779]: 2017-06-20 09:52:13 1777 unifi error: Service killed by signal 11
jun 20 09:53:13 unifi unifi[1779]: 2017-06-20 09:53:13 1777 unifi error: Service killed by signal 11
jun 20 09:54:13 unifi unifi[1779]: 2017-06-20 09:54:13 1777 unifi error: Service killed by signal 11
jun 20 09:55:14 unifi unifi[1779]: 2017-06-20 09:55:14 1777 unifi error: Service killed by signal 11
jun 20 09:56:14 unifi unifi[1779]: 2017-06-20 09:56:14 1777 unifi error: Service killed by signal 11
jun 20 09:57:14 unifi unifi[1779]: 2017-06-20 09:57:14 1777 unifi error: Service killed by signal 11
jun 20 09:58:14 unifi unifi[1779]: 2017-06-20 09:58:14 1777 unifi error: Service killed by signal 11

 

This is my last unifi logs :

 

2017-06-20 08:11:23,052] <localhost-startStop-2> ERROR WebappClassLoaderBase - The web application [] appears to have started a thread named [cron4j::scheduler[32ab3a68768404fd6487415f0000015c63e917c922075d45]::timer[32ab3a68768404fd6487415f0000015c63e917c9417b498c]] but has failed to stop it. This is very likely to create a memory leak.

 

My mongodb.log

 

***** SERVER RESTARTED *****


Tue Jun 20 09:51:12.043 [initandlisten] MongoDB starting : pid=1656 port=27017 dbpath=/var/lib/mongodb 64-bit host=unifi
Tue Jun 20 09:51:12.043 [initandlisten] db version v2.4.10
Tue Jun 20 09:51:12.043 [initandlisten] git version: nogitversion
Tue Jun 20 09:51:12.043 [initandlisten] build info: Linux x86-ubc-01 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 BOOST_LIB_VERSION=1_55
Tue Jun 20 09:51:12.043 [initandlisten] allocator: tcmalloc
Tue Jun 20 09:51:12.043 [initandlisten] options: { bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", dbpath: "/var/lib/mongodb", journal: "true", logappend: "true", logpath: "/var/log/mongodb/mongodb.log" }
Tue Jun 20 09:51:12.426 [initandlisten] journal dir=/var/lib/mongodb/journal
Tue Jun 20 09:51:12.438 [initandlisten] recover : no journal files present, no recovery needed
Tue Jun 20 09:51:13.212 [websvr] admin web console waiting for connections on port 28017
Tue Jun 20 09:51:13.212 [initandlisten] waiting for connections on port 27017

 

Netstat

netstat -lntp
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 127.0.0.1:28017 0.0.0.0:* LISTEN 1656/mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1675/sshd
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 1648/zabbix_agentd
tcp 0 0 0.0.0.0:50503 0.0.0.0:* LISTEN 1617/rpc.statd
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 1656/mongod
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1606/rpcbind
tcp6 0 0 :::22 :::* LISTEN 1675/sshd
tcp6 0 0 :::50816 :::* LISTEN 1617/rpc.statd
tcp6 0 0 :::10050 :::* LISTEN 1648/zabbix_agentd
tcp6 0 0 :::111 :::* LISTEN 1606/rpcbind

 

Netstat for java was null

netstat -lnptu | grep java tcp
grep: tcp: Aucun fichier ou dossier de ce type

Netstat for ongod was good

 

netstat -lnptu | grep mongod
tcp 0 0 127.0.0.1:28017 0.0.0.0:* LISTEN 1656/mongod
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 1656/mongod

 

 

Please help !!!

 

The PS Command

 

root@unifi:~# ps aux | grep mongod
mongodb 1656 1.3 2.1 387480 44016 ? Ssl 09:51 0:11 /usr/bin/mongod --config /etc/mongodb.conf
root 2235 0.0 0.1 14796 2136 pts/1 S+ 10:05 0:00 grep mongod
root@unifi:~# ps aux | grep unifi
root 1777 0.0 0.0 10544 1340 ? Ss 09:51 0:00 unifi -home /usr/lib/jvm/java-7-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi/unifi.pid -procname unifi -outfile SYSLOG -errfile SYSLOG -Dunifi.datadir=/var/lib/unifi -Dunifi.logdir=/var/log/unifi -Dunifi.rundir=/var/run/unifi -Xmx1024M -Djava.awt.headless=true -Dfile.encoding=UTF-8 com.ubnt.ace.Launcher start
root 1779 0.0 0.0 10544 1244 ? S 09:51 0:00 unifi -home /usr/lib/jvm/java-7-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi/unifi.pid -procname unifi -outfile SYSLOG -errfile SYSLOG -Dunifi.datadir=/var/lib/unifi -Dunifi.logdir=/var/log/unifi -Dunifi.rundir=/var/run/unifi -Xmx1024M -Djava.awt.headless=true -Dfile.encoding=UTF-8 com.ubnt.ace.Launcher start
root 2028 0.0 0.2 39076 4536 pts/0 S+ 09:59 0:00 systemctl status unifi.service
root 2246 0.0 0.1 14796 2228 pts/1 R+ 10:05 0:00 grep unifi

 

 

 

 

New Member
Posts: 5
Registered: ‎01-29-2014
Kudos: 5
Solutions: 2

Re: unifi won't start after apt-get upgrade and reboot

Reply