supla server 2.0 on raspberry arduino device disconnected

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

Post

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
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 19400
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

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

Post

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

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

Post

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

Post

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

Post

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

Post

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

Post

Image
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 19400
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

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: 19400
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

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

Return to “Help”