After changed ip get badway 502 error and nodebb does not start
-
hi,
i installed nodebb on aws ec2 and worked good. and i installed Let’s Encrypt on it. everything was good. then i changed my aws instance ip by elastic ip. after this i get 502 bad gateway error. i already update my new ip in /etc/nginx/sites-enabled/default.
ssl is active, no problem. when i try ./nodebb start i get no such file or directory error.How can i solve this.
thank you.
edit:
root@ip-12-1-3-65:~# node loader.js --no-silent --no-daemon
module.js:328
throw err;
^Error: Cannot find module '/root/loader.js'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3 -
ok, fixed problem, reboot again. but i dont know how.
is this log normal ?
node_redis: Warning: Redis server does not require a password, but a password was supplied.
2/5 22:56:17 [1657] - info: [socket.io] Restricting access to origin: http://mydomain.net
node_redis: Warning: Redis server does not require a password, but a password was supplied.
node_redis: Warning: Redis server does not require a password, but a password was supplied.
node_redis: Warning: Redis server does not require a password, but a password was supplied.
node_redis: Warning: Redis server does not require a password, but a password was supplied.
2/5 22:56:17 [1657] - info: Routes added
2/5 22:56:17 [1657] - info: NodeBB Ready
2/5 22:56:17 [1657] - info: Enabling 'trust proxy'
2/5 22:56:17 [1657] - info: NodeBB is now listening on: 0.0.0.0:4567thank you.
-
Your forum may work, but has no security, anyone can login and delete/steal the database. You need to setup your redis so that it has a password, and that it restricts access to localhost.
-
@yariplus said in After changed ip get badway 502 error and nodebb does not start:
Your forum may work, but has no security, anyone can login and delete/steal the database. You need to setup your redis so that it has a password, and that it restricts access to localhost.
@yariplus thank you so much.