./nodebb start telling me nodebb is already running, it's not!



  • Ok so this is a new issue that has only happened since I did the last git pull, when I try to restart nodebb after rebooting my vps I get told that nodebb is already running, so I checked that I haven't set it to start on boot, but no it is definitely not running, I do have a ghost instance running on the server but no nodebb install is running.

    HALP?


  • Admin

    @sp4rkr4t Thanks for the bug report, I'll look into it now.

    In the meantime, if this shows up -- rm pidfile and you should be good to go

    If NodeBB says another instance is running (when there isn't one), then it means it got shut down incorrectly. Hm...



  • Ah right, that fixed it. So if node or the server goes down bad as the code stands it won't restart without removing the pidfile?


  • Admin

    Yeah, the pidfile stays, though I'll fix up the code so it checks if the pidfile points to a running process, and if not, then disregard it.


 

| |