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: 2
Registered: ‎05-06-2016

Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

I've managed to get unifi installed by adding the repo, apt-get install unifi etc
I have openjdk-8 installed ( export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64)

and if I start the service, I get no errors.

 

/etc/init.d/unifi status give me

 

* unifi is running

 

but netstat -an | grep 8443 gives nothing

 

oddly enough, cat /var/log/unifi/server.log also gives nothing

 

So, I have no service, no logs, but it's telling me that all is ok ... not Man Wink

Anyone got any clues ?

 

thanks

New Member
Posts: 18
Registered: ‎05-04-2016
Kudos: 52

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

I have this same problem after upgrading from 4.8.15

New Member
Posts: 42
Registered: ‎06-11-2015
Kudos: 50
Solutions: 2

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

[ Edited ]

I stumbled across this problem after apt-get upgrading from 4.8.15 to 4.8.18

 

/var/log/unifi/server.log

[2016-05-06 22:45:53,912] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:45:58,948] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:03,983] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:09,039] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:14,074] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:19,110] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:24,147] <db-server> ERROR system - [exec] error, rc=100
[2016-05-06 22:46:29,182] <db-server> ERROR system - [exec] error, rc=100

 

/var/log/unifi/mongod

Fri May 6 22:53:22.996 [initandlisten] ERROR: Insufficient free space for journal files
Fri May 6 22:53:22.996 [initandlisten] Please make at least 3379MB available in /usr/lib/unifi/data/db/journal or use --smallfiles

 

I added the following to my /usr/lib/unifi/data/system.properties:

unifi.db.extraargs=--smallfiles

 

I'm also having a look at pruning my mongodb database as per this article: https://help.ubnt.com/hc/en-us/articles/204911424-UniFi-How-to-remove-prune-older-data-and-adjust-mo... now that I'm back up and running.

 



Efficient Telecom
http://www.efficient-telecom.com/
New Member
Posts: 2
Registered: ‎05-06-2016

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

thanks for the tips - although I suspect that my problem is something else, as I have _nothing_ in the log at all. nada. bugger all. zip.

Emerging Member
Posts: 63
Registered: ‎01-10-2013
Kudos: 5

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

We had a similar issue have you tried downgrading to 14.04?

Get real-time information about customers. Track new / return visits, identify peak visit times and create a customer mailing list.

Seamless software integration with the UniFi Cloud Controller for guest authentication and customer analytics (no flashing required) Check it out
Emerging Member
Posts: 74
Registered: ‎12-09-2013
Kudos: 10

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

FYI, I just spun up a VM of Ubuntu 16.04, plain and vanilla. Installed UniFi 5.5.24 and Mongo 2.6.10 and am getting this error in my mongod.log file.

 

2017-10-10T20:40:02.749-0600 ***** SERVER RESTARTED *****
2017-10-10T20:40:02.752-0600 [initandlisten] MongoDB starting : pid=30289 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=unifi
2017-10-10T20:40:02.752-0600 [initandlisten] db version v2.6.10
2017-10-10T20:40:02.752-0600 [initandlisten] git version: nogitversion
2017-10-10T20:40:02.752-0600 [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2017-10-10T20:40:02.752-0600 [initandlisten] build info: Linux lgw01-12 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 BOOST_LIB_VERSION=1_58
2017-10-10T20:40:02.752-0600 [initandlisten] allocator: tcmalloc
2017-10-10T20:40:02.752-0600 [initandlisten] options: { net: { bindIp: "127.0.0.1", http: { enabled: false }, port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/usr/lib/unifi/logs/mongod.log" } }
2017-10-10T20:40:02.757-0600 [initandlisten] journal dir=/usr/lib/unifi/data/db/journal
2017-10-10T20:40:02.757-0600 [initandlisten] recover : no journal files present, no recovery needed
2017-10-10T20:40:02.757-0600 [initandlisten] 
2017-10-10T20:40:02.757-0600 [initandlisten] ERROR: Insufficient free space for journal files
2017-10-10T20:40:02.757-0600 [initandlisten] Please make at least 3379MB available in /usr/lib/unifi/data/db/journal or use --smallfiles
2017-10-10T20:40:02.757-0600 [initandlisten] 
2017-10-10T20:40:02.757-0600 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
2017-10-10T20:40:02.757-0600 [initandlisten] dbexit: 
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: going to close listening sockets...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: going to flush diaglog...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: going to close sockets...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: waiting for fs preallocator...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: lock for final commit...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: final commit...
2017-10-10T20:40:02.757-0600 [initandlisten] shutdown: closing all files...
2017-10-10T20:40:02.757-0600 [initandlisten] closeAllFiles() finished
2017-10-10T20:40:02.757-0600 [initandlisten] journalCleanup...
2017-10-10T20:40:02.757-0600 [initandlisten] removeJournalFiles
2017-10-10T20:40:02.760-0600 [initandlisten] shutdown: removing fs lock...
2017-10-10T20:40:02.760-0600 [initandlisten] dbexit: really exiting now
Established Member
Posts: 798
Registered: ‎07-07-2014
Kudos: 161
Solutions: 48

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

2017-10-10T20:40:02.757-0600 [initandlisten] ERROR: Insufficient free space for journal files
2017-10-10T20:40:02.757-0600 [initandlisten] Please make at least 3379MB available in /usr/lib/unifi/data/db/journal or use --smallfiles

@clickwir start a new thread, this is a year old.  But these log entries are a good hint.  Check how much free disk space you have available.

 

Emerging Member
Posts: 74
Registered: ‎12-09-2013
Kudos: 10

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS

OK, thanks. For what it's worth, this is a VM with only 10GB disk space. There is enough free space (just over 5.8GB), but maybe that's close enough for Mongo to complain.

 

I added the --smallfiles to the system.properties and also had to install haveged to get enough entropy for certs to not take, literally, 15 minutes every time Unifi restarted or the VM rebooted. After adding haveged, UniFi is up and accessible within 5 seconds of boot.

Established Member
Posts: 798
Registered: ‎07-07-2014
Kudos: 161
Solutions: 48

Re: Unifi controller "starts" .. but doesn't ... on Ubuntu 16.04 LTS


clickwir wrote:

OK, thanks. For what it's worth, this is a VM with only 10GB disk space. There is enough free space (just over 5.8GB), but maybe that's close enough for Mongo to complain.

 

I added the --smallfiles to the system.properties and also had to install haveged to get enough entropy for certs to not take, literally, 15 minutes every time Unifi restarted or the VM rebooted. After adding haveged, UniFi is up and accessible within 5 seconds of boot.


Glad to hear it! Fair warning, 10gb is likely not enough for the entire OS and Unifi Controller.  You'll be posting again soon asking why the controller keeps failing whenever you try to login Man Tongue   

Reply