OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › OpenSprinkler process dying
- This topic has 4 replies, 3 voices, and was last updated 9 years, 8 months ago by mnmsrt8.
-
AuthorPosts
-
April 14, 2015 at 9:33 am #36675
mnmsrt8ParticipantHey all.
This is a brand new build that I am working on before spring hits. I recently installed the unit and originally had the older firmware on their. Yesterday, I upgraded to the unified firmware and am experiencing a strange issue.
The OpenSprinkler process just flat out dies on me. Yesterday, after the update, I was walking around my yard making sure that all the valves opened and closed as they should (which they did). I then played with some of the programming and labeling of the zones. Today, I was going to go in there and try to fix a different issue (some silly routing issue I think). When I went to log in, I was getting an error on the display. I log into the BBB to do some diagnostics
root@arm:/home/ubuntu# ps aux | grep -i open
root 6057 0.0 0.1 3296 696 pts/1 S+ 09:28 0:00 grep –color=auto -i open
root@arm:/home/ubuntu# cat /var/run/OpenSprinkler.pid
3267
root@arm:/home/ubuntu# ps aux | grep 3267
root 6126 0.0 0.1 3296 688 pts/1 S+ 09:30 0:00 grep –color=auto 3267
root@arm:/home/ubuntu# /etc/init.d/OpenSprinkler.sh status
* OpenSprinkler is not running
root@arm:/home/ubuntu# ls -lh /var/run/OpenSprinkler.pid
-rw-r–r– 1 root root 5 Apr 13 17:30 /var/run/OpenSprinkler.pid
root@arm:/home/ubuntu# /etc/init.d/OpenSprinkler.sh start
root@arm:/home/ubuntu# cat /var/run/OpenSprinkler.pid
7297
root@arm:/home/ubuntu# /etc/init.d/OpenSprinkler.sh status
* OpenSprinkler is running
We can see that the process was started yesterday at 5:30cst, and is not running. The PID file still exists, so it had to have died unexpectedly. I cna then restart it and it starts as it should and I can log in.
If there are more commands/logs I can look at please let me know.
Other than that, and ideas?
April 15, 2015 at 10:04 pm #36737
RayKeymasterSorry to hear that. The unified firmware hasn’t been thoroughly tested on OSBo, and I will try to see if we can reproduce the issue. Just to make sure, is your code up to date (i.e. have you performed git pull to grab the latest version)?
April 16, 2015 at 7:10 am #36755
mnmsrt8ParticipantI have. I did the install just two days ago.
As an update it seems that it has been running fine for a couple of days, which is totally okay with me. I wish I knew what cause that a few times, but as of right now it has been up and stable.
Different issue though that I may start a new thread on. If I use the OpenSprinkler App on my iPhone and manually start a zone. Then close the app (double tap home and swipe the app away) the zone that I started will not shut off. If I go back into the app after the time has expired for the zone, the zone will shut down immediately.
Ray, if there is any testing, or code or anything you wnat to have me try, let me know. I would be more than happy to help.
April 16, 2015 at 7:57 am #36757
SamerKeymasterRay identified the bug causing this yesterday night and if you update your copy the issue should be gone.
This was due to a change that modified how the non blocking socket was established.
Let us know if the update fixes it. Thanks.
May 1, 2015 at 8:07 am #37284
mnmsrt8ParticipantTHe OS processes has stayed running, but I have encountered another issue. I will start a new thread.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › OpenSprinkler process dying