Hello! I figured this would be the best place to post this. I setup my NodeBB forum on Windows, but I'd like to move to Linux and still be able to keep my posts, categories, users, etc. Is there an easy way to import/export all my settings from Windows to Linux (and if so, would v 8.0 be okay to export to v 9.0 or will I need to re-do everything?).
Best posts made by Stackoverload
-
Exporting NodeBB from Windows to Linux
-
RE: Why did you choose NodeBB?
Pretty simple list
- Sexy base design
- Easy to use Admin panel
- Open Source
- NodeJS
- Real-time updates
Latest posts made by Stackoverload
-
RE: Error: Invalid format: 0
Seems to be doing it for every file I try. I'll export my data and re-install.
-
RE: Error: Invalid format: 0
I'm uploading a .png, or well... trying to haha.
-
Error: Invalid format: 0
I was attemping to upload a file for my profile picture (in my profile page)
and I had a fatal error throw:26/2 13:41 [5564] - error: Error: Invalid format: 0 at getBytesPerComponent (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:38:10) at readExifTag (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:45:23) at readIFDSection (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:88:9) at Object.module.exports.parseTags (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:130:3) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:143:29 at Object.module.exports.parseSections (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\jpeg.js:21:4) at Object.Parser.parse (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:140:8) at exifRotate (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:269:42) at Jimp.parseBitmap (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:250:13) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:169:29 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) Error: Invalid format: 0 at getBytesPerComponent (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:38:10) at readExifTag (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:45:23) at readIFDSection (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:88:9) at Object.module.exports.parseTags (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\exif.js:130:3) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:143:29 at Object.module.exports.parseSections (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\jpeg.js:21:4) at Object.Parser.parse (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\node_modules\exif-parser\lib\parser.js:140:8) at exifRotate (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:269:42) at Jimp.parseBitmap (C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:250:13) at C:\Users\Jacob\Desktop\Forum\node_modules\jimp\index.js:169:29 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 26/2 13:41 [5564] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 26/2 13:41 [5564] - info: [app] Database connection closed. 26/2 13:41 [5564] - info: [app] Web server closed to connections. 26/2 13:41 [5564] - info: [app] Shutdown complete.
NOTE, this was after running
git pull
for the latest fix on uploading default profile pictures. -
Latest version, error when uploading default profile image: error uploading, code : 0
I'm running on Windows 7, I've tried running via command prompt as admin, as well as power shell.
I launch using node app.js, since ./nodebb start doesn't seem to run anything on localhost.Here's the error.
26/2 10:55 [5940] - error: /api/admin/uploadDefaultAvatar Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) at ServerResponse.header (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:718:10) at ServerResponse.send (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:163:12) at ServerResponse.json (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:249:15) at C:\Users\Jacob\Desktop\Forum\src\routes\index.js:176:16 at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:95:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at serveStatic (C:\Users\Jacob\Desktop\Forum\node_modules\express\node_modules\serve-static\index.js:74:16) at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:95:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) at ServerResponse.header (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:718:10) at ServerResponse.send (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:163:12) at ServerResponse.json (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\response.js:249:15) at C:\Users\Jacob\Desktop\Forum\src\routes\index.js:204:8 at Layer.handle_error (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:71:5) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:310:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at Layer.handle [as handle_request] (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\layer.js:97:5 ) at trim_prefix (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:312:13) at C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Jacob\Desktop\Forum\node_modules\express\lib\router\index.js:271:10) at serveStatic (C:\Users\Jacob\Desktop\Forum\node_modules\express\node_modules\serve-static\index.js:74:16)
-
RE: Call to Socket.IO from register.js returning err, as an empty object { }
Ooops! I'm sorry haha, this headache is giving me coding troubles. Thanks!
-
Call to Socket.IO from register.js returning err, as an empty object { }
I'm making a call from register.js to socket.io using the following function
function validateInviteCode(code, use, callback) { callback = callback || function() {}; var invite_code_notify = $('#invite_code_notify'); if (!code.includes(':') || code.split(':')[1].length != 8) { showError(invite_code_notify, 'Invalid invite code'); return callback(); } socket.emit('plugins.invite.checkInviteCode', { code: code, use: use }, function(err, valid) { if (err) { console.log(err); app.alertError(err.message); return callback(); } console.log(valid); if (valid) { showSuccess(invite_code_notify, successIcon); } else { showError(invite_code_notify, 'Invalid invite code'); } callback(); }); }
and it's returning err as an empty object { }. This is my server-side listen for it:
checkInviteCode: function (socket, data, fn) {
checkCode(data.code, data.use, function(valid) {
console.log(data, valid);
fn(!socket.uid, valid);
});
} -
[meta/dependencies] Could not read: heapdump
I'm setting up NodeBB, running Node V0.12.0, with Redis for Windows V 3.0.X.
After running npm install, and then node app --setup, I ran node app and I get the following
error:
[meta/dependencies] Could not read: heapdumpAny ideas?
-
RE: Getting user data from UID
Just saw this section on the git! Thank you so much for showing me an example ^_^
-
RE: Grabbing multiple database objects
Wonderful explanation! You are always on point when it comes to explaining things! Thank you so much!