I fixed the PID error in nginx, but that wasn't it.
Here is a section from the dev output, I think it's our old friend, EADDRINUSE error:
[4567/1345] - error: NodeBB address in use, exiting...listen **EADDRINUSE: address already in use 0.0.0.0:4567** {"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"0.0.0.0","port":4567,"stack":"Error: listen EADDRINUSE: address already in use 0.0.0.0:4567\n at Server.setupListenHandle [as _listen2] (net.js:1259:14)\n at listenInCluster (net.js:1307:12)\n at doListen (net.js:1446:7)\n at processTicksAndRejections (internal/process/task_queues.js:81:17)"}
>2020-01-15T23:08:48.753Z [4567/1345] - error: uncaughtException: listen EADDRINUSE: address already in use 0.0.0.0:4567
>Error: listen EADDRINUSE: address already in use 0.0.0.0:4567
> at Server.setupListenHandle [as _listen2] (net.js:1259:14)
> at listenInCluster (net.js:1307:12)
> at doListen (net.js:1446:7)
> at processTicksAndRejections (internal/process/task_queues.js:81:17) {"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"0.0.0.0","port":4567},"stack":"Error: listen EADDRINUSE: address already in use 0.0.0.0:4567\n at Server.setupListenHandle [as _listen2] (net.js:1259:14)\n at listenInCluster (net.js:1307:12)\n at doListen (net.js:1446:7)\n at processTicksAndRejections (internal/process/task_queues.js:81:17)","exception":true,"date":"Wed Jan 15 2020 23:08:48 GMT+0000 (Coordinated Universal Time)","process":{"pid":1345,"uid":1000,"gid":1000,"cwd":"/home/node/nodebb","execPath":"/usr/bin/node","version":"v11.15.0","argv":["/usr/bin/node","/home/node/nodebb/app.js"],"memoryUsage":{"rss":148332544,"heapTotal":110985216,"heapUsed":85905376,"external":692996}},"os":{"loadavg":[0.666015625,0.30126953125,0.10986328125],"uptime":410},"trace":[{"column":14,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1259,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1307,"method":null,"native":false},{"column":7,"file":"net.js","function":"doListen","line":1446,"method":null,"native":false},{"column":17,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":81,"method":null,"native":false}]}
>2020-01-15T23:08:48.754Z [4567/1345] - error: listen EADDRINUSE: address already in use 0.0.0.0:4567 {"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"0.0.0.0","port":4567}
>2020-01-15T23:08:48.754Z [4567/1345] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised
I ran ps aux | grep node
output:
root 1188 0.0 0.3 63476 3716 pts/0 S 23:05 0:00 su node
node 1189 0.0 0.4 23020 4972 pts/0 S 23:05 0:00 bash
node 1272 0.1 4.1 605244 41980 ? Ssl 23:08 0:00 /usr/bin/node /home/node/nodebb/loader.js
node 1283 1.7 11.0 893076 111140 ? Sl 23:08 0:05 /usr/bin/node /home/node/nodebb/app.js
node 1369 0.0 0.3 40096 3536 pts/0 R+ 23:13 0:00 ps aux
node 1370 0.0 0.0 14856 1004 pts/0 S+ 23:13 0:00 grep --color=auto node
I thought maybe I could kill a process but that doesn't seem to work - Any ideas folks?
Altnernativley I guess I could possibly dump the redis DB and reload an known working snapshot as a workaround, learning something new in the process... can this be done with redis?