Page 2 of 3

Re: Failed to start Web Service

Posted: Wed 09 May 2018, 16:05
by roryd
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.

Re: Failed to start Web Service

Posted: Tue 15 May 2018, 15:05
by roryd
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.

Re: Failed to start Web Service

Posted: Tue 15 May 2018, 16:43
by gol
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.

Re: Failed to start Web Service

Posted: Tue 15 May 2018, 17:12
by roryd
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.

Re: Failed to start Web Service

Posted: Tue 15 May 2018, 19:59
by gol
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

Re: Failed to start Web Service

Posted: Mon 21 May 2018, 05:56
by gol
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

Re: Failed to start Web Service

Posted: Mon 21 May 2018, 14:13
by roryd
Thanks Goran,

All back up now :-)

Rory.

Re: Failed to start Web Service

Posted: Sun 19 Aug 2018, 10:17
by mtak
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

Re: Failed to start Web Service

Posted: Sun 19 Aug 2018, 14:22
by gol
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

Re: Failed to start Web Service

Posted: Sun 19 Aug 2018, 16:35
by mtak
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