RPI image guide
-
- Posts: 19465
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
Server address is this same as IP address of raspberry.
-
- Posts: 23
- Joined: Mon Jul 04, 2016 7:37 am
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
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
-
- Posts: 74
- Joined: Sat Jul 09, 2016 11:36 am
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.
-
- Posts: 23
- Joined: Mon Jul 04, 2016 7:37 am
mabye a stupid question, but how to do that?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.

-
- Posts: 74
- Joined: Sat Jul 09, 2016 11:36 am
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
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
-
- Posts: 23
- Joined: Mon Jul 04, 2016 7:37 am
I'm using the latest image from the websitealv 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
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:~$
-
- Posts: 74
- Joined: Sat Jul 09, 2016 11:36 am
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
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
-
- Posts: 23
- Joined: Mon Jul 04, 2016 7:37 am
Still the same :-/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
And I cant connect from iPhone. I have tried both IP, hostname, etc but the Phone keep saying "connecting".
-
- Posts: 74
- Joined: Sat Jul 09, 2016 11:36 am
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.
Review how you are connecting. If you connect from behind NAT to your public address you should forward port 2015 and 2016 TCP.
-
- Posts: 23
- Joined: Mon Jul 04, 2016 7:37 am
I still got the problem with unsupported protocolalv 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 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