Page 1 of 3

Failed to start Web Service

Posted: Wed 08 Jun 2016, 22:07
by Vinceefr
Hi,
I finally took time after several months to install the SPC-WEB-GATEWAY.
Unfortunately I get the following error when starting the gateway on my raspberry:

License valid until 2038-01-01
Waiting for PANEL...
Connection established
spc-web-gateway: Failed to start Web Service

Could you please help ?
I have a phpmysql running on my Raspberry on Apache, could it be linked to this ?

Regards,
Vincent

Re: Failed to start Web Service

Posted: Thu 09 Jun 2016, 16:03
by gol
Probably you already have another instance of spc-web-gateway running or the configured port (default 8088) is already used by another process.

Re: Failed to start Web Service

Posted: Thu 15 Sep 2016, 10:02
by izzor
I have the same problem on a new installation of Ubuntu 16.04.
The gateway starts and waits for the panel and when the panel connects I get the message
spc-web-gateway: Failed to start Web Service

The application runs fine on an old Ubuntu 14.04 server.

Vincents and my problems might be related.

Regards,
Pekka

Re: Failed to start Web Service

Posted: Sat 25 Nov 2017, 20:22
by efesler
Hello,

I just installed sac-web-gateway on a new raspberry pi 3 (with raspbian jessie) and I got the following message when I try to start spa-web-gateway:

License valid until 2038-01-01
Waiting for PANEL...
Connection established
spc-web-gateway: Failed to start Web Service

spa-web-gateway version is : rp 1.2

No other service is running on port 8088.

Any idea of what could be wrong ?

Regards,

Eric

Re: Failed to start Web Service

Posted: Sat 25 Nov 2017, 20:37
by gol
Hi Eric,
Are you sure you have not missed to install the required packages openssl and libssl-dev according to the Installation Guide section 2.1 Installation Prerequisites.

//Goran

Re: Failed to start Web Service

Posted: Sat 25 Nov 2017, 21:08
by efesler
Hello Goran,

that was it.

Sorry, I pass through this point.

Thanks for the quick reply.

Regards,

//Eric

Re: Failed to start Web Service

Posted: Wed 09 May 2018, 13:50
by roryd
Hi,

I upgraded from Ubuntu 17.10 to 18.04, and I now have issues.

The SPC Web Gateway will only start if I disable SSL Authentication in config.xml. If SSL Authentication is set to "yes", I get this:

rory@openhab:/opt/spc-web-gateway$ ./spc-web-gateway -d
License valid until 2030-01-01
Waiting for PANEL...
Connection established
spc-web-gateway: Failed to start Web Service
rory@openhab:/opt/spc-web-gateway$

Also, node-spc-mqtt won't work, but I assume that's because SSL Authentication is now not working in the web gateway.

openssl and libssl-dev are both installed.

Is there any other logging done anywhere? (I found /var/log/spc-web-gateway.log but it's empty).

Any ideas?

Re: Failed to start Web Service

Posted: Wed 09 May 2018, 14:53
by gol
Hi Rory,
Which version of SPC Web Gateway do you have?
//Goran

Re: Failed to start Web Service

Posted: Wed 09 May 2018, 15:26
by roryd
Hi Goran,

It's version ubuntu_x86_64.1.2

Rory.

Re: Failed to start Web Service

Posted: Wed 09 May 2018, 15:35
by gol
Please try latest version 1.3 that I have sent to you.
//Goran