i dont know what the cause is, but its when i start using sudo commands to fix errors with npm or the upgrade. It just works after i run Sudo. i had the same problem on my old machine aswell. I must be doing something wrong! because it used to work.
heres what i get now with a normal ./nodebb dev, if i run with sudo it works fine.
9/9 11:27 [5056] - info: Initializing NodeBB v0.8.1
9/9 11:27 [5056] - verbose: * using configuration stored in: /home/chas/nodebb/config.json
9/9 11:27 [5056] - verbose: * using redis store at 127.0.0.1:6379
9/9 11:27 [5056] - verbose: * using themes stored in: /home/chas/nodebb/node_modules
^Cchas@vps192892:~/nodebb$ 9/9 11:27 [5056] - verbose: Checking dependencies for outdated modules
9/9 11:27 [5056] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
9/9 11:27 [5056] - info: [app] Database connection closed.
9/9 11:27 [5056] - error: Error: Not running
at Server.close (net.js:1233:11)
at process.shutdown (/home/chas/nodebb/app.js:400:36)
at process.EventEmitter.emit (events.js:92:17)
at Signal.wrap.onsignal (node.js:757:46)
Error: Not running
at Server.close (net.js:1233:11)
at process.shutdown (/home/chas/nodebb/app.js:400:36)
at process.EventEmitter.emit (events.js:92:17)
at Signal.wrap.onsignal (node.js:757:46)
9/9 11:27 [5056] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
9/9 11:27 [5056] - info: [app] Database connection closed.
net.js:1233
throw new Error('Not running');
^
Error: Not running
at Server.close (net.js:1233:11)
at shutdown (/home/chas/nodebb/app.js:400:36)
at process.<anonymous> (/home/chas/nodebb/app.js:177:3)
at process.EventEmitter.emit (events.js:95:17)
at process._fatalException (node.js:272:26)