NodeBB v0.7.3
-
Keeping in line with our pledge to release more often, v0.7.3 has shipped today. It contains mostly bugfixes as well as some enhancements towards favicon and improved IE support.
One big change is the update to the NodeBB Package Manager, which was updated to accommodate changes to the npm api. To combat perceived "brokenness" of plugins, we're introducing the following changes to the package manager:
- If you are a @3rd-Party-Developers, and your plugin does not have
nbbpm.compatibility
in itspackage.json
, your plugin will no longer appear in ACP/Plugins- Here's how you structure it in your plugin. Alter the version range as necessary to capture the NodeBB versions that you know are compatible with your plugin
- The NodeBB package manager updates its index every day at midnight, but you can always
PUT https://packages.nodebb.org/api/v1/suggest?package=nodebb-plugin-yourplugin
if you want nbbpm to refresh its record for your plugin immediately. - The ACP/Plugins page now only lists plugin and plugin versions that are compatible with your version of NodeBB.
v0.6.x
branch users, your copy of NodeBB does not pass the current NodeBB version to nbbpm, so nbbpm won't know what plugin list to send you, as a result, your ACP/Plugins page will be empty. You are advised to upgrade to v0.7.x.
- If you are a @3rd-Party-Developers, and your plugin does not have
-
I am receiving this error upon updating:
1. Bringing base dependencies up to date 2. Updating NodeBB data store schema module.js:340 throw err; ^ Error: Cannot find module 'nconf' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/simonq/bbirdie/app.js:23:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) Error: undefined
I always seem to get a mini heart attack whenever I run these updates lol
-
@julian
I'm sure redis is installed...Clustering enabled: Spinning up 1 process(es). 18/8 15:28 [8904] - info: Time: Tue Aug 18 2015 15:28:14 GMT-0400 (EDT) 18/8 15:28 [8904] - info: Initializing NodeBB v0.7.3 18/8 15:28 [8904] - error: Unable to initialize Redis! Is Redis installed? Error :Cannot find module 'connect-redis' [cluster] Child Process (8904) has exited (code: 0, signal: null)
Edit: finally got it to work
-
I'm currently on 0.7.2 and want to upgrade to 0.7.3. Never done this before. After backing up everything, is this what I should do?
$ cd nodebb $ ./nodebb stop $ git pull $ ./nodebb upgrade
-
@henrywright Ok, latest commit in
v0.7.x
branch contains the fix for the broken./nodebb upgrade
call.If you want to upgrade, those are the steps, although also
cp -r node_modules/ node_modules_bk
just to back up the node_modules folder.Let me know if it works
-
Just an FYI:
I used the same steps as @henrywright a few hours ago and works for me. So @julian if something broke in broke after my last post to the thread like 2hrs ago, You can use that as a time stamp. I was probably one of the first people to upgrade.
-
One thing I did have to do was clear my browsing data because I was getting some 502 Nginx error pages show up. Since clearing all browsing data everything has been fine.
-
Setting homepage as recent renders the following error
Internal error. Oops! Looks like something went wrong! / Object # has no method 'recent'
Navigating to URL/recent renders the page just fine.
Full ST
18/8 18:27 [26471] - error: / TypeError: Object #<Object> has no method 'recent' at Controllers.home (/home/a_5mith/35hz/src/controllers/index.js:45:27) at Layer.handle [as handle_request] (/home/a_5mith/35hz/node_modules/express/lib/router/layer.js:95:5) at next (/home/a_5mith/35hz/node_modules/express/lib/router/route.js:131:13) at /home/a_5mith/35hz/src/middleware/middleware.js:74:3 at Object.async.each (/home/a_5mith/35hz/node_modules/async/lib/async.js:118:20) at middleware.pluginHooks (/home/a_5mith/35hz/src/middleware/middleware.js:70:8) at Layer.handle [as handle_request] (/home/a_5mith/35hz/node_modules/express/lib/router/layer.js:95:5) at next (/home/a_5mith/35hz/node_modules/express/lib/router/route.js:131:13) at middleware.pageView (/home/a_5mith/35hz/src/middleware/middleware.js:62:4) at Layer.handle [as handle_request] (/home/a_5mith/35hz/node_modules/express/lib/router/layer.js:95:5)
-
@BDHarrington7 said:
nbbpm.compatibility is using semver syntax, correct?
Yes, a semver range.
If your plugin works with 0.7.0 and up, use
^0.7.0
, you'll have to trust us not to introduce breaking changes in the0.7.x
branchIf it is compatible with 0.6.1 and up, for example, use
>= 0.6.1 ^0.7.0
-
error after upgrade. im using mongo database.
[cluster] Child Process (6671) has exited (code: 0, signal: null) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at module.init (/root/nodebb/src/database/mongo.js:52:18) at /root/nodebb/node_modules/async/lib/async.js:653:23 at fn (/root/nodebb/node_modules/async/lib/async.js:638:34) at Immediate._onImmediate (/root/nodebb/node_modules/async/lib/async.js:554:34) at processImmediate [as _immediateCallback] (timers.js:367:17)```
-
I have always git pull master, and always has this
Error : cannot find module ...
. I did try.\nodebb upgrade
,npm install
, but nothing works. Even changing branchgit checkout v0.7.2
still showingcannot find module
.The only thing work for me is, to remove all node_modules then install it back. After that, I did npm install redis and connect-redis.
// remove all node_modules rm -rf node_modules/ // re-install dependencies npm install // install redis and redis-server npm install redis npm install connect-redis