supla server 2.0 on raspberry arduino device disconnected

emilius3m
Posts: 8
Joined: Wed Apr 19, 2017 9:49 pm

I have upgraded the rpi image with php 7 and rebuild supla server. all is ok after 10 hours of "lectures" (more problem with the openssl library).
At the moment the server is running and work.
The only problem is the status of the device on the "I / O Devices": I connected an arduino and with the app for Android i can control the connected device, but on the administration page it shows the status is always disconnected. please watch the attachment
Attachments
disconnected.png
disconnected.png (44.82 KiB) Viewed 5972 times
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Hmmm. Check app logs.
emilius3m
Posts: 8
Joined: Wed Apr 19, 2017 9:49 pm

nothing. /var/www/html/var/logs/prod.log is empty.

/var/www/html/var/sessions is empty. very strange.
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

/var/www/cloud.supla.org/var/logs
emilius3m
Posts: 8
Joined: Wed Apr 19, 2017 9:49 pm

My document root for apache is /var/www/html and var/log contain prod.log but is empty
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

netstat -an |grep supla-server-ctrl.sock
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

ls -l /tmp/supla-server-ctrl.sock
emilius3m
Posts: 8
Joined: Wed Apr 19, 2017 9:49 pm

Image
Attachments
Immagine.png
Immagine.png (35.46 KiB) Viewed 5882 times
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

vi /etc/systemd/system/multi-user.target.wants/apache2.service

replace
PrivateTmp=true
to
PrivateTmp=false

systemctl daemon-reload
/etc/init.d/apache2 restart
User avatar
pzygmunt
Posts: 18285
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

pzygmunt wrote: Tue May 09, 2017 4:52 pm vi /etc/systemd/system/multi-user.target.wants/apache2.service

replace
PrivateTmp=true
with
PrivateTmp=false

systemctl daemon-reload
/etc/init.d/apache2 restart
Post Reply

Return to “Help”