• Re: 3.17 to 3.18 upgrade

    From Tracker1@VERT/TRN to JohnBWilloughby on Tue Apr 6 03:29:05 2021
    On 3/28/2021 7:28 PM, JohnBWilloughby wrote:

    While I was on v3.17 I enabled the webv4 in sbbs.ini, and was able to verify that it was working by going to localhost on the computer where sbbs was running, I also verifyed that I could get to it from a comptuer in the same subnet. There only modification was to the modpots.ini file in c:\sbbs\ctrl. Once I upgrade to v3.18, I now get
    I do get the top line (I guess that would be the header ?) but I get this on the page :

    Try deleting *.xjs.ssjs (these are "built" xjs files, removing them will
    be recreated with the updated version.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    þ Synchronet þ Roughneck BBS - roughneckbbs.com
  • From JohnBWilloughby@VERT to Tracker1 on Tue Apr 6 15:23:00 2021
    On 3/28/2021 7:28 PM, JohnBWilloughby wrote:

    Try deleting *.xjs.ssjs (these are "built" xjs files, removing them will
    be recreated with the updated version.
    --
    I have the webv4 working now. I can login, use dark mode etc. the fix was the guest in the sbbs database was all lower case, when I changed it to Guest, everything started working :)

    I have been having one problem, thought your fix might work. but so far no joy. As I was saying the new web interface is working, for Guest, sysop, and normal user, with the exception of the "Files" menu, all other Menu Items work, but when you click on the File, you get just a blank page in the middle area where you would expect the listing of files etc. You can see for yourself as Guest if you go to http://tfbbs.d2g.com

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 02:18:29 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to Tracker1 on Tue Apr 06 2021 08:23:00

    I have been having one problem, thought your fix might work. but so far no joy. As I was saying the new web interface is working, for Guest, sysop, and normal user, with the exception of the "Files" menu, all other Menu Items work, but when you click on the File, you get just a blank page in

    When you update your BBS, are you updating everything, or cherrypicking certain files? I suspect this might be related to a change that was made to webv4/lib/files.js which depends on a recent copy of exec/load/filebase.js.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Tue Apr 6 20:01:16 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to Tracker1 on Tue Apr 06 2021 08:23:00

    When you update your BBS, are you updating everything, or cherrypicking certain files? I suspect this might be related to a change that was made to webv4/lib/files.js which depends on a recent copy of exec/load/filebase.js.


    When I updated my BBS, i did the incremental updates ... I started at 3.15, and as I worked my way thru the updates. I went through the ReadMe.txt, and all the commands.

    When the webv4 wasnt working ( that was the guest vs Guest ), I copied the webv4 from git and removed my c:\ssbs\webv4 and replaced it with the one from git. I just checked and most of the files in the webv4 are dated 3/28/2010. While the exec/load/filebase.js is dated 8/16/2020.

    so if webv4/lib/files.js is newer than exec/load/filease.js that would cause the Files issue ? Could the webv4 files being newer that the others also be related to the Who's online not showing anything ?

    There are no customization that I have made to the webv4 directory, so I could remove (i.e. rename) and copy the webv4 from the incremental update to 3.18 and see what that does.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From JohnBWilloughby@VERT to echicken on Tue Apr 6 20:06:54 2021
    When you update your BBS, are you updating everything, or cherrypicking certain files? I suspect this might be related to a >change that was made to webv4/lib/files.js which depends on a recent copy of exec/load/filebase.js.

    Success, when I move the 3.18 incremental webv4 folder back the files area is working again.

    The Who's Online is still not working :(

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 03:40:32 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 13:01:16

    so if webv4/lib/files.js is newer than exec/load/filease.js that would cause the Files issue ? Could the webv4 files being newer that the others also be related to the Who's online not showing anything ?

    Yes, and yes. Both of these features rely on things from exec/load/ which may be different or nonexistent on an earlier release.

    Basically it's best not to think of webv4 as a separate or self-contained project. At any time, an update to webv4 may rely on recent updates to other parts of the BBS, or a change to some other part of the BBS may necessitate an update to webv4 to avoid problems.

    There are no customization that I have made to the webv4 directory, so I could remove (i.e. rename) and copy the webv4 from the incremental update to 3.18 and see what that does.

    In all likelihood that will work better than using the current state of webv4 with an older Synchronet release.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 03:50:25 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 13:06:54

    The Who's Online is still not working :(

    In what sense?

    I just had a look, and Who's Online has no dependencies outside of webv4. If your webv4 install is internally consistent I would expect it to work.

    By default Who's Online won't show up in your sidebar if nobody's online, or if the only people online are in quiet/invisible mode. You can force it to always show up by setting this in ctrl/modopts.ini -> [web]:

    active_node_list = false

    There's a similar setting for the "System Information" sidebar menu, which will show all of the stats even if some of them are unflattering:

    hide_empty_stats = false

    Most if not all settings are described here:

    http://wiki.synchro.net/config:webv4

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Tue Apr 6 20:57:21 2021
    Yes, and yes. Both of these features rely on things from exec/load/ which may be different or nonexistent on an earlier release.

    Basically it's best not to think of webv4 as a separate or self-contained project. At any time, an update to webv4 may rely on recent updates to other parts of the BBS, or a change to some other part of the BBS may necessitate an update to webv4 to avoid problems.

    Good to know, so when you update the webv4, will the update coniside with an update to SBBS ?

    In all likelihood that will work better than using the current state of webv4 with an older Synchronet release.

    Yes its working much much better.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From JohnBWilloughby@VERT to echicken on Tue Apr 6 21:11:33 2021
    In what sense?


    When i go to http://tfbbs.d2g.com ( without logging in and a guest), on the sidebar under Who's Online, No users are shown. (Although they are shown under Recent Visitors). When I logon as myself or a test account, the Who's Online is empty.

    By default Who's Online won't show up in your sidebar if nobody's online, or if the only people online are in quiet/invisible mode. You can force it to always show up by setting this in ctrl/modopts.ini -> [web]:

    active_node_list = false

    I had it set to true, changed it to false, still not showing anyone online. I have two test account logged in at the moment, one via telnet, on via Web. And not showing up under Who's Online I check my account, and the two test accounts and they are not set to quite

    There's a similar setting for the "System Information" sidebar menu, which will show all of the stats even if some of them are unflattering:

    hide_empty_stats = false

    I saw that one, decided to set it to false, didnt like the unflattering info it displayed.


    Most if not all settings are described here:

    http://wiki.synchro.net/config:webv4


    I followed that link and set my [web] as follows :
    [web]
    guest = Guest
    timeout = 43200
    inactivity = 900
    user_registration = true
    minimum_password_length = 6
    maximum_telegram_length = 800
    web_directory = ../webv4
    ftelnet = true
    ftelnet_splash = ../text/tempest.ans
    keyboard_navigation = false
    vote_functions = true
    refresh_interval = 60000
    xtrn_blacklist = scfg,oneliner
    layout_sidebar_off = false
    layout_sidebar_left = false
    layout_full_width = false
    active_node_list = false
    hide_empty_stats = true
    locale = en_us
    forum_extended_ascii = false
    max_messages = 0
    files_inline = true
    darkmode_allow = true

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 06:45:21 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 14:11:33

    active_node_list = false

    I had it set to true, changed it to false, still not showing anyone online. I have two test account logged in at the moment, one via telnet,

    Is it not showing anyone online, but showing a list of nodes, or is Who's Online just not appearing whatsoever?

    I can't imagine why it would be broken, but there may be something in your log to indicate an error.

    You could also delete any .web files from your data/user/ directory, which would log anyone out of the website who's currently logged in, but *might* help with this (though probably not, it's just a guess).

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Wed Apr 7 00:48:57 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 14:11:33

    Is it not showing anyone online, but showing a list of nodes, or is Who's Online just not appearing whatsoever?

    its not showing anyone online or nodes. On the side bar at the top it says Who's Online and no one online. i dont even see the "via" and "Status" under Who's Online.

    I can't imagine why it would be broken, but there may be something in your log to indicate an error.

    Which log ? The http-xxxxx-log ?

    You could also delete any .web files from your data/user/ directory, which would log anyone out of the website who's currently logged in, but *might* help with this (though probably not, it's just a guess).

    I can try that, there were only 2 .web files, one for user #1 and user #75, that would be me and Guest.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 22:44:22 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 13:57:21

    Good to know, so when you update the webv4, will the update coniside with an update to SBBS ?

    Sometimes an update to webv4 depends on a recent change to Synchronet, sometimes not. Sometimes (but rarely) a change to Synchronet will necessitate a change to webv4. There's no one answer.

    Basically if you update your BBS, you should update webv4 - and vice versa.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@VERT/ECBBS to JohnBWilloughby on Wed Apr 7 22:54:23 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Tue Apr 06 2021 14:11:33

    When i go to http://tfbbs.d2g.com ( without logging in and a guest), on the sidebar under Who's Online, No users are shown. (Although they are shown under Recent Visitors). When I logon as myself or a test account,

    There's something wrong with your webv4/root/api/events.ssjs, but I can't be sure what. I just made a change to that file, but I am not sure that it will help.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Thu Apr 8 14:20:29 2021
    There's something wrong with your webv4/root/api/events.ssjs, but I can't be sure what. I just made a change to that file, but I am not sure that it will help.


    I think I might have a suspicion as to what is going on, but not sure how to address it.

    When I am on the computer that SBBS is installed on and open web browser, and go to http://localhost, I see what I expcect to see. I think login, and everything is working, even the blue bubbles under mail, letting me know I have new mail.

    The difference between http://localhost and http://tfbbs.d2g.com, well tfbbs.d2g.com is going thru a apache proxy / reverse proxy, the site tempestfury.d2g.com is on a different server than SBBS, and I use the proxy to get to SBBS

    Is there any special settings that need to be set if using a proxy ?

    if not, I guess I can try a different port other that 80. Will have to test a few things out.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Thu Apr 8 21:40:20 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 07:20:29

    There's something wrong with your webv4/root/api/events.ssjs, but I
    can't be sure what. I just made a change to that file, but I am not
    sure that it will help.

    Just so I know what stage we're at, do you now have the latest version of this file?

    When I am on the computer that SBBS is installed on and open web browser, and go to http://localhost, I see what I expcect to see. I think login, and everything is working, even the blue bubbles under mail, letting me know I have new mail.

    How about Who's Online - does that work as well?

    The difference between http://localhost and http://tfbbs.d2g.com, well tfbbs.d2g.com is going thru a apache proxy / reverse proxy, the site

    If Who's Online works when you view http://localhost, then it indicates that your reverse proxy is interfering with webv4's HTTP EventSource. It's possible that the latest version of events.ssjs will resolve this. It's possible that you need to change a setting in Apache.

    Is there any special settings that need to be set if using a proxy ?

    Maybe. It'll depend on whether anything's still not working after an update.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Thu Apr 8 16:02:58 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 07:20:29

    Just so I know what stage we're at, do you now have the latest version of this file?

    The file I have is dated 9/7/2020.

    How about Who's Online - does that work as well?

    If Who's Online works when you view http://localhost, then it indicates that your reverse proxy is interfering with webv4's HTTP EventSource. It's possible that the latest version of events.ssjs will resolve this. It's possible that you need to change a setting in Apache.

    Where can I get a recet copy of the events.ssjs ? Can I grab it from GIT ?

    I pointed port 80 to the computer running SBBS, and the Who's Online is working as it should. And the bubbles are there as well.

    so I am not sure what setting would need to be changed in Apache. Will have to do some research.

    Maybe. It'll depend on whether anything's still not working after an update.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From JohnBWilloughby@VERT to echicken on Thu Apr 8 16:16:43 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 07:20:29

    Just so I know what stage we're at, do you now have the latest version of this file?

    I just went to GIT and grabbed the events.ssjs and replaced it in the webv4/root/api, I change port 80 back to the main site so sbbs is again being proxied.

    I am using a computer that is VPN to some place in the netherlands, and connecting to http://ftbbs.d2g.com The Who's Online is working ... YAY!!!
    one minor thing - is shows new email, I go and read the email, respond to the email, when I am back at the main page, it still shows that I have new email.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to JohnBWilloughby on Thu Apr 8 18:38:11 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 09:02 am

    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 07:20:29

    Just so I know what stage we're at, do you now have the latest version of this file?

    The file I have is dated 9/7/2020.


    hey. word from the wise here.

    always backup before upgrading or making changes.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From echicken@VERT/ECBBS to JohnBWilloughby on Fri Apr 9 00:20:05 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 09:02:58

    Where can I get a recet copy of the events.ssjs ? Can I grab it from GIT ?

    Yes, the newest version is in git.

    The file I have is dated 9/7/2020.

    I changed webv4/root/api/events.ssjs yesterday, so your copy is out of date.

    so I am not sure what setting would need to be changed in Apache. Will have to do some research.

    If updating events.ssjs doesn't help (it might), you'll need to find out what needs to be done to allow Server-Sent Events through an Apache reverse proxy.

    Something about your Apache setup is altering the Content-Type response header when the client requests this file; it's meant to be "text/event-stream" but is instead being sent as "text/html". I have no real experience using Apache as a reverse proxy, so I can't say more than that.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to MRO on Thu Apr 8 18:00:06 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 09:02 am

    hey. word from the wise here.

    always backup before upgrading or making changes.
    ---
    When I say I went to GIT and replaced the file. What I mean is that I went to GIT, downloaded the new file. Renamed the original file from events.ssjs to events.ssjs.OLD, then copied in the new file from downloads. If the new file downloaded from GIT does not work, then i will delete it and revert the .OLD file back.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From JohnBWilloughby@VERT to echicken on Thu Apr 8 18:05:28 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 09:02:58

    Yes, the newest version is in git.

    I grabbed the newest from GIT, and used it, seems to fix the issue somewhat. I even reverted back to having port 80 going to the main page and SBBS being proxied and it works.

    I changed webv4/root/api/events.ssjs yesterday, so your copy is out of date.

    If updating events.ssjs doesn't help (it might), you'll need to find out what needs to be done to allow Server-Sent Events through an Apache reverse proxy.

    It did help. and I moved port 80 back to the main page, and tfbbs.d2g.com is not being proxied again, and still working. Only thing I see. When I log on as a test user(that I sent email to), I see that the user has email, I go and open/read/reply. But when I go back to the main page, I still see the icon saying I have mail. might be related to the text/event-stream. But so far so good.


    Something about your Apache setup is altering the Content-Type response header when the client requests this file; it's meant to be "text/event-stream" but is instead being sent as "text/html". I have no real experience using Apache as a reverse proxy, so I can't say more than that.

    hmmm.. I wonder if I need to add a text/event-stream in the Apache config.. I will look around.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From JohnBWilloughby@VERT to echicken on Thu Apr 8 19:03:12 2021
    Something about your Apache setup is altering the Content-Type response header when the client requests this file; it's meant to be "text/event-stream" but is instead being sent as "text/html". I have no real experience using Apache as a reverse proxy, so I can't say more than that.

    for the content-type text/event-stream what would be the extension of the file be ? ssjs or xjs or htm or html ?
    I can add text/event-stream to Apache mime type and see if that makes a different, but just wondering what the file extension would be

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Fri Apr 9 04:11:07 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Thu Apr 08 2021 12:03:12

    for the content-type text/event-stream what would be the extension of the file be ? ssjs or xjs or htm or html ?
    I can add text/event-stream to Apache mime type and see if that makes a different, but just wondering what the file extension would be

    It sounds like you're looking at mapping every file with a certain extension to the text/event-stream content type, and that wouldn't be the right thing to do in this case.

    The file in question is events.ssjs, but you wouldn't want *every* SSJS file to be sent with Content-Type: text/event-stream, since most of them are not event streams.

    The ideal thing would be to find a way to tell Apache *not* to alter/replace the Content-Type response header that's already been set by the downstream server.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@VERT/ECBBS to JohnBWilloughby on Fri Apr 9 04:11:56 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: echicken to JohnBWilloughby on Thu Apr 08 2021 21:11:07

    The ideal thing would be to find a way to tell Apache *not* to alter/replace the Content-Type response header that's already been set by the downstream server.

    And I should add, that's *if* Apache is even doing that, which I'm not clear on yet.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From JohnBWilloughby@VERT to echicken on Fri Apr 9 07:04:05 2021
    Well I was doing some reading, and something like
    ProxyPreserveHost On
    might help. I might try to add that one setting in the apache conf file see if it helps.

    And I fix one thing, and seems to break something else. Everything seems to work, except the Dark toggle is gone. I dont know if going back to the webv4 from the sbupd318 made it go away or it was something else. That one I am going to wait for the next update for that one.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to JohnBWilloughby on Fri Apr 9 22:47:49 2021
    Re: Re: 3.17 to 3.18 upgrade
    By: JohnBWilloughby to echicken on Fri Apr 09 2021 00:04:05

    Well I was doing some reading, and something like
    ProxyPreserveHost On
    might help. I might try to add that one setting in the apache conf file

    That is unlikely to help. As I understand it, that directive tells Apache to leave the request's Host header unmodified instead of replacing it with whatever the hostname of the server is that it's proxying to. This should have no impact on the Content-Type response header.

    Possible solutions I saw in a quick search:

    You may need to ensure that you have trailing slashes on the URLs in your ProxyPass and ProxyPassReverse directives.

    You could set DefaultType to None somewhere in your Apache config, but it sounds like this no longer works.

    You could add these to your config and see if it helps:

    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com