[solved] Remove plugin manually and 502 error >> plugin-sso-wordpress bug
-
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