Here it is.
sfchun
Posts
-
Admin page no more accessible. -
Admin page no more accessible.Hello,
If I do this, it bring me the login prompt, then once I login, I get the same error.
-
Admin page no more accessible.Hello
Recently my server was forced to restart violently few times ... (hardware issue)
Honnestly I dont know if this is linked to this problem, but now I run the following issue :
nodebb 1.10.2, the admin page is no more accessible ...url :
mydomain/<!DOCTYPE%20html><html><head>%20%20%20%20<meta%20name=?loggedin=true
error :
/<!DOCTYPE%20html><html><head>%20%20%20%20<meta%20name= Introuvable Il semble que vous ayez atteint une page qui n'existe pas. Retourner à la page d'accueil.
Error Translation :
=Not Found It seems you reach a page that does not exists. Go back to home page.
Thanks a lot for you help.
-
nodeBB 1.8.2 ubuntu16.04.2 redis install from scratch@sfchun said in nodeBB 1.8.2 ubuntu16.04.2 redis install from scratch:
node app --setup
I guess that was not the right step here.
I copied the content of package.json from my running nodebb{ "name": "nodebb", "license": "GPL-3.0", "description": "NodeBB Forum", "version": "1.8.2", "homepage": "http://www.nodebb.org", "repository": { "type": "git", "url": "https://github.com/NodeBB/NodeBB/" }, "main": "app.js", "scripts": { "start": "node loader.js", "lint": "eslint --cache ./nodebb .", "pretest": "npm run lint", "test": "nyc --reporter=html --reporter=text-summary mocha", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage" }, "dependencies": { "ace-builds": "^1.2.9", "async": "2.6.0", "autoprefixer": "7.2.4", "bcryptjs": "2.4.3", "benchpressjs": "^1.2.1", "body-parser": "^1.18.2", "bootstrap": "^3.3.7", "chart.js": "^2.7.1", "clipboard": "1.7.1", "colors": "^1.1.2", "commander": "^2.12.2", "compression": "^1.7.1", "connect-ensure-login": "^0.1.1", "connect-flash": "^0.1.1", "connect-mongo": "2.0.1", "connect-multiparty": "^2.1.0", "connect-redis": "3.3.3", "cookie-parser": "^1.4.3", "cron": "^1.3.0", "cropperjs": "^1.2.2", "csurf": "^1.9.0", "daemon": "^1.1.0", "diff": "^3.4.0", "express": "^4.16.2", "express-session": "^1.15.6", "express-useragent": "1.0.8", "graceful-fs": "^4.1.11", "helmet": "^3.11.0", "html-to-text": "3.3.0", "ipaddr.js": "^1.5.4", "jimp": "0.2.28", "jquery": "^3.2.1", "jsesc": "2.5.1", "json-2-csv": "^2.1.2", "less": "^2.7.3", "lodash": "^4.17.4", "logrotate-stream": "^0.2.5", "lru-cache": "4.1.1", "material-design-lite": "^1.3.0", "mime": "^2.2.0", "minimist": "^1.2.0", "mkdirp": "^0.5.1", "mongodb": "2.2.33", "morgan": "^1.9.0", "mousetrap": "^1.6.1", "mubsub": "^1.4.0", "nconf": "^0.9.1", "nodebb-plugin-composer-default": "6.0.20", "nodebb-plugin-composer-redactor": "^3.2.0", "nodebb-plugin-dbsearch": "2.0.13", "nodebb-plugin-emailer-local": "0.2.1", "nodebb-plugin-embed-videos": "0.1.9", "nodebb-plugin-emoji": "^2.2.3", "nodebb-plugin-emoji-android": "2.0.0", "nodebb-plugin-emoji-extended": "1.1.1", "nodebb-plugin-emoji-one": "^2.0.0", "nodebb-plugin-imagemagick": "^2.0.5", "nodebb-plugin-imgbed": "1.0.2", "nodebb-plugin-markdown": "8.4.2", "nodebb-plugin-mentions": "2.2.4", "nodebb-plugin-poll": "^0.2.17", "nodebb-plugin-registration-question": "0.1.8", "nodebb-plugin-rss": "1.1.9", "nodebb-plugin-soundpack-default": "1.0.0", "nodebb-plugin-spam-be-gone": "0.5.3", "nodebb-plugin-sso-steam-v2": "2.0.1", "nodebb-plugin-topic-tags": "0.1.3", "nodebb-plugin-youtube-lite": "0.4.8", "nodebb-rewards-essentials": "0.0.11", "nodebb-theme-lavender": "5.0.4", "nodebb-theme-persona": "8.0.9", "nodebb-theme-slick": "1.2.1", "nodebb-theme-vanilla": "9.0.7", "nodebb-widget-advanced-essentials": "0.1.5", "nodebb-widget-essentials": "4.0.2", "nodemailer": "4.4.1", "passport": "^0.4.0", "passport-local": "1.0.0", "postcss": "6.0.15", "postcss-clean": "1.1.0", "promise-polyfill": "^7.0.0", "prompt": "^1.0.0", "redis": "2.8.0", "request": "2.83.0", "rimraf": "2.6.2", "rss": "^1.2.2", "sanitize-html": "^1.16.3", "semver": "^5.4.1", "serve-favicon": "^2.4.5", "sitemap": "^1.13.0", "socket.io": "2.0.4", "socket.io-adapter-mongo": "^2.0.1", "socket.io-client": "2.0.4", "socket.io-redis": "5.2.0", "socketio-wildcard": "2.0.0", "spdx-license-list": "^3.0.1", "spider-detector": "1.0.18", "toobusy-js": "^0.5.1", "uglify-es": "^3.3.9", "uglify-js": "^3.3.4", "validator": "9.2.0", "winston": "^2.4.0", "xml": "^1.0.1", "xregexp": "3.2.0", "zxcvbn": "^4.4.2" }, "devDependencies": { "coveralls": "^3.0.0", "eslint": "^4.14.0", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.8.0", "grunt": "^1.0.1", "grunt-contrib-watch": "^1.0.0", "jsdom": "^11.5.1", "mocha": "^4.1.0", "mocha-lcov-reporter": "^1.3.0", "nyc": "^11.4.1", "smtp-server": "^3.4.1" }, "bugs": { "url": "https://github.com/NodeBB/NodeBB/issues" }, "engines": { "node": ">=6" }, "maintainers": [ { "name": "Andrew Rodrigues", "email": "[email protected]", "url": "https://github.com/psychobunny" }, { "name": "Julian Lam", "email": "[email protected]", "url": "https://github.com/julianlam" }, { "name": "Barış Soner Uşaklı", "email": "[email protected]", "url": "https://github.com/barisusakli" } ] }
then run
$ npm start > [email protected] start /var/www/mydomain.com > node loader.js 2018-04-19T07:47:44.529Z [450] - info: Launching web installer on port 4567 2018-04-19T07:47:44.931Z [450] - info: Web installer listening on http://0.0.0.0:4567
Now everything is fine, but sadly I dont know how this file was originaly generated it seems it does not come from nodebb github repo ...
At least I can continue !...
-
nodeBB 1.8.2 ubuntu16.04.2 redis install from scratchYup
https://docs.nodebb.org/installing/os/ubuntu/
Using mongodb , in my case I use redis -
nodeBB 1.8.2 ubuntu16.04.2 redis install from scratchFollowing this thread :
https://community.nodebb.org/topic/12235/moving-to-another-server
Posting here (cause I could not edit my original post, reported as spam?? ).Ok I run in an epic failure ... spend the evening on it without success ...
Let me explain ...
I couldn' t find an explicit official step by step procedure on how to properly install nodejs npm nodebb ... and since I' m not an expert regarding nodejs stuff ... I was mixing the documentations found on google from here and there (I hate doing this).Anyways ... Here he all the steps I followed, maybe someone can point the mistakes , and help me to go further...
Base system (already installed, working fine) :
- Ubuntu 16.04.2 Server 64bit
- nginx 1.10.3
- Redis server v=3.0.6
Final Goal :
- Install nodebb 1.8.2
- recover imported redisdb content.
\
\$ sudo apt install build-essential tcl libssl-dev zlib1g-dev libpcre3 libpcre3-dev unzip uuid-dev $ sudo apt install python-software-properties git sed supervisor imagemagick $ cd /var/www/ $ sudo git clone https://github.com/NodeBB/NodeBB.git mydomain.com $ sudo chown -R myuser:www-data mydomain.com $ cd mydomain.com/ $ LastTAGversion=$(git tag | grep -v auto | tail -1) $ git checkout "tags/${LastTAGversion}" $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - $ sudo apt-get install -y nodejs $ sudo apt-get install nodejs
Not sure about what to answer to the next step (just pressed enter to all questions)
$ sudo npm init
$ sudo npm install -g npm@latest $ sudo npm install --production $ sudo -i # cd /usr/local/bin/ # ln -s /usr/bin/npm npm $ nodejs --version v8.11.1 $ npm --version 5.8.0
until now all seems to be fine... then ... the issue happens ...
$ node app --setup='{ "base_url": "http://mydomain.com", "admin:username": "adminuser", "admin:password": "password", "admin:password:confirm": "password", "admin:email": "[email protected]" }' module.js:472 throw err; ^ Error: Cannot find module 'nconf' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/var/www/mydomain.com/app.js:28:13) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3)
Instaling requested modules ...
$ npm install nconf $ npm install nconf-redis $ npm install winston
$ node app --setup='{ "base_url": "http://mydomain.com", "admin:username": "adminuser", "admin:password": "password", "admin:password:confirm": "password", "admin:email": "[email protected]" }' /var/www/mydomain.com/src/prestart.js:71 var range = pkg.engines.node; ^ TypeError: Cannot read property 'node' of undefined at Object.versionCheck (/var/www/mydomain.com/src/prestart.js:71:25) at Object.<anonymous> (/var/www/mydomain.com/app.js:48:10) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:427:7) at startup (bootstrap_node.js:151:9)
I have no more clues here, and all the posts I' ve seen regarding the last error message does not help me
stuck. -
Moving to another server.Saw this threads in the suggested topic
https://community.nodebb.org/topic/6260/moving-a-nodebb-install-from-one-server-to-another/4I will give it a try later.
-
Moving to another server.Hello,
On an ubuntu14 vm I'm currently running a nodebb 1.8.2 coupled with a redis 3.0.6 using php 5.
My plan is to move this forum on a ubuntu16 physical machine running php7.
Is there a procedure to backup/restore the nodeBB ?
Or should I try to find a manual way of transfering my redis DB ?Thanks,
-
Gravatar 1.0.4 Shows no Avatarsooops =P
-
Gravatar 1.0.4 Shows no Avatars1.0.4 is not out yet right (not released) ?
Watching the github
If I understand by the time I'm writing these lines , le last tag shows : v1.0.4-auto.9 -
Invited users can't register Error: invalid-token...The 24h delay was the issue.
Thank you.
-
Invited users can't register Error: invalid-token...haha! might be this -_-;
But a more explicit error message would be nice -
Invited users can't register Error: invalid-token...Hello ,
Recently I invited friends to join my forum, and I found back an old issue, but I guess this time it won't be the same problem origin...
previous case : [Invited (future) users can't register](https://community.nodebb.org/topic/6525/invited-future-users-can-t-register url)Nodebb : latest version
plugin : Emailer (Local) latest versionWhen an invited friend (with clear cache/cookies) , click on the link to register, he get an invalid token error message.
link received to register looks like :
http://mydomain.com/register?token=65a03575-8a79-4010-ae1f-d94c9fe7f8cd&email=my.friend%40hisprovider.comHere is what I get in my logs :
22/1 11:59 [971] - [31merror[39m: /register
Error: [[error:invalid-token]]
at /var/www/mydomain.com/src/user/invite.js:118:18
at fn (/var/www/mydomain.com/node_modules/async/lib/async.js:741:34)
at /var/www/mydomain.com/node_modules/async/lib/async.js:1208:16
at /var/www/mydomain.com/node_modules/async/lib/async.js:166:37
at /var/www/mydomain.com/node_modules/async/lib/async.js:701:43
at /var/www/mydomain.com/node_modules/async/lib/async.js:167:37
at Command.callback (/var/www/mydomain.com/node_modules/async/lib/async.js:1204:30)
at RedisClient.return_reply (/var/www/mydomain.com/node_modules/redis/index.js:664:25)
at JavascriptReplyParser.reply_parser.send_reply (/var/www/mydomain.com/node_modules/redis/index.js:332:14)
at JavascriptReplyParser.run (/var/www/mydomain.com/node_modules/redis/lib/parsers/javascript.js:132:18)Thanks for your help
Regards -
Invited (future) users can't registerThanks a lot for updating, and information !
-
Invited (future) users can't registerOk right , it works now.
- Keep default theme until others are fixed to allow invitation to people.
- modify url from localhost to mydomain.com in config.json solved the 'wrong url' send by mail
after this , - clearing cache in browser will avoid having invalid csrf token error.
Do you have an idea on when the themes will be fixed ?
and how to update them ?Was wondering if : git pull is necessary before doing : ./nodebb upgrade ?
-
Invited (future) users can't registerI've try everything, even clean install from scratch.
each time I modify the url in config.json right after, any attempt to access the forum is rejected.
reverting to the old reference change nothing...18/9 20:01 [18732] - error: /login
invalid csrf token -
Invited (future) users can't registerlocalhost:4567 was in url field in config.json
I modified manually to mydomain.com, restarted nodebb... since then it is impossible to login anymore...
I'm stuck...
Even reverting back to localhost:4567 does not help ... -_-; -
Invited (future) users can't registerAnswer found !
Invitation button in user tab is NOT working if the theme is not the default one.
- nodebb-theme-persona (default) : Ok
- nodebb-theme-vanilla : Fails
- nodebb-theme-lavender : Fails
And now mail is sent to the user , but link from the mail point to : localhost:4567 ...
-
Invited (future) users can't registerI have one error that comes when the main page is loaded :
WebSocket connection to 'ws://mydomain.com/socket.io/?EIO=3&transport=websocket&sid=f7lp9ue1TJNpSNzkAAAS' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVEDBut other than this one no error reported, no error when I click on : invitation