• Ecwebv4

    From Dribble@VERT/LUNATIC to echicken on Fri Dec 30 22:35:32 2016
    Hey echicken,

    I have been using Ecwebv4 with no issues, but recently after an update I downloaded from the github, it is now doing this when anyone connects to the site.

    !Javascript c:\sbbs\web\root/pages\000-home.xjs.ssjs line 16: TypeError: websocket is null, Request: /index.xjs

    and on the web side, most of the page will not load.

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Fringe - lunatic.synchro.net
  • From echicken@VERT/ECBBS to Dribble on Sat Dec 31 13:57:02 2016
    Re: Ecwebv4
    By: Dribble to echicken on Fri Dec 30 2016 22:35:32

    !Javascript c:\sbbs\web\root/pages\000-home.xjs.ssjs line 16: TypeError: websocket is null, Request: /index.xjs

    I'm guessing that you don't have a [WebSocketTelnet] section in your 'ctrl/services.ini' file. There should be one there and it should look like this:

    [WebSocketTelnet]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    You may have something mostly similar but with a different section name.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Dribble@VERT/LUNATIC to echicken on Sat Dec 31 12:56:43 2016
    Re: Ecwebv4
    By: echicken to Dribble on Sat Dec 31 2016 01:57 pm

    I'm guessing that you don't have a [WebSocketTelnet] section in your 'ctrl/services.ini' file. There should be one there and it should look like this:

    [WebSocketTelnet]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js


    nope, thats already in there and setup properly - so now I am confused.

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Frin
  • From Dribble@VERT/LUNATIC to echicken on Sat Dec 31 13:06:19 2016
    Ok so I did some more experimenting and it appears everything is working as intended EXCEPT 000-home.xjs - that is the only file being called that is not working correctly. 003-games.xjs pulls up the xtrn section and loads the ftetlnet, and the rest of the page looks correct, but when I go back to home it all messes up again.

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Fringe - lunatic.synchro.net
  • From echicken@VERT/ECBBS to Dribble on Sat Dec 31 16:51:15 2016
    Re: Ecwebv4
    By: Dribble to echicken on Sat Dec 31 2016 12:56:43

    [WebSocketTelnet]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    nope, thats already in there and setup properly - so now I am confused.

    The error you're reporting is what I would expect to see if that section was missing, or wasn't labelled exactly as [WebSocketTelnet]. I can't see any other reason why that would happen based on the current state of the scripts in my GitHub repo, but I'll take another look at it later.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Dribble@VERT/LUNATIC to echicken on Sat Dec 31 15:04:15 2016
    Re: Ecwebv4
    By: echicken to Dribble on Sat Dec 31 2016 04:51 pm

    The error you're reporting is what I would expect to see if that section was missing, or wasn't labelled exactly as [WebSocketTelnet]. I can't see any other reason why that would happen based on the current state of the scripts in my GitHub repo, but I'll take another look at it later.

    my services.ini

    [WebSocketTelnet]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    [WebSocketRLogin]
    Port=1513
    Options=NO_HOST_LOOKUP
    Command=websocket-rlogin-service.js

    and modopts.ini

    [web]
    ; Unauthenticated visitors will be logged in as the user with this alias
    ; (Only give this user privileges you want unknown web visitors to have)
    guest = Guest
    ; Login sessions expire after this many seconds of inactivity
    timeout = 43200
    ; Web-based users disappear from the "Who's online" list after this many seconds
    inactivity = 900
    ; Allow new users to register via the web interface
    user_registration = true
    ; Enforce a minimum password length if user_registration is true minimum_password_length = 6
    ; Limit the length of a telegram (in characters) that a web user can send maximum_telegram_length = 800
    ; Which external program sections to list on the Games page (comma-separated) xtrn_sections = games,puzzle,rpg,erotic
    ; Where (absolute or relative to 'exec') the 'lib' and 'root' directories live web_directory = ../web
    ; Path to a .ans file to use as the ftelnet splash screen
    ftelnet_splash = ../text/synch.ans
    ; Only load this many messages from each sub (default: 0 for all)
    ; (If you get 'Out of memory' errors when viewing subs, tweak this setting) max_messages = 0
    ; Enable or disable keyboard navigation in message threads
    keyboard_navigation = false
    ; Display upvote/downvote buttons in message threads (3.17)
    vote_functions = true
    ; Refresh nodelist, vote counts, etc. this often (in milliseconds) refresh_interval = 60000

    I have also unzipped the websocket files to mods and exec as well just to cover all bases, so you can see why I am slightly perplexed.. I know it was working fine until recently

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Fringe - lunatic.synchro.net
  • From echicken@VERT/ECBBS to Dribble on Sat Dec 31 18:58:23 2016
    Re: Ecwebv4
    By: Dribble to echicken on Sat Dec 31 2016 15:04:15

    [WebSocketTelnet]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    Well, that looks right.

    I have also unzipped the websocket files to mods and exec as well just to cover all bases, so you can see why I am slightly perplexed.. I know it was working fine until recently

    The error is coming from the webserver so it shouldn't be affected by these.

    I forgot to mention that in the error message you shared earlier, 'websocket' was all in lower case; I would expect that variable name to appear as 'webSocket' in the log output. Not sure if that was a transcription error or if you copied and pasted.

    Have you customized your 000-home.xjs file at all? What happens if you temporarily replace it with the latest copy from GitHub?

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchic
  • From Dribble@VERT/LUNATIC to echicken on Sat Dec 31 16:04:38 2016
    Re: Ecwebv4
    By: echicken to Dribble on Sat Dec 31 2016 06:58 pm

    Have you customized your 000-home.xjs file at all? What happens if you temporarily replace it with the latest copy from GitHub?

    I am using the latest copy from github, I have not had a chance to customize it, and yeah I was having issues with copy/paste so I typed out the error message. Services.ini was copy/pasted tho.

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Fringe - lunatic.synchr
  • From echicken@VERT/ECBBS to Dribble on Sat Dec 31 19:45:10 2016
    Re: Ecwebv4
    By: Dribble to echicken on Sat Dec 31 2016 16:04:38

    I am using the latest copy from github, I have not had a chance to customize it, and yeah I was having issues with copy/paste so I typed out the error message. Services.ini was copy/pasted tho.

    Okay. Do you by any chance have other services.x.ini files in your ctrl directory beyond the usual services.ini? If so, what are they called?

    While I'd still like to figure out the cause of this problem, you can probably work around this issue by adding the following keys to the [web] section of modopts.ini:

    websocket_telnet_port=1123
    websocket_rlogin_port=1513

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ ele
  • From Dribble@VERT/LUNATIC to echicken on Sat Dec 31 17:50:48 2016
    Re: Ecwebv4
    By: echicken to Dribble on Sat Dec 31 2016 07:45 pm

    Okay. Do you by any chance have other services.x.ini files in your ctrl directory beyond the usual services.ini? If so, what are they called?

    nope just the services.ini and a 0 byte services.rec file

    While I'd still like to figure out the cause of this problem, you can probably work around this issue by adding the following keys to the [web] section of modopts.ini:
    websocket_telnet_port=1123
    websocket_rlogin_port=1513

    this seems to have fixed it. Thanks echicken! so weird that this suddenly happened.

    |08% |15Dribble|08 [|15ACiDiC/nRk|08]|07

    ---
    þ Synchronet þ Lunatic Fringe - lunatic.synchro.net