Nodebb 502 bad gateway error
-
Logs: how can i fix this problem?
NodeBB v2.6.1 Copyright (C) 2013-2023 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 1 process(es). 2023-03-19T01:38:41.775Z [4567/12661] - verbose: * using configuration stored in: /root/nodebb/config.json 2023-03-19T01:38:41.779Z [4567/12661] - info: Initializing NodeBB v2.6.1 2023-03-19T01:38:41.779Z [4567/12661] - verbose: * using mongo store at 127.0.0.1:27017 2023-03-19T01:38:41.779Z [4567/12661] - verbose: * using themes stored in: /root/nodebb/node_modules 2023-03-19T01:38:48.232Z [4567/12661] - error: TypeError: date.format is not a function at CT._getNextDateFrom (/root/nodebb/node_modules/cron/lib/time.js:271:79) at CT.sendAt (/root/nodebb/node_modules/cron/lib/time.js:185:17) at CT.getTimeout (/root/nodebb/node_modules/cron/lib/time.js:202:29) at CJ.start (/root/nodebb/node_modules/cron/lib/job.js:118:31) at new CJ (/root/nodebb/node_modules/cron/lib/job.js:73:10) at module.exports (/root/nodebb/src/posts/uploads.js:35:3) at Object.<anonymous> (/root/nodebb/src/posts/index.js:28:21) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) [cluster] Child Process (12661) has exited (code: 0, signal: null)
-
-
Upgrading results in the same error:
4. Updating NodeBB data store schema...Error occurred during upgrade: TypeError: date.format is not a function at CT._getNextDateFrom (/var/nodebb/node_modules/cron/lib/time.js:271:79) at CT.sendAt (/var/nodebb/node_modules/cron/lib/time.js:185:17) at CT.getTimeout (/var/nodebb/node_modules/cron/lib/time.js:202:29) at CJ.start (/var/nodebb/node_modules/cron/lib/job.js:118:31) at new CJ (/var/nodebb/node_modules/cron/lib/job.js:73:10) at module.exports (/var/nodebb/src/posts/uploads.js:35:3) at Object.<anonymous> (/var/nodebb/src/posts/index.js:28:21) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) 2023-03-19T01:52:28.088Z [4567/20473] - error: uncaughtException: date.format is not a function TypeError: date.format is not a function at CT._getNextDateFrom (/var/nodebb/node_modules/cron/lib/time.js:271:79) at CT.sendAt (/var/nodebb/node_modules/cron/lib/time.js:185:17) at CT.getTimeout (/var/nodebb/node_modules/cron/lib/time.js:202:29) at CJ.start (/var/nodebb/node_modules/cron/lib/job.js:118:31) at new CJ (/var/nodebb/node_modules/cron/lib/job.js:73:10) at module.exports (/var/nodebb/src/posts/uploads.js:35:3) at Object.<anonymous> (/var/nodebb/src/posts/index.js:28:21) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) {"date":"Sun Mar 19 2023 02:52:28 GMT+0100 (Central European Standard Time)","error":{},"exception":true,"os":{"loadavg":[8.48,7.5,10.81],"uptime":8732043.2},"process":{"argv":["/usr/bin/node16","/var/nodebb/nodebb","upgrade"],"cwd":"/var/nodebb","execPath":"/usr/bin/node16","gid":461,"memoryUsage":{"arrayBuffers":18835913,"external":20942692,"heapTotal":41893888,"heapUsed":34983616,"rss":109731840},"pid":20473,"uid":465,"version":"v16.17.0"},"stack":"TypeError: date.format is not a function\n at CT._getNextDateFrom (/var/nodebb/node_modules/cron/lib/time.js:271:79)\n at CT.sendAt (/var/nodebb/node_modules/cron/lib/time.js:185:17)\n at CT.getTimeout (/var/nodebb/node_modules/cron/lib/time.js:202:29)\n at CJ.start (/var/nodebb/node_modules/cron/lib/job.js:118:31)\n at new CJ (/var/nodebb/node_modules/cron/lib/job.js:73:10)\n at module.exports (/var/nodebb/src/posts/uploads.js:35:3)\n at Object.<anonymous> (/var/nodebb/src/posts/index.js:28:21)\n at Module._compile (node:internal/modules/cjs/loader:1126:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n at Module.load (node:internal/modules/cjs/loader:1004:32)","trace":[{"column":79,"file":"/var/nodebb/node_modules/cron/lib/time.js","function":"CT._getNextDateFrom","line":271,"method":"_getNextDateFrom","native":false},{"column":17,"file":"/var/nodebb/node_modules/cron/lib/time.js","function":"CT.sendAt","line":185,"method":"sendAt","native":false},{"column":29,"file":"/var/nodebb/node_modules/cron/lib/time.js","function":"CT.getTimeout","line":202,"method":"getTimeout","native":false},{"column":31,"file":"/var/nodebb/node_modules/cron/lib/job.js","function":"CJ.start","line":118,"method":"start","native":false},{"column":10,"file":"/var/nodebb/node_modules/cron/lib/job.js","function":"new CJ","line":73,"method":null,"native":false},{"column":3,"file":"/var/nodebb/src/posts/uploads.js","function":"module.exports","line":35,"method":"exports","native":false},{"column":21,"file":"/var/nodebb/src/posts/index.js","function":null,"line":28,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1126,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1180,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1004,"method":"load","native":false}]}
-
Temporary workaround in this thread -> https://community.nodebb.org/topic/17040/typeerror-date-format-is-not-a-function/6
-
@FrankM said in Nodebb 502 bad gateway error:
Temporary workaround in this thread -> https://community.nodebb.org/topic/17040/typeerror-date-format-is-not-a-function/6
thank you for the hint. our forum is up again.
Copyright © 2024 NodeBB | Contributors