Page 3 of 3
Re: Losing GUI interface on RPI 2
Posted: Sat Aug 22, 2015 1:32 pm
by admin
ok, next update will have this line added into crontab if not already there.
For the moment feel free to add it as first line to your crontab.
Editing should be done by "crontab -e". Please copy and paste the line as any typos might break something.
Re: Losing GUI interface on RPI 2
Posted: Sat Aug 22, 2015 2:44 pm
by rainman110
I don't find that line in crontab either:
root@meteohub-rpi-home:~# crontab -l
*/1 */1 * * * /bin/pidof histeval0 || /usr/bin/nice /home/meteohub/histeval0
*/1 * * * * /bin/cat /proc/uptime >/var/run/meteohub/alive
22,52 * * * * echo 'wdnow' >/dev/meteohub
13 */6 * * * /bin/pidof histeval2 || /usr/bin/nice /home/meteohub/histeval2
47 4 * * * /bin/pidof histeval3 || /usr/bin/nice /home/meteohub/histeval3
*/3 * * * * /bin/pidof wswinimport || /usr/bin/nice /home/meteohub/wswinimport 2>>/data/log/messages
17 */6 * * * rm /var/run/*.idx
18 */4 * * * /usr/bin/tail -n 1000 /var/log/messages >/var/log/messages.new; /bin/mv -f /var/log/messages.new /var/log/messages
26 6 * * * nice /srv/www/meteolog.cgi 0 0
#
Re: Losing GUI interface on RPI 2
Posted: Sun Aug 23, 2015 2:27 am
by rainman110
admin wrote:When you look at crontab via "crontab -l", don't you have this statement on the second line?
Code: Select all
*/1 * * * * ([ -n "`/bin/pidof thttpd`" ] && [ -n "`/bin/pidof thttpdbackup`" ]) || rcthttpd restart
This checks for thttpd running every minute and restarts services if they are down.
I added this line to crontab and am testing it now.
root@meteohub-rpi-home:~# crontab -l
*/1 * * * * ([ -n "`/bin/pidof thttpd`" ] && [ -n "`/bin/pidof thttpdbackup`" ]) || rcthttpd restart
*/1 */1 * * * /bin/pidof histeval0 || /usr/bin/nice /home/meteohub/histeval0
*/1 * * * * /bin/cat /proc/uptime >/var/run/meteohub/alive
22,52 * * * * echo 'wdnow' >/dev/meteohub
13 */6 * * * /bin/pidof histeval2 || /usr/bin/nice /home/meteohub/histeval2
47 4 * * * /bin/pidof histeval3 || /usr/bin/nice /home/meteohub/histeval3
*/3 * * * * /bin/pidof wswinimport || /usr/bin/nice /home/meteohub/wswinimport 2>>/data/log/messages
17 */6 * * * rm /var/run/*.idx
18 */4 * * * /usr/bin/tail -n 1000 /var/log/messages >/var/log/messages.new; /bin/mv -f /var/log/messages.new /var/log/messages
26 6 * * * nice /srv/www/meteolog.cgi 0 0
#
Re: Losing GUI interface on RPI 2
Posted: Sun Aug 23, 2015 9:32 pm
by rainman110
Reporting back on my test. I have two identical RPi2 meteohubs hosting different weather stations, both running 5.0i. I appended the rcthttpd restart line to the crontab of one, and left the other one alone. Rebooted both. A day later, the meteohub with the rcthttpd restart line appended to the crontab is still running fine, while the web interface quit on the other meteohub within two hours. So at this point I would have to say the new crontab line seems to have fixed the problem, although a longer test period will help confirm this. I appended the rcthttpd restart line to the second meteohub as well a few hours ago, and the web interface is still up.
Boris thanks for the code and the instructions. At this point I would say that modification would likely solve this RPi2 problem if you include it in the next update. I will post back again if something changes.
Re: Losing GUI interface on RPI 2
Posted: Thu Dec 24, 2015 10:38 pm
by Armond
Hi!
I have the same problem.
I try to connect with putty, but it wont work.
Am I doing right?
Re: Losing GUI interface on RPI 2
Posted: Fri Dec 25, 2015 10:26 am
by admin
putty and port 80 is not a good idea
Did you use SSH before or is it the very first time?
Standard SSH port is 22.
Re: Losing GUI interface on RPI 2
Posted: Fri Dec 25, 2015 11:27 am
by Armond
I just bought the RPi and just installed meteohub with my rfxtrx433e. I am tired of having my laptop on 24/7 with my weatherstation.
I have not use SSH before.