Failed to start Web Service

SPC Web Gateway support issues
roryd
Posts: 10
Joined: Tue 21 Jun 2016, 16:05

Re: Failed to start Web Service

Post by roryd » Wed 09 May 2018, 16:05

Hi Goran,

Thanks for that.

Same problem I'm afraid - works with SSL Authentication disabled, but doesn't work if I enable it.

Should there be logging happening to /var/log/spc-web-gateway.log?

Rory.

roryd
Posts: 10
Joined: Tue 21 Jun 2016, 16:05

Re: Failed to start Web Service

Post by roryd » Tue 15 May 2018, 15:05

Hi Goran,

I recently upgraded the SPC unit to firmware 3.8.5 - do you know if that would be why I can't get the web gateway working using ssl encryption?

Can you also tell me how much the SPC Gateway Box is, and whether it will work with firmware 3.8.5? Is it still being developed/supported?

Kind regards,

Rory.

gol
Webbplatsadministratör
Posts: 85
Joined: Sun 01 Jun 2014, 19:38

Re: Failed to start Web Service

Post by gol » Tue 15 May 2018, 16:43

Hi Rory,
Probably the SSL issue depends on your Ubuntu upgrade that has installed new versions of libssl and libcrypto that is incompatible with spc gateway. I will investigate this further as soon I have some time.
The SPC Gateway Box is still available and the price is 200 Euro incl VAT excl freight. Another option is to use the SPC Bridge that provides a REST/Websockets API based on Vanderbilt FlexC protocol. Same price as the Gateway Box.

roryd
Posts: 10
Joined: Tue 21 Jun 2016, 16:05

Re: Failed to start Web Service

Post by roryd » Tue 15 May 2018, 17:12

Thanks Goran,

I'm using Openhab, and your node-spc-mqtt.js to pick up changes from the SPC unit - is that possible on the Bridge, or is there a different way to do it?

Rory.

gol
Webbplatsadministratör
Posts: 85
Joined: Sun 01 Jun 2014, 19:38

Re: Failed to start Web Service

Post by gol » Tue 15 May 2018, 19:59

The Bridge (and the Gateway Box) provides only the REST / Websockets API service, so in your case you need to do the conversion to MQTT on another computer, maybe you can use the same hardware you run Openhab on for that.
Goran

gol
Webbplatsadministratör
Posts: 85
Joined: Sun 01 Jun 2014, 19:38

Re: Failed to start Web Service

Post by gol » Mon 21 May 2018, 05:56

roryd wrote:Hi Goran,

Thanks for that.

Same problem I'm afraid - works with SSL Authentication disabled, but doesn't work if I enable it.

Should there be logging happening to /var/log/spc-web-gateway.log?

Rory.
Hi Rory,
I have now tested SPC Web Gateway on Ubuntu 18.04.
To be able to run SPC Web Gateway on Ubuntu 18.04 you need to install the 1.0 version of libssl-dev. You do that with:

Code: Select all

sudo apt-get install libssl1.0-dev
//Goran

roryd
Posts: 10
Joined: Tue 21 Jun 2016, 16:05

Re: Failed to start Web Service

Post by roryd » Mon 21 May 2018, 14:13

Thanks Goran,

All back up now :-)

Rory.

mtak
Posts: 6
Joined: Thu 01 Sep 2016, 17:10

Re: Failed to start Web Service

Post by mtak » Sun 19 Aug 2018, 10:17

Hi Goran,

Just updated to Ubuntu 18.04.1 and got this problem as well,

Reverted to to libssl1.0-dev and the problem was gone.
(Running version 1.3)

Problem now is when i start gateway the result is
/spc-web-gateway-1.3$ ./spc-web-gateway -d
License valid until 2038-01-01
Waiting for PANEL...
Connection established
Waiting for SPC-message
Connection lost - Try to reestablish connection
Waiting for SPC-message
Connection lost - Try to reestablish connection
Waiting for SPC-message
Connection lost - Try to reestablish connection

Before the upgrade everything was working and i haven't done any changes to my SPC alarm.
My config file is still the same as before.

Any idées on where i can start looking?

Best Regards
Mattias

gol
Webbplatsadministratör
Posts: 85
Joined: Sun 01 Jun 2014, 19:38

Re: Failed to start Web Service

Post by gol » Sun 19 Aug 2018, 14:22

Hi Mattias,
Probably you have a discrepancy between the Gateway and SPC settings. If you mail me your /opt/spc-web-gateway/config.xml and a screenshot of your SPC EDP settings, I can look at it. And you are sure the EDP encryption key is correct?
//Goran

mtak
Posts: 6
Joined: Thu 01 Sep 2016, 17:10

Re: Failed to start Web Service

Post by mtak » Sun 19 Aug 2018, 16:35

Hi Goran,
The problem was that i had two directories containing the gateway.
When I tried to debug the "libssl" i used my second instance of the gateway that contained an invalid EDP key.
Thanks for pointing me to the right direction.
/Mattias

Post Reply