Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. isAG
    I
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 21
    • Best 3
    • Groups 0

    isAG

    @isAG

    4
    Reputation
    420
    Profile views
    21
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    isAG Follow

    Best posts made by isAG

    • RE: nodebb-plugin-dbsearch wildcardsearch

      Hello @BRUCE LEE

      My Concept is not bullet proof for production, i just setup a lab to test nodebb for our company it is NOT secure, but here you go! I used ubuntu server 16.04 LTS and followed installation steps from github repo of nodebb till i was able to login to nodebb.
      Over npm just install "npm install nodebb-plugin-solr", now you need solr, solr comes from apache, you need java and tomcat + solr.
      ubuntu have a preconfigured tomcat solr in their repo.

      sudo apt-get -y install openjdk-8-jdk
      mkdir /usr/java
      ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/java/default
      sudo apt-get -y install solr-tomcat

      now you can access solr over ttp://YOUR_IP:8080/solr
      after that configure nodebb plugin solr like this

      0_1476952626915_upload-8bd64a27-6f09-472d-ba0d-9ad172c6cb1d

      Save it, i think you have to restart nodebb under admin panel many times to see it work.
      At the beginning the indexing is not active, you must enable it, always look on the right side for yellow marked things from my picture:
      0_1476952779446_upload-0f59141c-555f-4762-ad68-069cd29c6a9f

      Also watch on dashboard for notices, it helps:
      0_1476952852347_upload-922325cb-843e-4ef7-ae09-5af53f534011

      Good Luck my Friend!

      posted in Technical Support
      I
      isAG
    • RE: Mainpage Bug with Theme Lavender since Update from 1.4.x to 1.6.1

      did it today...maybe nodebb is able to fix it

      posted in Technical Support
      I
      isAG
    • Session Mismatch

      Hello

      First -> Thank you for that ldap Plugin.
      I was able to configure ldap access. It worked. First thing was that i logged in with ldap user and i had no admin rights. Problem is that local users don't work anymore after activating ldap. So goodbey admin forever? Never ever.

      I deactivated and uninstalled plugin, restarted, logged in with local admin, watched under user and deleted ldap user for a clean start from scratch.

      Installed and actived plugin again, tried to login with same ldap user on other browser while logged in with local admin in second browser. Session Missmatch appearing in endless loop somehow:
      0_1518777570377_2c8b6549-9ba5-472d-8a92-e2707dcc6471-image.png image

      Logged in with diffrent ldap user works. I gave this user admin rights with local admin. So im fine now. But how can i solve this Session Mismatch with my first user i tried? It still appears after restarting everything! I also cleared cache of browsers, restart of nginx and nodebb did nothing. I think there is something in the database that must be deleted manually? Please help me!

      posted in Technical Support
      I
      isAG

    Latest posts made by isAG

    • upgrade pain from v1.12 to v1.13.x/v1.14.x

      it was no problem to uprade from v1.7.x to v1.12. since v1.12.x sharp was added. i was searching the solution for last 2 hours but nothing works.
      i run ubuntu lts 16.04. i already have make, g++, python and libvips-dev
      node version is v8.6.0

      ervice@wiki:/user/mun/isweb/nodebb$ git checkout v1.13.x
      Branch v1.13.x konfiguriert zum Folgen von Remote-Branch v1.13.x von origin.
      Zu neuem Branch 'v1.13.x' gewechselt
      service@wiki:/user/mun/isweb/nodebb$ git reset --hard origin/v1.13.x
      HEAD ist jetzt bei f879c4a chore: incrementing version number - v1.13.4-5
      service@wiki:/user/mun/isweb/nodebb$ ./nodebb upgrade
      Dependencies outdated or not yet installed.
      Installing them now...
      
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN notice [SECURITY] sanitize-html has the following vulnerability: 1 critical. Go here for more details: https://www.npmjs.com/advisories?search=sanitize-html&version=1.27.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
      npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
      npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      WARN notice [SECURITY] minimist has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=minimist&version=0.0.8 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
      
      > benchpressjs@2.0.3 install /user/mun/isweb/nodebb/node_modules/benchpressjs
      > cd rust/benchpress-rs && npm install
      
      
      > benchpress-rs@0.1.0 install /user/mun/isweb/nodebb/node_modules/benchpressjs/rust/benchpress-rs
      > neon build --release >> build.log 2>&1 || exit 0
      
      npm notice created a lockfile as package-lock.json. You should commit this file.
      added 83 packages in 3.364s
      
      > sharp@0.25.3 install /user/mun/isweb/nodebb/node_modules/sharp
      > (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
      
      info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-linux-x64.tar.gz
      prebuild-install WARN This package does not support N-API version undefined
      prebuild-install WARN install No prebuilt binaries found (target=undefined runtime=napi arch=x64 libc= platform=linux)
      make: Verzeichnis „/user/mun/isweb/nodebb/node_modules/sharp/build“ wird betreten
        CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
        AR(target) Release/obj.target/../node-addon-api/nothing.a
        COPY Release/nothing.a
        TOUCH Release/obj.target/libvips-cpp.stamp
        CXX(target) Release/obj.target/sharp/src/common.o
      In file included from ../src/common.cc:22:0:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi.h:1939:33: error: ‘napi_callback_scope’ has not been declared
           CallbackScope(napi_env env, napi_callback_scope scope);
                                       ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi.h:1946:14: error: expected type-specifier before ‘napi_callback_scope’
           operator napi_callback_scope() const;
                    ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi.h:1952:5: error: ‘napi_callback_scope’ does not name a type
           napi_callback_scope _scope;
           ^
      In file included from /user/mun/isweb/nodebb/node_modules/node-addon-api/napi.h:2426:0,
                       from ../src/common.cc:22:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4009:17: error: ‘napi_callback_scope’ has not been declared
         napi_env env, napi_callback_scope scope) : _env(env), _scope(scope) {
                       ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h: In constructor ‘Napi::CallbackScope::CallbackScope(napi_env, int)’:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4009:57: error: class ‘Napi::CallbackScope’ does not have any field named ‘_scope’
         napi_env env, napi_callback_scope scope) : _env(env), _scope(scope) {
                                                               ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h: In constructor ‘Napi::CallbackScope::CallbackScope(napi_env, napi_async_context)’:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4015:41: error: ‘_scope’ was not declared in this scope
             _env, Object::New(env), context, &_scope);
                                               ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4015:47: error: ‘napi_open_callback_scope’ was not declared in this scope
             _env, Object::New(env), context, &_scope);
                                                     ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h: In destructor ‘virtual Napi::CallbackScope::~CallbackScope()’:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4020:56: error: ‘_scope’ was not declared in this scope
         napi_status status = napi_close_callback_scope(_env, _scope);
                                                              ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4020:62: error: ‘napi_close_callback_scope’ was not declared in this scope
         napi_status status = napi_close_callback_scope(_env, _scope);
                                                                    ^
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h: At global scope:
      /user/mun/isweb/nodebb/node_modules/node-addon-api/napi-inl.h:4026:32: error: expected type-specifier before ‘napi_callback_scope’
       inline CallbackScope::operator napi_callback_scope() const {
                                      ^
      cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
      sharp.target.mk:123: die Regel für Ziel „Release/obj.target/sharp/src/common.o“ scheiterte
      make: *** [Release/obj.target/sharp/src/common.o] Fehler 1
      make: Verzeichnis „/user/mun/isweb/nodebb/node_modules/sharp/build“ wird verlassen
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
      gyp ERR! stack     at emitTwo (events.js:125:13)
      gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
      gyp ERR! System Linux 4.4.0-43-generic
      gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /user/mun/isweb/nodebb/node_modules/sharp
      gyp ERR! node -v v8.6.0
      gyp ERR! node-gyp -v v3.6.2
      gyp ERR! not ok
      npm WARN nodebb-plugin-emoji-android@2.0.0 requires a peer of nodebb-plugin-emoji@^2.0.0 but none was installed.
      npm WARN nodebb-plugin-emoji-one@2.0.0 requires a peer of nodebb-plugin-emoji@^2.0.0 but none was installed.
      npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none was installed.
      npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none was installed.
      npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none was installed.
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! sharp@0.25.3 install: `(node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the sharp@0.25.3 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/service/.npm/_logs/2020-08-19T10_51_50_336Z-debug.log
      Error installing dependencies!
      message: Command failed: npm install --production
      stdout: null
      stderr: null
      /user/mun/isweb/nodebb/src/cli/package-install.js:72
                      throw e;
                      ^
      
      Error: Command failed: npm install --production
          at checkExecSyncError (child_process.js:592:13)
          at Object.execSync (child_process.js:632:13)
          at Object.installAll (/user/mun/isweb/nodebb/src/cli/package-install.js:63:9)
          at Object.<anonymous> (/user/mun/isweb/nodebb/src/cli/index.js:60:18)
          at Module._compile (module.js:624:30)
          at Object.Module._extensions..js (module.js:635:10)
          at Module.load (module.js:545:32)
          at tryModuleLoad (module.js:508:12)
          at Function.Module._load (module.js:500:3)
          at Module.require (module.js:568:17)
      

      please help!

      mikeal created this issue in request/request

      open Request’s Past, Present and Future #3142

      mikeal created this issue in request/request

      open Request’s Past, Present and Future #3142

      posted in Technical Support
      I
      isAG
    • Delete User, dont delete Posts, Map Posts to new/existing User

      Like the title explains. I like to delete a user but not the posts / content from user. Is it possible to move posts / content of that user to another user before i delete the user. Or do i have to delete and then move/ map posts / content to another existing user?

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      @julian said in Session Mismatch:

      @isag said in Session Mismatch:

      Other way would be that nodebb can handle ldap integration out of the box...That would be damn awesome!

      Heheh... unfortunately for you that won't happen because not everybody wants or needs LDAP integration, so we encourage the use of plugins so that a NodeBB can be customised to the exact needs of the admin.

      Thats great but ldap plugin seems to be outdated, no one answers for issue on github, so development somehow has been stopped and local users can't be used at the moment.

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      @julian said in Session Mismatch:

      The "key" is the LDAP id on your end (the "remote" side), the "value" is the NodeBB uid. You'll need one of those to figure out the leftover entry and then you can delete it.

      I'm not sure if it'll work, but when you're in the midst of the login loop, maybe you can type app.user in the web inspector console to see what it is set to...

      It works now, thank you very much!

      I did a backup of mongo db and whole vm ... To figure out what UID i have, i deleted all sessions under mongodb and logged in with the ldap user that don't work ... under session it shows UID7 for that session. Searching under object for ldap and deleted entry with value UID7.

      It would be awesome if local users would work too, but i think this depends on the ldap plugin...
      Other way would be that nodebb can handle ldap integration out of the box...That would be damn awesome!

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      @julian said in Session Mismatch:

      Hi! Thanks for following up. Since you posted before and today, I think I might know what is going on.

      Can you let me know the uid? It looks like when the LDAP plugin registers a new user it doesn't handle user deletion at all, so that is why it is trying to log you into an account that no longer exists (hence session mismatch).

      Do you know your ldap ID? If so, please delete the incorrect reference from the ldapid:uid hash.

      hdel ldapid:uid {yourLDAPid} or in mongo:

      db.objects.update({ _key: "ldapid:uid" }, { $unset: "{yourLDAPid}": "" });

      @julian, i think i found it with your help. but im not sure, how can i know what ldap id i have? I think my UID is 7... So, it is possible that i have 1483239134, but how can i doublecheck this!? look screenshot

      0_1526551251257_3f266fee-4217-40d0-81fc-83710fffb4f6-image.png

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      Hello julian

      Thank you for reply! I will search for ldapid, im not sure but i think i didn't see ldapid. Is this stored under objects? must be there, cause session is only tmp...Will look asap when im back in office.

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      @julian
      i don't understand where the problem is...
      i have this problem over a year now and everyone can use nodebb over ldap...
      but not my user over ldap, im sure, im uid:7......

      see what happens when i delete all sessions. so under objects i see:

      {
      "_id" : ObjectId("5af1938c0927a23eb5d87773"),
      "_key" : "uid:7:sessions",
      "value" : "Iy2SjVzdi3zUjDjF0At_Gs6BwY96MiZ1",
      "score" : 1525781388101.0
      }
      {
      "_id" : ObjectId("5af1923d0927a23eb5d87771"),
      "_key" : "uid:7:sessions",
      "value" : "v3QiHjqADJ5tyvsy9TpEpdUvh-KlXmUB",
      "score" : 1525781053765.0
      }

      under sessions:

      {
      "_id" : "v3QiHjqADJ5tyvsy9TpEpdUvh-KlXmUB",
      "session" : "{"cookie":{"originalMaxAge":1209600000,"expires":"2018-05-22T12:09:17.452Z","secure":true,"httpOnly":true,"domain":"xxx","path":"/"},"csrfSecret":"h5FTrzQrRex4kXU_y3F_0LjB","flash":{},"passport":{"user":7},"meta":{"ip":"x.x.x.x","uuid":"09008e73-2f23-4c47-a4e3-58351a793abb","datetime":1525781053765,"platform":"Microsoft Windows","browser":"Firefox","version":"59.0"}}",
      "expires" : ISODate("2018-05-22T12:09:17.452+0000")
      }
      {
      "_id" : "Iy2SjVzdi3zUjDjF0At_Gs6BwY96MiZ1",
      "session" : "{"cookie":{"originalMaxAge":false,"expires":false,"secure":true,"httpOnly":true,"domain":"xxx","path":"/"},"csrfSecret":"tMUwaiPII6wvmfPMajOaNQTE","flash":{},"passport":{"user":7},"meta":{"ip":"x.x.x.x","uuid":"f8fec706-0e86-4383-9ff9-cb2ba2d06a76","datetime":1525781388101,"platform":"Microsoft Windows","browser":"Firefox","version":"59.0"}}",
      "expires" : ISODate("2018-05-22T12:09:50.204+0000")
      }

      PLEASE HELP i don't understand the logic how nodebb stores that data in database and why this is happening

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      Hello @julian, login works with all ldap users, except mine... and this must be related to my migration from local to ldap users over ldap connector. somehow the deletion of my user after deactivating and reactivating ldap plugin has something to do with it but i don't find anything in database...all other users from ldap working without any problem

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      Really no one got a clue? Thats not possible... 😞

      posted in Technical Support
      I
      isAG
    • RE: Session Mismatch

      Just for Information...deleted all cookies and cache on all browsers and deleted ALL mongodb sessions without any success 😤

      0_1518778930389_3911a6bc-4c27-4a09-9063-4ba5b71b2c55-image.png

      posted in Technical Support
      I
      isAG