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.
Losing GUI interface on RPI 2
Moderator: Mattk
- rainman110
- Junior Boarder
- Posts: 35
- Joined: Wed Mar 31, 2010 2:19 am
- Location: Mount Rainier
Re: Losing GUI interface on RPI 2
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
#
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
#
- rainman110
- Junior Boarder
- Posts: 35
- Joined: Wed Mar 31, 2010 2:19 am
- Location: Mount Rainier
Re: Losing GUI interface on RPI 2
admin wrote:When you look at crontab via "crontab -l", don't you have this statement on the second line?
This checks for thttpd running every minute and restarts services if they are down.Code: Select all
*/1 * * * * ([ -n "`/bin/pidof thttpd`" ] && [ -n "`/bin/pidof thttpdbackup`" ]) || rcthttpd restart
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
#
- rainman110
- Junior Boarder
- Posts: 35
- Joined: Wed Mar 31, 2010 2:19 am
- Location: Mount Rainier
Re: Losing GUI interface on RPI 2
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.
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
Hi!
I have the same problem.
I try to connect with putty, but it wont work.
Am I doing right?
I have the same problem.
I try to connect with putty, but it wont work.
Am I doing right?
- Attachments
-
- putty.jpg (52.46 KiB) Viewed 6263 times
Re: Losing GUI interface on RPI 2
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.

Did you use SSH before or is it the very first time?
Standard SSH port is 22.
Re: Losing GUI interface on RPI 2
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.
I have not use SSH before.