Success!!! Thanks guys.
ljhardy
Posts
-
Upgrading to Nodebb v1.5.1 -
Upgrading to Nodebb v1.5.1Ok, I actually had a full directory backup of nodebb from a couple of months ago. I restored that and am able to start nodebb. Now I'll start the upgrade again.
-
Upgrading to Nodebb v1.5.1I have a current mongodb backup. Would it be possible for me to remove everything, install the latest version of Nodebb and then restore all of the data? How would I do that?
Thanks, I really appreciate the help here.
-
Upgrading to Nodebb v1.5.1@Bri - I'm using mongodb, why would sqllite be referenced?
-
Upgrading to Nodebb v1.5.1output of
npm i
> node scripts/install.js npm WARN prefer global [email protected] should be installed with -g > [email protected] postinstall /home/ljhardy/public_html/nodebb/nodebb/node_modules/jsonpath > node lib/aesprim.js > generated/aesprim-browser.js > [email protected] install /home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3 > node-pre-gyp install --fallback-to-build [sqlite3] Success: "/home/ljhardy/public_html/nodebb/nodebb/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" already installed Pass --update-binary to reinstall or --build-from-source to recompile npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires chalk@'^0.5.1' but will load npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/chalk, npm WARN unmet dependency which is version 1.1.3 npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires semver@'^4.0.3' but will load npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/semver, npm WARN unmet dependency which is version 5.3.0 npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/nock/node_modules/changelog requires wordwrap@'^0.0.2' but will load npm WARN unmet dependency /home/ljhardy/public_html/nodebb/nodebb/node_modules/wordwrap, npm WARN unmet dependency which is version 0.0.3
output of
nodebb upgrade
1. Bringing base dependencies up to date... OK 2. Checking installed plugins for updates... OK 3. Updating NodeBB data store schema... /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37 invalidUnicodeChars: XRegExp('[^\\p{L}\\s\\d\\-_]', 'g'), ^ TypeError: XRegExp is not a function at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37:24 at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:8:20 at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:27:2) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/src/utils.js:3:18) Error: undefined
-
Upgrading to Nodebb v1.5.1npm i npm upgrade
are run in the nodebb root folder.
I'm assuming that when you say that the NodeBB files shouldn't be web server accessible, that is a security concern and not a potential cause of my issue? I will change that, but it has been running fine (although probably insecurely, based on your point) for a couple of years.
I will try the commands again and paste in the entire log stream that is showing on the terminal.
Thanks for the help here.
-
Upgrading to Nodebb v1.5.1Any more ideas?
-
Upgrading to Nodebb v1.5.1npm is 2.15.11
nodejs is 4.8.3after removing node_modules and running "npm i", "nodebb upgrade" gives me this:
odeBB could not be initialised because there was an error while loading dependencies.
Please run "npm install --production" and try again.For more information, please see: https://docs.nodebb.org/en/latest/installing/os.html
/home/ljhardy/public_html/nodebb/nodebb/nodebb:46
throw e;
^Error: Cannot find module 'prompt'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/nodebb:37:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)I ran "npm install --production", then "./nodebb upgrade" again gives the same error as previous:
odeBB could not be initialised because there was an error while loading dependencies.
Please run "npm install --production" and try again.For more information, please see: https://docs.nodebb.org/en/latest/installing/os.html
/home/ljhardy/public_html/nodebb/nodebb/nodebb:46
throw e;
^Error: Cannot find module 'prompt'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/nodebb:37:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10) -
Upgrading to Nodebb v1.5.1So, after npm i [email protected] there are a bunch of warnings but then:
[email protected] node_modules/xregexp
However, nodebb upgrade still gives the same error:
- Bringing base dependencies up to date... OK
- Checking installed plugins for updates... OK
- Updating NodeBB data store schema...
/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37
invalidUnicodeChars: XRegExp('[^\p{L}\s\d\-_]', 'g'),
^
TypeError: XRegExp is not a function
at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37:24
at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:8:20
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:27:2)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/src/utils.js:3:18)Error: undefined
And, npm ls xregexp still shows:
└── [email protected] invalid
npm ERR! invalid: [email protected] /home/ljhardy/public_html/nodebb/nodebb/node_modules/xregexp
-
Upgrading to Nodebb v1.5.1Same error after npm i and rerunning nodebb upgrade. npm ls xregexp gives me:
invalid: [email protected]
Do you know what that means?
Thanks, Len
-
Upgrading to Nodebb v1.5.1I'm getting this error when trying to upgrade to v1.5.1, any help would be appreciated:
- Bringing base dependencies up to date... OK
- Checking installed plugins for updates... OK
- Updating NodeBB data store schema...
/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37
invalidUnicodeChars: XRegExp('[^\p{L}\s\d\-_]', 'g'),
^
TypeError: XRegExp is not a function
at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:37:24
at /home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:8:20
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/public/src/utils.js:27:2)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/src/utils.js:3:18) -
Upgrade from v1.1.2 to v1.2.1@pichalite That did it. Thanks!!
-
Upgrade from v1.1.2 to v1.2.1v0.10.47
-
Upgrade from v1.1.2 to v1.2.1./nodebb upgrade gives me the following error, any idea what's going on? :
nodebb/public/src/modules/translator.js:38
var assign = Object.assign || jQuery.extend;
^
ReferenceError: jQuery is not defined -
Upgrade from v1.0.1-auto.0 to v1.0.2I reinstalled and am successfully running v1.0.2.
-
Upgrade from v1.0.1-auto.0 to v1.0.2If I completely re-install v1.0.2 to get around my problem, will all of my users, posts, settings etc. be saved or will the database be re-initialized?
-
Upgrade from v1.0.1-auto.0 to v1.0.2What are the specific GIT commands to upgrade from v1.0.1-auto.0 to the latest v1.0.2? I can't seem to get it right and am having issues with the upgrade script. Thanks in advance for any help here.
--Len
-
upgrading from v1.0.1-auto.0 to v1.0.1Did that successfully. Upgrade seemed to go ok, then received these errors trying to start nodebb, it's like the upgrade script didn't work: ( Can I reinstall the latest version of nodebb, and have it keep my setup, users, posts etc., or does a clean install initialize Mongodb?)
Starting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb restart" to restart NodeBBljhardy@firehole:~/www/nodebb/nodebb$ ./nodebb log
Type Ctrl-C to exit
Clustering enabled: Spinning up 1 process(es).
27/3 10:24 [20828] - info: Time: Sun Mar 27 2016 10:24:35 GMT-0500 (CDT)
27/3 10:24 [20828] - info: Initializing NodeBB v1.0.2
27/3 10:24 [20828] - warn: You have no mongo password setup!
27/3 10:24 [20828] - info: [database] Checking database indices.
[outdated] html-to-text installed v1.5.0, package.json requires 2.0.0
27/3 10:24 [20828] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them:
27/3 10:24 [20828] - warn: ./nodebb upgrade
[cluster] Child Process (20828) has exited (code: 0, signal: null) -
upgrading from v1.0.1-auto.0 to v1.0.1Trying to upgrade as stated in the topic, receiving this error:
Error: Cannot find module 'ip'
Any ideas?
Thanks, Len
-
Bold and Italic not working?EDIT: Restarted NodeBB and Bold and Italic are back!!
Thanks, Len
@nhl.pl These are the plugins that I am using: