Error JotServer

https://github.com/unaio/jot-server/blob/master/README.md

1. Ok

2. Ok

3 OK

4. OK

5 ...

node app.js

/var/www/una/jotserver/modules/server.js:31
oPrimusServer.on('connection', (oSpark) => {
^
error: Server Error SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /var/www/una/jotserver/app.js:19:12
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at Object.<anonymous> (/var/www/una/jotserver/app.js:18:9)

Config.json

{
        "port":5443,
        "mode":"development",
        "log":"log.log",
        "domains":["*"],
        "transformer":"sockjs",
        "root":"/etc/letsencrypt/live/una.twoforlife.com",
        "cert":"cert.pem",
        "key":"privkey.pem",
        "OFFLINE":0,
        "ONLINE":1,
        "AWAY":2
}

Did I make a mistake somewhere?

  • 676
  • More
Replies (9)
    • Hello!

      Can you please check your node js version?

      You may use this comment to check it:

      node -version
      • Hello,

        Thank you, I had an old version. Now...
        Node -v

        6.11.1

        I remade, point 4 and 5, ok, I have no more error is already better.
        Now I connexion..................................................  and write a message "grayed"
        I installed JotServer in /jotserver/jot-server-1.0.0/
        So I put this as URL in the messenger settings ....


        What can I do?

        • In messenger settings you need to put domain name of the server on which you have installed jot server or it's ip with port number, but not the path to the jot server. 
          For example: If you installed jot server on your server where Una site is located, then use domain name of your site with port. Like https://yourdomain.com:433

          • Ok I guess this is the port set in config / config.json which should be specified?
            https://twoforlife.com:5443
            I now have a slight change in behavior, it seems ok for 15 seconds then connexion ......................................................

            • My problem is solved. In fact as I have several sites on the same server, it was necessary that I install jotsserver in var/www/una/ and indicate https://una.twoforlife.com:5443 in the settings of the messenger. That's ok.

              • Hello!

                Ok, let us know please if you still have any problems with configuration or installation.

                 

                • Thank you for your help.

                  • If you are having the problem of the "Connecting....." staying down at the bottom...it might be this.
                    "The firewall configuration needed to be applied after saving."

                    This solved my issue after setup...

                    • Thank you Five For A Change, yes if the port is closed by firewall, it should be opened.

                      Login or Join to comment.