SharkRF IP Connector Protocol Server

DO3DL
Posts: 7
Joined: Sat Oct 29, 2016 10:40 am

SharkRF IP Connector Protocol Server

Post by DO3DL »

Hi,
i have installed "SharkRF IP Connector Protocol Server" on raspberry pi zero w.
The server works great, but the web interface is not working. What can I do?
See the picture below

DO3DL / Markus
Attachments
Dashboard.jpg
User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5580
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol Server

Post by HA2NON »

Do you have the webserver PHP module installed and enabled?
Norbert Varga, HA2NON
SharkRF Team
DO3DL
Posts: 7
Joined: Sat Oct 29, 2016 10:40 am

Re: SharkRF IP Connector Protocol Server

Post by DO3DL »

Hello,
yes, i have. Here is a screenshot
Attachments
2019-07-30 10_25_59-phpinfo().jpg
User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5580
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol Server

Post by HA2NON »

There's a config variable called "api-socket-file", which is set to "/tmp/srf-ip-conn-srv.socket" by default. Verify that this socket file is created after the server has started, and that the web server user has the required permissions to read and write the file. Also check the srf-ip-conn server's log for any errors.
Norbert Varga, HA2NON
SharkRF Team
DO3DL
Posts: 7
Joined: Sat Oct 29, 2016 10:40 am

Re: SharkRF IP Connector Protocol Server

Post by DO3DL »

Hm,
where can I find the srf-ip-conn server`s log?

Here is the apache2 log:
[Tue Jul 30 10:23:00.262158 2019] [:error] [pid 623] [client 192.168.17.231:59955] PHP Warning: stream_socket_client(): unable to connect to unix:///tmp/srf-ip-conn-srv.socket (No such file or directory) in /var/www/html/api.php on line 11, referer: http://192.168.17.173/
The file exists

and here the Server start:
pi@raspberrypi:/openspot# srf-ip-conn-srv: server-sock: trying to bind to 0.0.0.0:65100
srf-ip-conn-srv: server-sock: bound
srf-ip-conn-srv: main: starting loop
srf-ip-conn-srv: client: no connected clients
srf-ip-conn-srv: packet: client 2624411 192.168.17.176:42210: new login
srf-ip-conn-srv: packet: client 2624411 192.168.17.176:42210: logged in
User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5580
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol Server

Post by HA2NON »

The server logs to syslog by default. You can also turn off forking to the background with the -f command line switch and then it will log to the currently used console.
Norbert Varga, HA2NON
SharkRF Team
DO3DL
Posts: 7
Joined: Sat Oct 29, 2016 10:40 am

Re: SharkRF IP Connector Protocol Server

Post by DO3DL »

I have reinstalled the image on the raspberry (Buster).
Then I installed php7.1.
"info.php" = ok
But the same problem as described above. Maybe another user can install it?
I do not know what to try next...
User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5580
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol Server

Post by HA2NON »

There's a config variable called "api-socket-file", which is set to "/tmp/srf-ip-conn-srv.socket" by default. Verify that this socket file is created after the server has started, and that the web server user has the required permissions to read and write the file.
Norbert Varga, HA2NON
SharkRF Team
DO3DL
Posts: 7
Joined: Sat Oct 29, 2016 10:40 am

Re: SharkRF IP Connector Protocol Server

Post by DO3DL »

Yes, permissions ok and the socket file is created.
What is "Dockerfile"? Do we use it?
Dockerfile:

Code: Select all

FROM alpine

RUN apk add --update --no-cache php5 php5-json

COPY . /srf-ip-conn-srv/dashboard
COPY config-example.inc.php /srf-ip-conn-srv/dashboard/config.inc.php

EXPOSE 80

ENTRYPOINT ["/usr/bin/php5", "-S", "0.0.0.0:80", "-t", "/srf-ip-conn-srv/dashboard"]

I have php7.1.....
User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5580
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Protocol Server

Post by HA2NON »

The Docker file is used for creating a Docker container which has the server installed in it.
Norbert Varga, HA2NON
SharkRF Team
Post Reply