Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. sfchun
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sfchun

    @sfchun

    1
    Reputation
    23
    Posts
    550
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sfchun Follow

    Best posts made by sfchun

    • 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.

      posted in Technical Support
      S
      sfchun

    Latest posts made by sfchun

    • RE: Admin page no more accessible.

      Here it is.
      0_1540023571272_error.png

      posted in Technical Support
      S
      sfchun
    • RE: 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.

      posted in Technical Support
      S
      sfchun
    • 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.

      posted in Technical Support
      S
      sfchun
    • RE: 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": "andrew@nodebb.org",
            "url": "https://github.com/psychobunny"
          },
          {
            "name": "Julian Lam",
            "email": "julian@nodebb.org",
            "url": "https://github.com/julianlam"
          },
          {
            "name": "Barış Soner Uşaklı",
            "email": "baris@nodebb.org",
            "url": "https://github.com/barisusakli"
          }
        ]
      }
      

      then run

      $ npm start
      
      > nodebb@1.8.2 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 !...

      posted in Technical Support
      S
      sfchun
    • RE: nodeBB 1.8.2 ubuntu16.04.2 redis install from scratch

      Yup

      Ubuntu (Recommended) - NodeBB Documentation
      Using mongodb , in my case I use redis 😕

      posted in Technical Support
      S
      sfchun
    • nodeBB 1.8.2 ubuntu16.04.2 redis install from scratch

      Following 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": "myuser@mail.com"
      }'
      
      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": "myuser@mail.com"
      }'
      /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.

      posted in Technical Support
      S
      sfchun
    • RE: 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/4

      I will give it a try later.

      posted in Technical Support
      S
      sfchun
    • 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,

      posted in Technical Support
      S
      sfchun
    • RE: Gravatar 1.0.4 Shows no Avatars

      ooops =P

      posted in NodeBB Plugins
      S
      sfchun