• Error running Webserver as NT Service

    From Deepthaw@1:103/705 to All on Wed Jun 14 11:32:10 2017
    I'm running Synchronet 3.17a on Windows Server 2003 (32-bit) on an Amazon EC2 instance. I'm running 3.17 because I want to be able to use electronicchicken's v4 web interface.

    When I launch everything via the Synchronet control panel without the NT services installed, everything functions fine.

    If I install the NT services and then attempt to start them, they all start fine except for the web server. It gives a 1067 (service unexpectedly terminated) and then the rest of the services stop as well.

    Here's some of the entries from the system events. The last one is the interesting one.

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..11:04:33 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Synchronet Web Server Revision 1.644

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..11:04:33 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Compiled Jun 11 2017 05:20:24 with MSC 1800

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..11:04:33 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Initializing on Wed Jun 14 11:04:33 2017 with options: 800

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..11:04:33 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Loading configuration files from C:\sbbs\ctrl\

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..11:04:33 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Adding Web Server listening socket on 0.0.0.0 port 80

    Event Type:.Error
    Event Source:.Application Error
    Event Category:.(100)
    Event ID:.1000
    Date:..6/14/2017
    Time:..11:04:34 AM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Deepthaw on Wed Jun 14 12:51:48 2017
    Re: Error running Webserver as NT Service
    By: Deepthaw to All on Wed Jun 14 2017 11:32 am

    I'm running Synchronet 3.17a on Windows Server 2003 (32-bit) on an Amazon EC2 instance. I'm running 3.17 because I want to be able to use electronicchicken's v4 web interface.

    When I launch everything via the Synchronet control panel without the NT services installed, everything functions fine.

    If I install the NT services and then attempt to start them, they all start fine except for the web server. It gives a 1067 (service unexpectedly terminated) and then the rest of the services stop as well.

    Here's some of the entries from the system events. The last one is the interesting one.

    Adding Web Server listening socket on 0.0.0.0 port 80

    Event Type: Error
    Event Source: Application Error
    Event Category: (100)
    Event ID: 1000
    Date: 6/14/2017
    Time: 11:04:34 AM
    User: N/A
    Computer: AMAZON-0E24E5F0
    Description:
    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    Looks like the web server crashes right after trying to listen on port 80. If you increase the LogLevel in your sbbs.ini file, do you get more log events before the crash (fault)?

    We'll need to narrow this down a little further to find the cause (and fix it).

    digital man

    Synchronet "Real Fact" #32:
    The second most prolific contributor to Synchronet is Stephen Hurd (Deuce). Norco, CA WX: 86.6oF, 31.0% humidity, 4 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to Digital Man on Wed Jun 14 13:41:02 2017
    Re: Error running Webserver as NT Service
    By: Deepthaw to All on Wed Jun 14 2017 11:32 am

    I'm running Synchronet 3.17a on Windows Server 2003 (32-bit) on an Amazon EC2 instance. I'm running 3.17 because I want to be able to use electronicchicken's v4 web interface.

    When I launch everything via the Synchronet control panel without the NT services installed, everything functions fine.

    If I install the NT services and then attempt to start them, they all start fine except for the web server. It gives a 1067 (service unexpectedly terminated) and then the rest of the services stop as well.

    Here's some of the entries from the system events. The last one is the interesting one.

    Adding Web Server listening socket on 0.0.0.0 port 80

    Event Type: Error
    Event Source: Application Error
    Event Category: (100)
    Event ID: 1000
    Date: 6/14/2017
    Time: 11:04:34 AM
    User: N/A
    Computer: AMAZON-0E24E5F0
    Description:
    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    Looks like the web server crashes right after trying to listen on port 80. If you increase the LogLevel in your sbbs.ini file, do you get more log events before the crash (fault)?

    We'll need to narrow this down a little further to find the cause (and fix it).

    Raise the logging level up to "debugging" and no new events recorded or displayed in the
    log, at least not in the place we're looking for (the only added events all reported no
    problems.)

    I tried changing up which port it is listening on, and that didn't help either.

    It's not a huge issue since it runs fine if I launch the control panel and don't use the NT
    services. I've got a WinXP VM I was using for staging before I moved it to EC2, I'll see if the
    service gives the same issues there.
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Deepthaw on Wed Jun 14 22:54:08 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to Digital Man on Wed Jun 14 2017 01:41 pm

    Re: Error running Webserver as NT Service
    By: Deepthaw to All on Wed Jun 14 2017 11:32 am

    I'm running Synchronet 3.17a on Windows Server 2003 (32-bit) on an Amazon EC2 instance. I'm running 3.17 because I want to be able to use electronicchicken's v4 web interface.

    When I launch everything via the Synchronet control panel without the NT services installed, everything functions fine.

    If I install the NT services and then attempt to start them, they all start fine except for the web server. It gives a 1067 (service unexpectedly terminated) and then the rest of the services stop as well.

    Here's some of the entries from the system events. The last one is the interesting one.

    Adding Web Server listening socket on 0.0.0.0 port 80

    Event Type: Error
    Event Source: Application Error
    Event Category: (100)
    Event ID: 1000
    Date: 6/14/2017
    Time: 11:04:34 AM
    User: N/A
    Computer: AMAZON-0E24E5F0
    Description:
    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    Looks like the web server crashes right after trying to listen on port 80. If you increase the LogLevel in your sbbs.ini file, do you get more log events before the crash (fault)?

    We'll need to narrow this down a little further to find the cause (and fix it).

    Raise the logging level up to "debugging" and no new events recorded or displayed in the
    log, at least not in the place we're looking for (the only added events all reported no
    problems.)

    Right, but what I wanted to know was: what is the last web server log message before the crash?

    I tried changing up which port it is listening on, and that didn't help either.

    Okay, good to know.

    digital man

    Synchronet "Real Fact" #46:
    Synchronet External X/Y/ZMODEM protocol driver (SEXYZ) was introduced in 2005. Norco, CA WX: 70.8oF, 45.0% humidity, 4 mph SSE wind, 0.00 inches rain/24hrs --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to Digital Man on Thu Jun 15 09:27:48 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to Digital Man on Wed Jun 14 2017 01:41 pm

    Right, but what I wanted to know was: what is the last web server log message before the crash?

    Okay, good to know.

    digital man

    Synchronet "Real Fact" #46:
    Synchronet External X/Y/ZMODEM protocol driver (SEXYZ) was introduced in 2005. Norco, CA WX: 70.8-#F, 45.0% humidity, 4 mph SSE wind, 0.00 inches rain/24hrs

    ---
    rua Synchronet rua Vertrauen rua Home of Synchronet rua telnet://vert.synchro.net



    Here's what I've got with logging turned to debugging: (only posting the last three entries, I can do all of them if you want, but it's a lot and none of them reported any errors or warnings.)

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..3:33:10 PM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Web Server socket set created

    Event Type:.Information
    Event Source:.SynchronetWeb
    Event Category:.None
    Event ID:.0
    Date:..6/14/2017
    Time:..3:33:10 PM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Adding Web Server listening socket on 0.0.0.0 port 80

    Event Type:.Error
    Event Source:.Application Error
    Event Category:.(100)
    Event ID:.1000
    Date:..6/14/2017
    Time:..3:33:11 PM
    User:..N/A
    Computer:.AMAZON-0E24E5F0
    Description:
    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74 Applicat
    0008: 69 6f 6e 20 46 61 69 6c ion Fail
    0010: 75 72 65 20 20 73 62 62 ure sbb
    0018: 73 4e 54 73 76 63 73 2e sNTsvcs.
    0020: 65 78 65 20 30 2e 30 2e exe 0.0.
    0028: 30 2e 30 20 69 6e 20 75 0.0 in u
    0030: 6e 6b 6e 6f 77 6e 20 30 nknown 0
    0038: 2e 30 2e 30 2e 30 20 61 .0.0.0 a
    0040: 74 20 6f 66 66 73 65 74 t offset
    0048: 20 30 30 30 30 30 30 30 0000000
    0050: 30 0

    Additionally - I was able to replicate the crash in my 32-bit Windows XP VM running under Oracle Virtual Box. It follows the same chain of events, but generates a windows dialog of "sbbsNTsvcs has encountered a problem..." and has one additional entry in the system events log from DrWatson.

    The application, C:\sbbs\exec\sbbsNTsvcs.exe, generated an application error The error occurred on 06/15/2017 @ 09:17:27.145 The exception generated was c0000005 at address 00000000 (<nosymbols>)

    I tried installing just the webserver service and running it (in case the other services were causing the issue) and it still crashes.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Deepthaw on Thu Jun 15 12:22:52 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to Digital Man on Thu Jun 15 2017 09:27 am

    Faulting application sbbsNTsvcs.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    Okay, I was able to reproduce and fix the issue. It's been broken for quite a while (Aug-2015), but no one has reported it before now. <shrug>

    Anyway, get tomorrow morning's development binaries and the websrvr.dll will include the fix.

    digital man

    Synchronet/BBS Terminology Definition #4:
    BBS = Bulletin Board System
    Norco, CA WX: 87.5oF, 31.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to Digital Man on Thu Jun 15 16:09:02 2017
    I guess that shows how many people run it on win32 as opposed to linux. :)

    Out of curiosity, what was the bug? My coding is a bit rusty, but it looks like a null-pointer exception.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From KK4QBN@1:103/705 to Deepthaw on Thu Jun 15 23:34:44 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to Digital Man on Thu Jun 15 2017 16:09:03

    I guess that shows how many people run it on win32 as opposed to linux. :)

    When i did run on win32 I always used sbbsctrl console, just for the amount of control it gave, but I did notice lastnight while looking at the sbbslist that a larger portion of the bbs systems now run on linux compared to back just a few years ago. it really kind of suprised me, but Synchronet has grown leaps and bounds since then, especially when it comes to being platform compatible.

    it really has become a very powerful communcations tool (especially) by todays standards. imho.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Deepthaw on Thu Jun 15 22:57:06 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to Digital Man on Thu Jun 15 2017 04:09 pm

    I guess that shows how many people run it on win32 as opposed to linux. :)

    Out of curiosity, what was the bug? My coding is a bit rusty, but it looks like a null-pointer exception.

    A null-pointer (a function pointer, in this case) dereference.

    digital man

    Synchronet/BBS Terminology Definition #43:
    SEXPOTS = Synchronet External Plain Old Telephone System (POTS) service
    Norco, CA WX: 72.3oF, 57.0% humidity, 2 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.01-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to KK4QBN on Thu Jun 15 23:17:34 2017
    I think a lot of people are more familiar with Linux for administering servers (and it being free can't hurt), and with things like BBSLink out there, being able to run old DOS stuff easily isn't nearly as important.

    I originally wanted to run my BBS off of my Raspberry Pi for fun, but kept hitting little snags in setting it up. I set it up in a Windows XP VM just to get it working, and when I looked at Amazon's free EC2 instances, they offered Windows Server 2003, so I just copied the \sbbs directory over, and voila.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From KK4QBN@1:103/705 to Deepthaw on Fri Jun 16 10:44:16 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to KK4QBN on Thu Jun 15 2017 23:17:34

    I originally wanted to run my BBS off of my Raspberry Pi for fun, but kept hitting little snags in setting it up. I set it up in a Windows XP VM just to get it working, and when I looked at Amazon's free EC2 instances, they offered Windows Server 2003, so I just copied the \sbbs directory over, and voila. [0m

    Free you say? haha.. I will have a look at that.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to KK4QBN on Fri Jun 16 16:58:46 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to KK4QBN on Thu Jun 15 2017 23:17:34

    Free you say? haha.. I will have a look at that.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    rua Synchronet rua KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365



    For one year at least. I'll worry about the ramifications after that.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From KK4QBN@1:103/705 to Deepthaw on Fri Jun 16 23:10:30 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to KK4QBN on Fri Jun 16 2017 16:58:47

    Free you say? haha.. I will have a look at that.
    For one year at least. I'll worry about the ramifications after that.

    I wonder about the usage limits though, I would be afraid that I would go over, 750 hours monthly. I would wonder how exactly that is measured, I've seen my bbs active in one form or another for a couple days straight.

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Deepthaw@1:103/705 to KK4QBN on Sat Jun 17 11:28:38 2017
    It's 750/month, which is enough for 31.25 days nonstop.

    ---
    * Synchronet * Deep Space '94 - bbs.deepthaw.com - The Best 1994 Had to Offer
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From KK4QBN@1:103/705 to Deepthaw on Sat Jun 17 23:22:38 2017
    Re: Re: Error running Webserver as NT Service
    By: Deepthaw to KK4QBN on Sat Jun 17 2017 11:28:38

    It's 750/month, which is enough for 31.25 days nonstop.

    Yeah, I realized that after the fact.. should have done my math.. dunno why they would even state how many hours are given if given enough to cover the whole month, I guess incase they decide to lower it. :-)

    --

    Tim Smith (KK4QBN)
    KK4QBN BBS

    ---
    * Synchronet * KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365
    * Origin: Vertrauen - vert.synchro.net (1:103/705)