[solved] Remove plugin manually and 502 error >> plugin-sso-wordpress bug

Technical Support
  • Hello,

    I am starting a new small forum so i test some plugins.
    After the last plugin installations, i get an 502 Bad Gateway error. The last plugin install before the error: plugin-sso-wordpress, plugin-ns-utils, plugin-ns-points.

    My config: ubuntu 14.04 + nginx + mongodb

    I can successfully start nodebb
    ./nodebb start

    But after the first page reload, i get an 502 error and i get:

    root@server:/usr/share/nginx/html/le.club.systemes.sonores.rocks# events.js:141
         throw er; // Unhandled 'error' event
         ^
    
    Error: write after end
       at writeAfterEnd (_stream_writable.js:159:12)
       at LogStream.Writable.write (_stream_writable.js:204:5)
       at Socket.ondata (_stream_readable.js:528:20)
       at emitOne (events.js:77:13)
       at Socket.emit (events.js:169:7)
       at readableAddChunk (_stream_readable.js:146:16)
       at Socket.Readable.push (_stream_readable.js:110:10)
       at Pipe.onread (net.js:523:20)
    

    When i check the log:
    ./nodebb log

    I get:

    19/1 07:07 [1105] - warn: [meta/dependencies] Bundled plugin nodebb-plugin-soundpack-default not found, skipping dependency check.
    19/1 07:07 [1105] - warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
    19/1 07:07 [1105] - warn: [plugins/nodebb-plugin-sso-google] Hook `filter:user.delete` is deprecated, please use `static:user.delete` instead.
    19/1 07:07 [1105] - warn: [plugins/nodebb-plugin-sso-twitter] Hook `filter:user.delete` is deprecated, please use `static:user.delete` instead.
    
    19/1 07:07 [1105] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
     * nodebb-plugin-recent-cards
     * nodebb-plugin-desktop-notifications
    
    19/1 07:36 [1391] - info: [plugins/spam-be-gone] Settings loaded
    19/1 07:36 [1391] - error: TypeError: OAuth2Strategy requires a clientID option
    

    I have try to remove the last plugin:

    root@server:/usr/share/nginx/html/le.club.systemes.sonores.rocks# ./nodebb reset -p plugin-ns-points
    19/1 07:54 [1593] - warn: You have no mongo password setup!
    19/1 07:54 [1593] - info: [database] Checking database indices.
    19/1 07:54 [1593] - warn: [reset] Plugin `plugin-ns-points` was not active on this forum
    19/1 07:54 [1593] - info: [reset] No action taken.
    

    Is the problem due to the plugin? The configuration?
    I don't understand because i have and a password to mongodb.

    Sorry i'm strating with node.js and i am lost because i am not able to restart the forum.

    Thank you for advance for any help.
    jB

  • After the last plugin installations, i get an 502 Bad Gateway error. The last plugin install before the error: plugin-sso-wordpress, plugin-ns-utils, plugin-ns-points.

    First, i try to disable manually plugins without success:
    # ./nodebb remove nodebb-plugin-ns-utils
    # ./nodebb remove nodebb-plugin-ns-points

    Then i try to remove them:
    npm remove nodebb-plugin-ns-utils

    Unssuccessful til i remove nodebb-plugin-sso-wordpress
    npm remove nodebb-plugin-sso-wordpress

    In fact, i notice this into the log:

    20/1 06:56 [2752] - error: TypeError: OAuth2Strategy requires a clientID option
        at new OAuth2Strategy (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/passport-oauth2/lib/strategy.js:83:34)
        at Object.OAuth.getStrategy [as method] (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/nodebb-plugin-sso-wordpress/library.js:78:43)
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/src/plugins/hooks.js:103:12
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:375:13
        at iterate (/usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:262:13)
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:274:29
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:44:16
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/async/lib/async.js:377:17
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/node_modules/nodebb-plugin-sso-twitter/library.js:69:4
        at /usr/share/nginx/html/le.club.systemes.sonores.rocks/src/meta/settings.js:12:4
    3 restarts in 10 seconds, most likely an error on startup. Halting.
    

    Bye,
    jB

  • @j.b.-o. You are not running proper commands.

    If you want to disable a plugin, run ./nodebb reset -p plugin-name

    To uninstall/remove a plugin, run npm uninstall plugin-name

  • Just to add, the error also references the Twitter sso plugin.

  • @a_5mith you are right but the plugin seems to work.


Suggested Topics


  • 0 Votes
    5 Posts
    656 Views

    Thank you @baris !

  • 0 Votes
    1 Posts
    310 Views

    Hi. How would I go about removing the picture icon (red) without removing the upload image icon (blue)? I'm guessing CSS, but what exactly would I target with display: none;?
    0_1538531412973_removeicon.PNG
    Thanks in advance!

  • 0 Votes
    3 Posts
    1k Views

    Not my browser, its a friends computer 🙂 But i will tell him 😛

  • Installation Errors

    Technical Support
    0 Votes
    1 Posts
    859 Views

    Installing on a KVM VM, Centos 6 64bit. Followed the tutorial https://docs.nodebb.org/en/latest/installing/os/centos.html

    Getting errors though...

    [root@localhost ~]# curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash source ~/.bash_profile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 3442 101 3442 0 0 16694 0 --:--:-- --:--:-- --:--:-- 98342 => Downloading nvm from git to '/root/.nvm' => Initialized empty Git repository in /root/.nvm/.git/ remote: Counting objects: 5491, done. remote: Compressing objects: 100% (7/7), done. Receiving objects: 100% (5491/5491), 1.58 MiB, done. remote: Total 5491 (delta 0), reused 0 (delta 0), pack-reused 5484 Resolving deltas: 100% (3321/3321), done. Note: checking out 'v0.13.1'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at eef12cc... v0.13.1 Deleted branch master (was f9e14b7). => Appending source string to /root/.bash_profile => Close and reopen your terminal to start using nvm [root@localhost ~]# source ~/.bash_profile /usr/bin/which: no node in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin) [root@localhost ~]# nvm install v0.12.7 # as of this writing check the result of the list-remote to see all choices ######################################################################## 100.0% -bash: manpath: command not found Now using node v0.12.7 [root@localhost ~]# systemctl start redis -bash: systemctl: command not found [root@localhost ~]# [root@localhost ~]# systemctl enable redis -bash: systemctl: command not found'
  • 1 Votes
    5 Posts
    2k Views

    @julian 3Q,QQ single sign-on configuration page is ok, but I found another problem.

    i can't find the button of qq sso in the login page.
    upload-64901fe2-932d-40fa-9266-20632e2ea263

    I found "CUSTOM HEADER" is not working while “Use Custom css” is checked!
    upload-94fead26-af1f-401c-baa0-a873547dc4b3
    upload-570051f9-f880-4cb2-8000-1b16c7dd0a01