RPI image guide

User avatar
pzygmunt
Posts: 19465
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Server address is this same as IP address of raspberry.
DrDice
Posts: 23
Joined: Mon Jul 04, 2016 7:37 am

Post

RPI server is up and running (hopefully)

I can't login from iOS on the server, so I have started the server with debug and get the following constant in the terminal:

ERR[1468964306.344615] error:14076102:SSL routines:SSL23_GET_CLIENT_HELLO:unsupported protocol
alv
Posts: 74
Joined: Sat Jul 09, 2016 11:36 am

Post

You need to use libraries with sslv2 support. You can find them in supla raspbian image in directory /usr/lib/supla-server or compile yourself.
DrDice
Posts: 23
Joined: Mon Jul 04, 2016 7:37 am

Post

alv wrote:You need to use libraries with sslv2 support. You can find them in supla raspbian image in directory /usr/lib/supla-server or compile yourself.
mabye a stupid question, but how to do that? :-)
alv
Posts: 74
Joined: Sat Jul 09, 2016 11:36 am

Post

Do you use this image 2016-07-07-supla-server-raspbian-jessie.img ?
Check if you have a directory /usr/lib/supla-server

root@rpi04:~# ls -al /usr/lib/supla-server/
total 4152
drwxr-xr-x 2 root root 4096 Jul 17 19:07 .
drwxr-xr-x 49 root root 4096 Jul 18 10:42 ..
-rw-r--r-- 1 root root 1753172 Jul 17 19:05 libcrypto.so
-rw-r--r-- 1 root root 1753172 Jul 17 19:05 libcrypto.so.1.0.0
-rw-r--r-- 1 root root 363444 Jul 17 19:05 libssl.so
-rw-r--r-- 1 root root 363444 Jul 17 19:05 libssl.so.1.0.0
DrDice
Posts: 23
Joined: Mon Jul 04, 2016 7:37 am

Post

alv wrote:Do you use this image 2016-07-07-supla-server-raspbian-jessie.img ?
Check if you have a directory /usr/lib/supla-server

root@rpi04:~# ls -al /usr/lib/supla-server/
total 4152
drwxr-xr-x 2 root root 4096 Jul 17 19:07 .
drwxr-xr-x 49 root root 4096 Jul 18 10:42 ..
-rw-r--r-- 1 root root 1753172 Jul 17 19:05 libcrypto.so
-rw-r--r-- 1 root root 1753172 Jul 17 19:05 libcrypto.so.1.0.0
-rw-r--r-- 1 root root 363444 Jul 17 19:05 libssl.so
-rw-r--r-- 1 root root 363444 Jul 17 19:05 libssl.so.1.0.0
I'm using the latest image from the website

Here is my printout

pi@supla:~$ ls -al /usr/lib/supla-server
total 2080
drwxr-xr-x 2 root root 4096 Jul 7 15:15 .
drwxr-xr-x 48 root root 4096 Jul 19 21:53 ..
lrwxrwxrwx 1 root root 18 Jul 7 15:15 libcrypto.so -> libcrypto.so.1.0.0
-rw-r--r-- 1 root root 1753172 Jul 7 15:14 libcrypto.so.1.0.0
lrwxrwxrwx 1 root root 15 Jul 7 15:15 libssl.so -> libssl.so.1.0.0
-rw-r--r-- 1 root root 363444 Jul 7 15:14 libssl.so.1.0.0pi@supla:~$
alv
Posts: 74
Joined: Sat Jul 09, 2016 11:36 am

Post

Its fine. If you want to start app in debug mode, you need to export library path first:
export LD_LIBRARY_PATH=/usr/lib/supla-server
then /usr/sbin/supla-server -D

or make script eg. /usr/local/sbin/supla-server_debug.sh
#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib/supla-server
/usr/sbin/supla-server -D
DrDice
Posts: 23
Joined: Mon Jul 04, 2016 7:37 am

Post

alv wrote:Its fine. If you want to start app in debug mode, you need to export library path first:
export LD_LIBRARY_PATH=/usr/lib/supla-server
then /usr/sbin/supla-server -D

or make script eg. /usr/local/sbin/supla-server_debug.sh
#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib/supla-server
/usr/sbin/supla-server -D
Still the same :-/

And I cant connect from iPhone. I have tried both IP, hostname, etc but the Phone keep saying "connecting".
alv
Posts: 74
Joined: Sat Jul 09, 2016 11:36 am

Post

But problem with unsupported protocol has resolved?
Review how you are connecting. If you connect from behind NAT to your public address you should forward port 2015 and 2016 TCP.
DrDice
Posts: 23
Joined: Mon Jul 04, 2016 7:37 am

Post

alv wrote:But problem with unsupported protocol has resolved?
Review how you are connecting. If you connect from behind NAT to your public address you should forward port 2015 and 2016 TCP.
I still got the problem with unsupported protocol :-(

I have tried to access the local IP with no success. I have also tried to setup DMZ to the RaspberryPI and access it remotely, still without success. The Web Interface works like a charm, but the iOS app won't connect :-(

printout of my last_state.txt says:

can't connect to 127.0.0.1

I have tried to change it to the correct IP with same error

Return to “Help”