Internal Server Error
-
@pitaj said in Internal Server Error:
./nodebb reset -t
./nodebb reset -t
./nodebb reset -aDoes not work.
What to do?2018-02-20T10:56:03.925Z [14936] - info: Routes added
2018-02-20T10:56:03.929Z [14936] - info: NodeBB Ready
2018-02-20T10:56:03.933Z [14936] - info: Enabling 'trust proxy'
2018-02-20T10:56:03.938Z [14936] - info: NodeBB is now listening on: 0.0.0.0:4567
2018-02-20T10:57:30.386Z [14936] - error: /categories
Error: Failed to lookup view "categories" in views directory "/opt/nodebb/build/public/templates"
at Function.render (/opt/nodebb/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/opt/nodebb/node_modules/express/lib/response.js:1008:7)
at content (/opt/nodebb/src/middleware/render.js:83:15)
at /opt/nodebb/node_modules/async/dist/async.js:3866:24
at replenish (/opt/nodebb/node_modules/async/dist/async.js:998:17)
at /opt/nodebb/node_modules/async/dist/async.js:1002:9
at eachOfLimit (/opt/nodebb/node_modules/async/dist/async.js:1027:24)
at /opt/nodebb/node_modules/async/dist/async.js:1032:16
at eachOf (/opt/nodebb/node_modules/async/dist/async.js:1103:5)
at _parallel (/opt/nodebb/node_modules/async/dist/async.js:3865:5)
at Object.parallelLimit [as parallel] (/opt/nodebb/node_modules/async/dist/async.js:3948:5)
at async.waterfall.str (/opt/nodebb/src/middleware/render.js:78:12)
at nextTask (/opt/nodebb/node_modules/async/dist/async.js:5310:14)
at next (/opt/nodebb/node_modules/async/dist/async.js:5317:9)
at /opt/nodebb/node_modules/async/dist/async.js:958:16
at /opt/nodebb/node_modules/async/dist/async.js:473:16
Missing translation "language:dir"
Missing translation "pages:home"
Missing translation "language:dir"
Error: Failed to lookup view "footer" in views directory "/opt/nodebb/build/public/templates"
at Function.render (/opt/nodebb/node_modules/express/lib/application.js:580:17)
at /opt/nodebb/src/middleware/header.js:255:13
at nextTask (/opt/nodebb/node_modules/async/dist/async.js:5310:14)
at next (/opt/nodebb/node_modules/async/dist/async.js:5317:9)
at /opt/nodebb/node_modules/async/dist/async.js:958:16
at /opt/nodebb/src/middleware/header.js:243:6
at /opt/nodebb/node_modules/async/dist/async.js:3874:9
at /opt/nodebb/node_modules/async/dist/async.js:473:16
at replenish (/opt/nodebb/node_modules/async/dist/async.js:993:25)
at iterateeCallback (/opt/nodebb/node_modules/async/dist/async.js:983:17)
at /opt/nodebb/node_modules/async/dist/async.js:958:16
at /opt/nodebb/node_modules/async/dist/async.js:3871:13
at fireFilterHook (/opt/nodebb/src/plugins/hooks.js:107:11)
at Plugins.fireHook (/opt/nodebb/src/plugins/hooks.js:88:5)
at /opt/nodebb/node_modules/async/dist/async.js:66:19
at /opt/nodebb/node_modules/async/dist/async.js:3866:24 -
@rahmon
./nodebb build
-
@PitaJ said in Internal Server Error:
./nodebb build
not working rebuild, reset2019-04-17T15:32:08.585Z [undefined/812] - error: NodeBB could not connect to your Mongo database. Mongo returned the following errorconnect ECONNREFUSED 127.0.0.1:27017 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":27017,"stack":"Error: connect ECONNREFUSED 127.0.0.1:27017\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)"}
2019-04-17T15:32:08.586Z [undefined/812] - error: [build] Encountered error preparing for buildconnect ECONNREFUSED 127.0.0.1:27017 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":27017,"stack":"Error: connect ECONNREFUSED 127.0.0.1:27017\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)"}
2019-04-17T15:32:08.587Z [undefined/812] - error: [build] Encountered error during build stepconnect ECONNREFUSED 127.0.0.1:27017 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":27017,"stack":"Error: connect ECONNREFUSED 127.0.0.1:27017\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)"}
2019-04-17T15:32:08.587Z [undefined/812] - error: connect ECONNREFUSED 127.0.0.1:27017 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":27017} -
@zaasmi your mongodb database is probably not running
-
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2019-04-17 17:41:10 CEST; 18s ago
Docs: https://docs.mongodb.org/manual
Main PID: 863 (mongod)
Memory: 183.1M
CGroup: /system.slice/mongod.service
└─863 /usr/bin/mongod --config /etc/mongod.conf./nodebb build
started
2019-04-17T15:41:59.055Z [undefined/912] - info: [build] Building in parallel mode
2019-04-17T15:41:59.056Z [undefined/912] - info: [build] plugin static dirs build started
2019-04-17T15:41:59.061Z [undefined/912] - info: [build] requirejs modules build started
2019-04-17T15:41:59.062Z [undefined/912] - info: [build] client js bundle build started
2019-04-17T15:41:59.069Z [undefined/912] - info: [build] admin js bundle build started
2019-04-17T15:41:59.071Z [undefined/912] - info: [build] client side styles build started
2019-04-17T15:41:59.071Z [undefined/912] - info: [build] admin control panel styles build started
2019-04-17T15:41:59.072Z [undefined/912] - info: [build] templates build started
2019-04-17T15:41:59.073Z [undefined/912] - info: [build] languages build started
2019-04-17T15:41:59.073Z [undefined/912] - info: [build] sounds build started
2019-04-17T15:41:59.663Z [undefined/912] - info: [build] sounds build completed in 0.589sec
2019-04-17T15:42:00.033Z [undefined/912] - info: [build] plugin static dirs build completed in 0.977sec
2019-04-17T15:42:05.792Z [undefined/912] - info: [build] client js bundle build completed in 6.729sec
2019-04-17T15:42:09.689Z [undefined/912] - info: [build] admin js bundle build completed in 10.62sec
2019-04-17T15:42:09.726Z [undefined/912] - info: [build] client side styles build completed in 10.655sec
2019-04-17T15:42:10.123Z [undefined/912] - info: [build] admin control panel styles build completed in 11.052sec
2019-04-17T15:42:21.158Z [undefined/912] - info: [build] requirejs modules build completed in 22.097sec -
@zaasmi did it work?
-
not yet Error 502 Ray ID: 4c8f8e9bd814c60f • 2019-04-17 15:50:52 UTC
Bad gateway
You
Browser
Working
Karachi
Cloudflare
Working
cyberian.pk
Host
Error -
@zaasmi can you take screenshots instead of copying the text in here, please?
-
@zaasmi Request URL:https://cyberian.pk/socket.io/?EIO=3&transport=polling&t=Mei0EuG
Request method:GET
Remote address:104.18.34.73:443
Status code:
502
Version:HTTP/2.0
Referrer Policy:strict-origin-when-cross-origin
-
@zaasmi try disabling cloudflare protection on your domain and see if you can access it directly
-
This page isn’t working cyberian.pk redirected you too many times.
-
Try clearing your cache or using a different browser. If that doesn't work, please share your nginx config.
-
@zaasmi have you checked if nodebb is running?
./nodebb log
? -
./nodebb log
Hit Ctrl-C to exit
Clustering enabled: Spinning up 1 process(es).
2019-04-17T15:18:07.533Z [4567/545] - info: [app] Live analytics saved.
2019-04-17T15:18:07.540Z [4567/545] - info: [app] Database connection closed.
2019-04-17T15:18:07.540Z [4567/545] - info: [app] Shutdown complete.
[cluster] Child Process (545) has exited (code: 0, signal: null)
2019-04-17T15:18:07.969Z [4567/917] - info: Initializing NodeBB v1.12.1 https://cyberian.pk
2019-04-17T15:18:10.292Z [4567/917] - error: Your NodeBB schema is out-of-date. Please run the following command to bring your dataset up to spec:
2019-04-17T15:18:10.292Z [4567/917] - error: ./nodebb upgrade
[cluster] Child Process (917) has exited (code: 0, signal: null) -
@zaasmi did you try running
./nodebb upgrade
like the error suggests? -
yes successful but same issue
-
is there any solution? or reinstall
-
@zaasmi same issue, as in it still tells you to upgrade when you start nodebb?
Try
./nodebb slog