When i try to start myDevices service i get error:
Jan 21 03:52:16 raspberrypi systemd[2480]: pam_exec(login:session): conversation failed
Jan 21 03:52:16 raspberrypi systemd[2480]: pam_unix(login:session): session opened for user root by (uid=0)
But if i start it like that: sudo myDevices -d
all wark and i can check at site any info about rpi.
There /AppSettings.ini:
Yes, the service should automatically start on boot. If you want to manually start and stop the service it does require root level permissions. I’m not sure why it would not work on boot, but if you run the installer script again that may repair anything that was not installed correctly the first time. Make sure you run the installer as root (sudo).
I try about 5 reinstall caynne from android and just in terminal, but anyway i have this problem. I too try install without delete and with delete script.
I can run with screen for 24/7, but i think it bad method. screen sudo myDevices
If you install from the terminal, do you see the Pi as online in your dashboard? You shouldn’t have to do anything fancy to get us running, at least not on a default Raspbian Jessie install.
What does your output from systemctl list-unit-files | grep enabled look like?
Ok, that looks correct, and if you run sudo service --status-all
I would expect it to show webiopi but not mydevices. That’s how it is on my test Pis and they are all connected to Cayenne OK.
I want to make sure I’m fully understanding the issue. Ignoring this service business for a moment, if you log into your account at Log in to Cayenne do you see the Pi in question as online. (i.e Black in the left sidebar and with a ‘last data packet’ time in the last minute or so?)
Thanks for the detailed info. Perhaps it could be some conflict with other running or installed software on the Pi? I can see items like samba/nginx/transmission there that aren’t default packages in a Jessie install. It may be a worthwhile troubleshooting step to disable some of these and see if the behavior for the myDevices service changes, or if you have a 2nd SD card, to see if you have better behavior with a fresh install of Jessie.
This isn’t to say that we shouldn’t play nicely with that other (very common) software, but it may help narrow down a conflict or an assumption we made in development that’s broken in the case of your particular system.