Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 18 of 18 total
Thread Having trouble starting EWB Server v3 as a service
Thu, May 6 2021 2:19 AMPermanent Link

Paul Coshott

Avatar

>> Richard Harding wrote:

>> I use NirSoft's Current Ports utility to check what ports are opened.

Hi Richard,

Thanks for the idea. The port 446 was open by a process called "system". So I changed the port to 540 (which according to Current Ports, wasn't open). I added the rule to the firewall and retried, but got the same problem.

Cheers,
Paul
Thu, May 6 2021 2:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< Service failed on start: The web server cannot be started (Socket error: An attempt was made to access a socket in a way forbidden by its access permissions.
(10013), on API 'bind') >>

This typically means that something else is listening on either the normal port or secure port, or both, and preventing the EWB Web Server from binding to that same address/port combination.

You can use this command to find out which process is listening on one or more of the ports:

netstat -a -b > ports.txt

Run it in an Administrator command window.  It will run for a while, but then you can hit Ctrl-C to terminate it.  Afterwards, you'll see something like this:

Active Connections

 Proto  Local Address          Foreign Address        State
 TCP    0.0.0.0:80             TIM-DESKTOP:0          LISTENING
[ewbide.exe]
 TCP    0.0.0.0:135            TIM-DESKTOP:0          LISTENING
 RpcSs
[svchost.exe]
 TCP    0.0.0.0:443            TIM-DESKTOP:0          LISTENING
[ewbide.exe]
 TCP    0.0.0.0:445            TIM-DESKTOP:0          LISTENING
Can not obtain ownership information
 TCP    0.0.0.0:2179           TIM-DESKTOP:0          LISTENING
[vmms.exe]
 TCP    0.0.0.0:3306           TIM-DESKTOP:0          LISTENING
[mysqld.exe]
 TCP    0.0.0.0:3389           TIM-DESKTOP:0          LISTENING
 TermService

Find the processes that are listening on the same ports as the EWB Web Server and that will tell you which processes are interfering with the ability of the EWB Web Server to bind to the same ports.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, May 6 2021 7:47 PMPermanent Link

Paul Coshott

Avatar

>> Tim Young [Elevate Software] wrote:

>> Find the processes that are listening on the same ports as the EWB Web Server and that will tell you which
>> processes are interfering with the ability of the EWB Web Server to bind to the same ports.

Hi Tim,

Ports are set to:
Unsecured : 88
Secured : 560

I ran the command you suggested and let it finish. I searched the file and neither port was in use.
But I still have the same problem.

Cheers,
Paul
Sat, May 8 2021 5:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< Ports are set to:
Unsecured : 88
Secured : 560

I ran the command you suggested and let it finish. I searched the file and neither port was in use.
But I still have the same problem. >>

I'm not sure what else to tell you - something in your network stack on your machine is preventing the EWB Web Server from binding to the ports.

You could try using TCPView instead and see if that helps you find the problem:

https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 11 2021 12:03 AMPermanent Link

Paul Coshott

Avatar

Hi Tim,

Walter has been helping me with a few settings, and with his service starting ok, I decided to go right back to the default ini file and try starting the service with nothing but the server name, server description, domain, ip address, port and secure port set.

The service started. So I added 1 thing at a time, trying to start the service after each modification to the ini file. I got everything entered with the service still starting, until I got to the certificate entries.

Could you please look at the attached screen shot and fill in the exact values I should be using for the following:

Certificate Name=
Certificate Store Name=
Certificate Store Type=1

Thanks,
Paul



Attachments: mmc certificates.jpg
Wed, May 12 2021 6:56 AMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 5/11/2021 12:03 AM, Paul Coshott wrote:
> Could you please look at the attached screen shot and fill in the exact values I should be using for the following:
>
> Certificate Name=
> Certificate Store Name=
> Certificate Store Type=1
>

Certificate Name=rostermeon.pcapps.one
Certificate Store Name=
Certificate Store Type=1


Raul
Wed, May 12 2021 7:13 AMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 5/12/2021 6:56 AM, Raul wrote:
>
> Certificate Name=rostermeon.pcapps.one
> Certificate Store Name=
> Certificate Store Type=1
>

I have basically same setup and it works OK here.

I have a Lets Enrypt wildcard cert in computer certs

EWB 3 Web Server is configured to use that and starts OK

URL comes up OK and shows the file from EWB3 content folder

Raul







Attachments: 2021-05-12_7-09-51.jpg
Thu, May 13 2021 5:39 AMPermanent Link

Paul Coshott

Avatar

> Raul wrote:
>
> Certificate Name=rostermeon.pcapps.one
> Certificate Store Name=
> Certificate Store Type=1
>

Huge thanks to Richard, Walter and Raul. With this last bit from Raul, (the certificate values) correct and in place, the server service is now started. I tested the app and all running great. Browser reports the app as being secure.

Sometimes learning stuff can be frustrating, but with great support and the amazing people on this forum, everything is possible, eventually Smile I built full featured web apps with a couple of other Delphi web frameworks, and I can honestly say, neither was as good as EWB.

Thanks everyone for any past help.

Cheers,
Paul
Previous PagePage 2 of 2
Jump to Page:  1 2
Image