I think it's a bug ?
-
Well, for start I want to say thank your for actually making me interested once more in forum software! Nodebb really looks like the kind of software that i would like to build my community on.
Now i don't know if this is the right place to post or something, but do forgive me if this is the wrong place.
I think i found a "bug" ? Whenever i try to enable a plugin, my server just crashes, and i can't get it up again. I know the solution is right in front of me, but for the love of god i cannot seem to figure it out -.-"
I have attached an image of the log, and also of the addon that i'm trying to enable. !
-
I looked around for a similar issue by any others users, so i saw that a recommendation was to run:
./nodebb upgrade
which in return dropped me this error:
error: Unable to initialize MongoDB! Is MongoDB installed? Error :Cannot find module 'mongodb
i can see the module though installed in the node_modules, and I do believe I've installed it -g while also linking it to here via npm...
-
Your server crashing when you turn on a plugin means that there's an issue with that plugin.
The mongo not being found issue is because mongo is no longer in the core dependencies list, if you run ./NodeBB setup again, selecting mongo etc like you did the first time, it will then install mongo. As for which plugin is causing your issues, you can run ./NodeBB dev and paste any errors here.
*both commands shouldbe lowercase, but my iPad keeps autocorrecting to NodeBB.
Warns are fine, errs aren't.
-
I also found out that the server was crashing whenever i was enabling nodebb-plugin-finder
edit:
And also when installing nodebb-plugin-archiver it kills / hangs the server with the error message :
Error: Cannot find module './redis'
(which apparently makes sense, since i'm not using redis. right? o.O)
-
@nemfoz said:
Apparently it worked now, after running setup again. but is it really needed to run ./nodebb setup each time something like this happens ?
Isn't the mongodb link permanent ? or am i missing something here ?
It won't happen again, 0.5.0 introduced a change to this, it seemed silly to include redis related files when the user wanted mongoDB, so it now installs based on what you entered into the config. You only need to do it once.
nodebb-plugin-finder is deprecated as the plugins features are now in core, you can see this from the readme file on the plugin here. Also the archiver plugin hasn't been updated for about a year, so it's unlikely to work with the current version. However @julian would be the best person to ask about the state of that plugin.