Comment to 'jot server config for messenger'
  • thanks Leonid,

    im not sure about the certificates since i have various ones! 

    Here is my config file:

    i have opened the TCPv4 port on the server firewall.. for 5000

    {

            "port"5000,

            "mode":"development",

            "log":"log.log",

            "domains":["*"],

            "transformer":"sockjs",

            "root":"/home/webgurul/ssl/certs/",

            "cert":"penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt",

            "key":"penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt",

            "OFFLINE":0,

            "ONLINE":1,

            "AWAY":2

    }


    The certificates directory looks like this. Note that i cant see any cert files, only .crt and some pem in another folder.

    Relevant certificates only copied below:

    penamacor_network_webguru_live_92925_f13cf_1615247999_26a004d81c28f7315b7e49b9cb313934.crt

    penamacor_network_webguru_live_c035a_2db31_1638961496_a8483a74aad46fe88221b1dd5bc54c8e.crt

    penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt

    penamacor_network_webguru_live_d9ad0_66be1_1615247999_91db5af7f95f143a155561df884a0fdc.crt.cache

    When i visit the page its blank:
    https://penamacor.network/page/messenger

    when i run forever.js i get this:

    [xxXxx@vps jot-server-master]# forever start app.js

    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: app.js

    (node:6816) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

    (Use `node --trace-warnings ...` to show where the warning was created)

    (node:6816) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

    [root@vps jot-server-master]# 


    [XXXXX@vps jot-server-master]# node --version

    v14.15.3

    [root@vps jot-server-master]#

    im not sure if there are any dependancies missing on node.js.. 

    Let me know if you need any other info.. 

    thanks!

    • Hello,

      It looks like you forgot to perform Jot Server installation. After archive uploading to the server you should perform command:

      npm install 

      in the root of the Jot Server folder (where package.json file is located) and then try to run the server again.