Could not connect to the Telldus Service

Moderator: Telldus

Post Reply
tonywright
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Could not connect to the Telldus Service

Post by tonywright »

Hi, due to an sd card failure I have had to reinstall my server that was running the telldus service. However now when I call tdtool from a php script it is failing to connect to the service.

I can run tdtool from the command line both as su and as the normal user so the service is running ok, however if I call it from my php page it takes a while to timeout and gives that error.

I have tried a few things like running the service as www-data (in the telstick config file). I have added www-data to the plugdev group and I have even added the tdtool application into the sudoers file so it will run as root but it still gives the error.
I am caaling it with "$output=shell_exec("sudo /usr/bin/tdtool $cmd $id");" ($cmd='--on' and $id=16)
I have also tried the various other ways of calling a command from php

It worked fine on my previous installation but that had been running for quite a while so the raspberry pi os has changed a bit since then.
It is running on a raspberry pi 3 running Stretch lite

Can anyone suggest something else to try?

Thanks in advance

Tony
Post Reply