Reply
Emerging Member
Posts: 52
Registered: ‎01-14-2014
Kudos: 23

[CRASH] CController continues to crash

I came back and find the controller not working.

in the log I see a lot of:

 

[23:40:53,690] <db-server> INFO  db     - DbServer stopped
[23:40:53,907] <db-server> WARN  db     - DbServer not shutdown cleanly and need repairing on next startup
[23:40:55,713] <inform-234> ERROR inform - Inform Invalid for Device[192.168.1.1:52260], Invalid
[23:40:58,226] <devmgr> INFO  db     - waiting for db connection...
[23:40:58,226] <stamgr> INFO  db     - waiting for db connection...
[23:41:04,200] <db-server> ERROR system - [exec] error, rc=137, cmdline=[bin/mongod, --dbpath, /share/MD0_DATA/.qpkg/UniFi/data/db, --port, 27017, --unixSocketPrefix, /share/MD0_DATA/.qpkg/UniFi/run, --logappend, --logpath, /share/MD0_DATA/.qpkg/UniFi/logs/mongod.log, --nohttpinterface, --bind_ip, 127.0.0.1, --repair]
[23:41:06,901] <db-server> INFO  db     - DbServer stopped
[23:41:11,308] <inform-232> INFO  db     - waiting for db connection...
[19:10:44,951] <launcher> INFO  system - ======================================================================
[19:10:45,006] <launcher> INFO  system - UniFi 5.10.19 (build atag_5.10.19_11646 - release) is started
[19:10:45,007] <launcher> INFO  system - ======================================================================

 

Now I've created a script:

 

#!/bin/bash
#make-run.sh
#make sure a process is always running.

export DISPLAY=:0 #needed if you are running a simple gui app.

process=UniFi
makerun="/share/MD0_DATA/.qpkg/UniFi/UniFi.sh start"

echo `date +%c` >  /share/MD0_DATA/.qpkg/restart_UniFi.log

if ps ax | grep -v grep | grep $process > /dev/null
then
    exit
else
    $makerun &
fi

exit

 

and is inserted in crontab to keep it alive to run every 5 min so if is down it started... but I would prefer it NOT to crash.

 

Can you help me?

Anything I can do to diagnose why is crashing and how to solve it?

 

thanks

 

Highlighted
Senior Member
Posts: 21,673
Registered: ‎08-04-2017
Kudos: 4093
Solutions: 1051

Re: [CRASH] CController continues to crash

Hello @msavazzi,

 

Please PM me the controller logs. ( server.log and mongod.log )

 

 

 

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