I have a problem with the installation. I installed Node.JS on my root server, started the server.js with no errors.
When i refresh the page with the chat, sometimes it is able to create a channel, sometimes i get the error "could not create channel". Node gives me the following debug output while i refresh the page:
Successfully added channel 'Chat__node_1'
setContentToken: message { token: 'ABfSaj9iB7rY7efYEPOp4v1CddJtTCE_uVnoTRUiKiA',
channel: 'Chat__node_1',
notifyOnDisconnect: true }
setContentToken ABfSaj9iB7rY7efYEPOp4v1CddJtTCE_uVnoTRUiKiA for channel Chat__node_1
publishMessageToContentChannel: message { broadcast: false,
channel: 'Chat__node_1',
callback: 'nodejsChatUserOnlineHandler',
data:
{ chatroom: 'Chat__node_1',
name: 'citycamcheck',
subject: 'New user connected',
body: 'User citycamcheck has entered the chat',
user: { uid: '1', name: 'citycamcheck', picture: '0' } },
clientSocketId: '' }
getNodejsSessionIdsFromUid { uid: '1', sessionIds: [] }
No active sessions for uid: 1
Also Chrome console tells me:
GET http://localhost:8080/socket.io/socket.io.js net::ERR_CONNECTION_REFUSED citycamcheck.de/:58
My nodejs.config.js is:
/**
* This configuration file was built using the 'Node.js server configuration builder'.
* For a more fully commented example see the file nodejs.config.js.example in the root of this module
*/
backendSettings = {
"scheme":"http",
"host":"localhost",
"port":8080,
"key":"/path/to/key/file",
"cert":"/path/to/cert/file",
"resource":"/socket.io",
"publishUrl":"publish",
"serviceKey":"",
"backend":{
"port":80,
"host":"localhost",
"messagePath":"/nodejs/message"},
"clientsCanWriteToChannels":true,
"clientsCanWriteToClients":true,
"extensions":["nodejs_chat.module.js"],
"debug":true,
"transports":["websocket",
"flashsocket",
"htmlfile",</code>
"xhr-polling",
"jsonp-polling"],
"jsMinification":true,
"jsEtag":true,
"logLevel":1};
I already tried to reinstall node.js, with no changes. Running it on Debian 7.5. Do you have any ideas, or at least where to start searching ?
Yours
Daniel