Nodebb: No Composer works

Created on 16 Nov 2016  路  21Comments  路  Source: NodeBB/NodeBB

Please include the following information when submitting a bug report/issue:

  • NodeBB version and git hash (to find your git hash, execute git rev-parse HEAD from the main NodeBB directory)
    Latest Version, https://github.com/NodeBB/NodeBB.git downloaded from there today. (yesterday too) i did a pull request just also today.
  • Database (mongo or redis) and it's version.
    redis, Installed: 2:2.8.17-1+deb8u5

  • Exact steps to cause this issue

    1. get branch 1.x.x (and same problem with master)
    2. I started app.js using plesk node.js support
    3. I went to the URL and set up redis, my login name etc.
    4. logged in - tried to post something - not possible
  • What you expected

    • i expected a composer to come up

  • What happened instead

    • I get this error on both master and 1.x.x:

      config['composer-default'] is undefined

      The plugin is enabled though.

Thank you!

needs more info

All 21 comments

No matter what composer plugin i install, and if i uninstall the others - none works.

Hello @freakyy85 -- we can't reproduce this on our environments. We'll need a full stack trace please (frontend, since that seems to be the error?)

hi. i dont know how i can do a stacktrace? oO im new to all this node.js stuff. and i dont know javascript.

I'm using Plesk Onyx with the Node.js extension. Just enabling node.js for the vhost. I can set the environment to development but I still don't know how I can get a "stacktrace".

If the error is produced on client side as Julian suggest, you only need to open your browser console (ctrl+shift+i on chrome) go to console tab and check if an error is showed when trying to use the composer. If that happens just click on the error and copy the stacktrace.

TypeError: config['composer-default'] is undefined

nodebb.min.js:12
v.event.dispatch()
nodebb.min.js:2
v.event.add/g.handle()
nodebb.min.js:2
.trigger()
nodebb.min.js:3
.trigger/<()
nodebb.min.js:3
.each()
nodebb.min.js:1
v.prototype.each()

the same thing happens with ms edge and firefox.

TypeError: config['composer-default'] is undefined

nodebb.min.js:12
v.event.dispatch()
nodebb.min.js:2
v.event.add/g.handle()
nodebb.min.js:2
.trigger()
nodebb.min.js:3
.trigger/<()
nodebb.min.js:3
.each()

this is when using reply.

I can't help. I don't know javascript but it doesnt work for me.

hm sadly it just wont work. but id really like to use nodebb ;(

Your setup seems to have multiple issues not just composer.

First of all do you know if your host supports websockets? Websockets are required for NodeBB to work. This is not a bug. Just issues with your setup.

well it's debian 8.6 i think it supports websockets? I dont know why it shouldnt?
what other issues does the setup have?
It's Debian 8.6 with Plesk Onyx.

Are you using a proxy server to route requests to NodeBB like nginx or apache? If yes, are they setup for Socket.IO support?

Well I'm using apache2.4 and plesk onyx. Plesk onyx lets you setup node.js in a vhost i dont know if it supports sockets.io. I'm asking in their forums. will post back if i know more.
Or can you help me set that up?

The plesk support says:
When you run "NPM install" all required components should be installed. If you check node_modules directory for you nodebb, you will see

drwxr-xr-x 4 user_yrppmfmulk psacln 4096 Nov 17 12:02 websocket-driver
drwxr-xr-x 3 user_yrppmfmulk psacln 4096 Nov 17 12:02 websocket-extensions

at least.
And of course, you can install it for you nodebb manually with

-sh-4.2$ /opt/plesk/node/6/bin/npm install websocket

i now installed websocket manually but still it doesnt work still gives that error message:
cant connec tto wss://mydomain.tld/...

in the node_modules directory there are:
websocket/ websocket-driver/ websocket-extensions/

This issue tracker is not for installation support. Close this and continue the conversation on https://community.nodebb.org

Ok thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenLubar picture BenLubar  路  3Comments

aStonedPenguin picture aStonedPenguin  路  4Comments

darKnight0037 picture darKnight0037  路  4Comments

AliCihan picture AliCihan  路  4Comments

djensen47 picture djensen47  路  4Comments