Changes

From SME Server
Jump to navigationJump to search
136 bytes added ,  17:20, 5 March 2017
Line 224: Line 224:  
Sometimes it appears that mongo fails to start after a reboot.
 
Sometimes it appears that mongo fails to start after a reboot.
   −
I believe that this may be caused due to rocketchat being run by the forever service which means that rocketchat ties to keep running despite mongo being stopped. This leaves lock files and prevent mongo from restarting properly. The cure is probably to either run rocket as a daemon service rather than forever, or for there to be a proper kill/start for forever/rocketchat on shutdown/restart.
+
I believe that this may be caused due to rocketchat being run by the forever service which means that rocketchat tries to keep running as the server shuts down despite mongod being stopped. This leaves lock files and prevents mongod from restarting properly. I think I probably need to look at the shutdown/start order of scripts.
    
A simple cure is as follows:
 
A simple cure is as follows:
Line 240: Line 240:     
  service rocketchat restart
 
  service rocketchat restart
 +
 +
I haven't tested yet but the answer may be simpler:
 +
 +
service rocketchat stop
 +
service rh-mongodb26-mongod start
 +
service rocketchat stop
 +
 +
When I get a chance I will test this and advise accordingly.
    
==Mongo DB examples==
 
==Mongo DB examples==

Navigation menu