JOT server issue

Hi peeps! I've installed Messenger and I'm trying to get the jot-server working.

I've installed node and npm and npx all in /root/nodeext/bin and they all report their version correctly.

I've installed forever

I've installed the jot-server (app.js and the others) in /root/jot-server-1.0.3

My package.json is as follows:

{
"port":5443,
"mode":"development",
"log":"log.log",
"domains":["*"],
"transformer":"sockjs",
"root":"/home/witcamkd/ssl/certs/",
"cert":"witches_community_c6bfc_dd0a1_1632095999_2e6102967f7476c1657e786b02273e00.crt",
"key":"witches_community_c6bfc_dd0a1_1632095999_2e6102967f7476c1657e786b02273e00.crt",
"OFFLINE":0,
"ONLINE":1,
"AWAY":2
 }

I have tried variations of the following:

forever -w --watchDirectory=/home/witcamkd/ssl/certs/ start /root/jot-server-1.0.3/app.js

I keep getting the same errors:

warn:    --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: /root/jot-server-1.0.3/app.js
(node:12731) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12731) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

Anyone have an idea where I made my mistake?

Thanks!

  • 612
  • More
Replies (4)
    • Hello!

      Did you perform command : 

      npm install  

      in the root of the Jots Server folder ?

      • Yes, for sure. No errors when I do that. It completes successfully. I get:

        up to date, audited 1 package in 299ms

        found 0 vulnerabilities

        When I do ps uax in terminal, I do see this:

        root     25871  0.0  1.4 645900 29464 ?        Ssl  14:37   0:00 /root/bin/node /root/lib/node_modules/forever/bin/monitor /root/jot-server-1.0.3/app.js

        However, when I click the message icon, it loads the messenger screen and says Connecting...

        • Hello!

          You need to check this items:

          1) Defined port may be closed for external connect, you can check it with command:
          telnet mydomain.org PORT

          2) Certificate problem: namely there are may be wrong paths to certificate files in Jot Server's config/config.json file or certificate is expired.

          Also check please Jot Server folder if it contains log.log file, it appears when you have a problems.

          You may also check browser controls on Messenger page. It should contain errors, errors may help to understand the cause of the problem.

          If it doesn't help contact me directly via PM, I can check.

          • Final note on this issue: Alexy helped solve the configuration issues, and also discovered that a firewall was blocking port 5443. Even though in the WHM firewall settings, it shows port 5443 is not blocked, Namecheap actually did have 5443 blocked. I contacted them and they unblocked it on their side, and Messenger started working as expected. Below are the 2 correct configuration files for anyone else that has issues getting Messenger to work. Obviously you'll need to edit the information to reflect your certs and paths and so forth.

            config.json

            {
            "port":5443,
            "mode":"development",
            "log":"log.log",
            "domains":["*"],
            "transformer":"sockjs",
            "root":"/home/witcamkd/ssl",
            "cert":"certs/witches_community_c6bfc_dd0a1_1632095999_2e6102967f7476c1657e786b02273e00.crt",
            "key":"keys/c6bfc_dd0a1_60b34c1e7ac8d1d925c6445b38a52c77.key",
            "OFFLINE":0,
            "ONLINE":1,
            "AWAY":2
            }

            package.json

            {
            "name": "jot_server",
            "version": "1.0.4",
            "description": "Jot Messenger",
            "main": "app.js",
            "dependencies": {
            "isip": "*",
            "nconf": "0.10.0",
            "primus": "7.3.0",
            "safe-buffer": "^5.2.1",
            "sockjs": "*",
            "winston": "^2.4.0"
            },
            "repository": {
            "type": "git",
            "url": "git+https://github.com/unaio/jot-client-una.git"
            },
            "author": "UNA Inc <support@una.io> (https://una.io)",
            "license": "MIT",
            "bugs": {
            "url": "https://github.com/unaio/jot-client-una/issues"
            },
            "homepage": "https://github.com/unaio/jot-client-una#readme"
            }

            Login or Join to comment.