2. What class/size SD card? (ex. class 10 16gb) 16gb
3. What Model Pi? (A+, A, B+, B, Pi2) Pi2
4. Please describe the bug / issue. Attaching any relevant screenshots would be very helpful! Thanks in advance.
I have a Raspberry Pi 2 running Jessie . I had installed cayenne to access it remotely using my iPhone. I had also setup a trigger to send me an email if the system was offline. I have since uninstalled cayenne myDevices and deleted the trigger but I am now receiving an email every minute stating:
āmyDevices is running.
webiopi is running.ā
the subject is āCron root@raspberrypi /etc/myDevices/crontab.shā
How can I stop these email from coming and flooding my inbox?
I donāt have a pi with Cayenne on it right here but you can try ācrontab -eā to see if you have anything in crontab. Just wipe out anything Cayenne related if thereās anything in there.
To āUninstallā i used the option on cayenne.mydevices.com. I donāt remember the exact wording but when you select the properties for a device it says something like āremove from device, this option can not be undoneā.
running the above commands changed the email, now the email says:
ā/bin/sh: 1: \etc\myDevices\crontab.shā not found"
so it seems to have cleaned up the files but is still generating the emails.
I checked with services --status-all and the myDevices service is no longer listed.
I have changed to configuration to the /etc/ssmtp/ssmtp.conf by comenting out the āmailhubā as a temporary fix so that it stops sending the emails, but I need it to stop trying to send them.
No, if the pi is off the emails do not come. I did find the problem though. I had checked with crontab -e and made sure there was nothing there related to myDevices or the issue and there was not. Today I found out that crontab is user specific. So I ran sudo crontab -e and found * / * * * * * /etc/myDevices/crontab.sh
I removed the line and saved the setting, re-ediable the email mailhub and I am no longer getting the alerts.
Thanks for all the help.
Yes, the issue was resolved. It seem the uninstall did not remove the task that it had created in the rootās crontab. So when I checked with crontab -e it was not shown, but checking with sudo crontab -e showed the task and I was able to remove it.
I have an almost identical problem, except I started getting an email every minute after I first installed Cayenne (instead of after uninstall). Even though this bug is set as āresolved,ā the subject is exactly the issue Iām having. If I should create a new bug/question thread, Iām happy to do so.
The email subject is: āCron root@raspberrypi /etc/myDevices/crontab.shā
and the content of each email is:
myDevices is running.
webiopi is running.
I restarted my raspberry, no change. In order to stop the emails (other than a possible New Yearās gift), I have changed the crontab from:
/etc/myDevices/crontab.sh
to:
1 1 * /etc/myDevices/crontab.sh
The emails have stopped, but Iām sure that Cayenne must need/expect the crontab.sh to run every minute. Because Iām new to Cayenne, I donāt know what might not be working properly now. Iāll leave it this way until I get some feedback about what I should be doing next.
As a semi-newbie, Iām not sure exactly how to find out what Iām running. The Cayenne web page info says āOS: raspbian 7 (debian) Hardware: Model Bā but ssh login message says āLinux raspberrypi 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux.ā
I didnāt have an opportunity to schedule an event or do anything else. I installed Cayenne on my RPi, and the emails immediately started coming in (I received the āmyDevices Cayenne - Install Completeā email at 9:02pm and received my first cron email at 9:02pm as well, then every minute thereafter until I could change my crontab). I donāt know if it matters, but I have installed a few other packages on RPi (before installing Cayenne) that I use for other projects, including Apache, ssmtp, ouimeaux and node.js.