Last pull from master - new topics are null
-
@Leonardo-Galani so is the "official" process to just go to MongoDB 3? I want to update but we have several communities sharing the platform and it isn't casual to just update the backend behind them all.
-
-
@baris said:
Yeah mongodb 3.0 is not a requirement, this might be caused by the nodejs module dependency.
Any guess what one that might be? Want to take a peek at the system?
-
@Ali said:
Having same issue as well.
MongoDB version: 3.0.2Oh that's not good. I thought MongoDB 3 was going to be the fix.
-
I tried updating the plugins and....
Error: Failed to lookup view "500" in views directory "/opt/kae/public/templates"
at EventEmitter.app.render (/opt/kae/node_modules/express/lib/application.js:555:17)
at ServerResponse.res.render (/opt/kae/node_modules/express/lib/response.js:938:7)
at ServerResponse.res.render (/opt/kae/src/middleware/middleware.js:324:10)
at /opt/kae/src/routes/index.js:227:9
at /opt/kae/src/middleware/middleware.js:181:12
at /opt/kae/node_modules/async/lib/async.js:589:17
at done (/opt/kae/node_modules/async/lib/async.js:126:15)
at /opt/kae/node_modules/async/lib/async.js:32:16
at /opt/kae/node_modules/async/lib/async.js:586:21
at EventEmitter.app.render (/opt/kae/node_modules/express/lib/application.js:557:14) -
I just did a full, fresh install of NodeBB and was able to fix things that way. Not sure what was wrong, but that addressed both issues.
-
Broken version:
/opt/kae# npm ls mongodb
[email protected] /opt/kae
├─┬ [email protected] extraneous
│ └── [email protected]
└── [email protected] extraneousnpm ERR! extraneous: [email protected] /opt/kae/node_modules/connect-mongo
npm ERR! extraneous: [email protected] /opt/kae/node_modules/mongodb
npm ERR! not ok code 0 -
/opt/kae# npm ls connect-mongo
[email protected] /opt/kae
└── [email protected] extraneousnpm ERR! extraneous: [email protected] /opt/kae/node_modules/connect-mongo
npm ERR! not ok code 0 -
@baris said:
Yeah nodebb 0.7.0 expects the mongodb dependency to be 2.0.0+ So if you do
npm ls mongodb
in the fresh install it will report it as 2.0.x.Thanks. Good to know.
-
Now that that is fixed, how to delete the dead thread?
http://community.kiddingaroundeurope.com/topic/null/testing-new-posts
-
You will have to remove it from the database manually.
db.objects.remove({_key: "topic:null"}); //remove object db.objects.remove({_key: "topics:recent", value: null}); //remove from recent db.objects.remove({_key: "cid:1:tids", value: null}); //remove from category db.objects.remove({_key: "uid:3:topics", value: null}); //remove from user
I picked the category id and user id from the api return at http://community.kiddingaroundeurope.com/api/recent
-
@baris Thanks! Looking good now.