Page 1 of 3

Losing GUI interface on RPI 2

Posted: Tue Apr 07, 2015 6:00 am
by rainman110
I just switched one of my old NSLU2's to a new Rasperry Pi 2. Everything works great except an hour or two after boot, I lose the ability to connect to the RPI's GUI. The only way to get it back is to reboot it, which fortunately I am able to do via SSH. When I am unable to connect to the GUI, the RPI seems to be running normally otherwise as my weather uploads continue online, I am able to reach it via SSH, and it remains mounted on my network. I can also see it at its reserved DHCP address on my router. No problems connecting to anything else on my network. I've tried connecting from different PC's, from both LAN and WAN, it makes no difference. Once the GUI goes down, it will not come back on its own. I get a "cannot connect to server" error in my browser. I have never experienced this issue with my old NSLU2.

I have another NSLU2 running a different weather station that is running fine. Both the NSLU2 and the RPI are running Meteohub version 5.0i.

Any ideas?

Re: Losing GUI

Posted: Tue Apr 07, 2015 9:14 am
by wvdkuil
Did you try the emergency IP address 192.168.1.77 ?
From the manual:
Meteohub switches to backup IP address 192.168.1.77
. . .
If things go wrong, Meteohub should always be reachable at 192.168.1.77.
If your local net is not in the 192.168.1.xyz address range you have to set a fixed ip wihin that range on your laptopn. But it is worth the try , I think.
Success, Wim

Re: Losing GUI

Posted: Tue Apr 07, 2015 5:05 pm
by rainman110
Yes, thanks for the suggestion. I did try accessing the emergency IP exactly as described, with no success. I have also tried reinstalling the OS several times.

I am curious if anyone else using an RPI 2 is experiencing this issue? It would also help to hear back from others running an RPI 2 who are not experiencing this issue so I know if this a bug in the program, or something specific to my setup. The only other thing I can think to try is to build another micro SD card, although I am not seeing anything in the logs that I would interpret as a faulty media issue.

Re: Losing GUI interface on RPI 2

Posted: Wed Apr 08, 2015 12:42 am
by AlaskaWX
I'm running meteohub on a rpi 2 and have not have any problems with the web page being unavailable.

But, the next time that happens, ssh to the rpi as root and check to see if the web server is running:

Code: Select all

 ps auwxx | grep thttpd
You should expect to see output like this:

Code: Select all

root      3749  0.0  0.2   2628  2140 ?        S<s  Apr06   0:06 /usr/sbin/thttpd -C /etc/thttpd.conf
root      3751  0.0  0.1   2628  1768 ?        S<s  Apr06   0:05 /usr/sbin/thttpdbackup -C /etc/thttpd-backup.conf
root     16728  0.0  0.0   1988   456 pts/0    S+   14:35   0:00 grep thttpd
If you don't, try restarting the web server with:

Code: Select all

/usr/sbin/thttpd -C /etc/thttpd.conf
and see if it works. If you do see that it's running, kill it and restart as above.

If that does it is better than a reboot. LOL :evil:

Re: Losing GUI interface on RPI 2

Posted: Wed Apr 08, 2015 1:22 am
by rainman110
Thanks. I tried that command and got the following result:

root 28152 0.0 0.1 2632 1832 ? Ss 16:10 0:00 /usr/sbin/thttpd -C /etc/thttpd.conf
root 28533 0.0 0.0 1988 420 pts/0 S+ 16:17 0:00 grep thttpd

Does that look like the web server is running? I tried the restart command, but it didn't bring the GUI back up. What is the command to kill it?

Good to know that your RPI 2 is working fine, so it must be something with my setup.

Re: Losing GUI interface on RPI 2

Posted: Thu Apr 23, 2015 5:26 pm
by zunshiner
Hi.
Looks like I am facing the same problem.
Did you find a solution alredy?

My Raspberry can be pinged successfully and us constantly delivering data to my Website, but i cant connect to the Web Interface.

Cheers
Mathias

Re: Losing GUI interface on RPI 2

Posted: Thu Apr 23, 2015 6:36 pm
by admin
"rcthttpd stop" stops web server and "rcthttpd start" starts it again.

Re: Losing GUI interface on RPI 2

Posted: Thu Apr 23, 2015 7:02 pm
by rainman110
zunshiner wrote:Hi.
Looks like I am facing the same problem.
Did you find a solution alredy?

My Raspberry can be pinged successfully and us constantly delivering data to my Website, but i cant connect to the Web Interface.

Cheers
Mathias
Which model of the Raspberry Pi are you using?

I have not been able to resolve the issue. I can say I have ruled out my router, it is definitely something with my Raspberry Pi 2 environment that is causing the issue. I have experimented with many settings changes to no effect. A reboot is the only way I can access the web interface after an hour or two. I am still running one NSLU2 for another weather station with 5.0i, without the issue. My next step was to try a different SD card and or RPi/ but it sounds like that will probably not solve it if there are others like yourself experiencing the same issue.

Re: Losing GUI interface on RPI 2

Posted: Thu Apr 23, 2015 7:22 pm
by rainman110
admin wrote:"rcthttpd stop" stops web server and "rcthttpd start" starts it again.
Thank you, Boris. Just tried this. Stopping the web server and restarting it restored the GUI access for me, at least temporarily. Will see for how long. Much better than the reboot option which forces the weather data to recompute every time I have to do it.

Wish I could figure out what is causing this issue.

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 10:15 am
by zunshiner
I am using a Model 2, so same as you do.
I will check this weekend with the ""rcthttpd stop" and ""rcthttpd start".

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 5:39 pm
by admin
do you have any crash information about thttpd in "dmesg"?

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 6:09 pm
by rainman110
There are a couple mentions of thttpd, not sure what they mean:

Process:
PID TTY STAT TIME COMMAND
1 ? Ss 0:03 init [2]
2 ? S 0:00 [kthreadd]
3 ? S 0:05 [ksoftirqd/0]
5 ? S< 0:00 [kworker/0:0H]
7 ? S 0:39 [rcu_preempt]
8 ? S 0:00 [rcu_sched]
9 ? S 0:00 [rcu_bh]
10 ? S 0:00 [migration/0]
11 ? S 0:00 [migration/1]
12 ? S 0:00 [ksoftirqd/1]
14 ? S< 0:00 [kworker/1:0H]
15 ? S 0:00 [migration/2]
16 ? S 0:00 [ksoftirqd/2]
17 ? S 0:00 [kworker/2:0]
18 ? S< 0:00 [kworker/2:0H]
19 ? S 0:00 [migration/3]
20 ? S 0:00 [ksoftirqd/3]
21 ? S 0:00 [kworker/3:0]
22 ? S< 0:00 [kworker/3:0H]
23 ? S< 0:00 [khelper]
24 ? S 0:00 [kdevtmpfs]
25 ? S< 0:00 [netns]
26 ? S< 0:00 [perf]
27 ? S 0:00 [khungtaskd]
28 ? S< 0:00 [writeback]
29 ? S< 0:00 [crypto]
30 ? S< 0:00 [bioset]
31 ? S< 0:00 [kblockd]
32 ? S 0:03 [kworker/1:1]
33 ? S< 0:00 [rpciod]
34 ? S 0:12 [kswapd0]
35 ? S 0:00 [fsnotify_mark]
36 ? S< 0:00 [nfsiod]
42 ? S< 0:00 [kthrotld]
43 ? S 0:00 [kworker/0:1]
44 ? S< 0:00 [VCHIQ-0]
45 ? S< 0:00 [VCHIQr-0]
46 ? S< 0:00 [VCHIQs-0]
47 ? S< 0:00 [iscsi_eh]
48 ? S< 0:00 [dwc_otg]
49 ? S< 0:00 [DWC Notificatio]
51 ? S 0:00 [VCHIQka-0]
52 ? S< 0:00 [SMIO]
53 ? S< 0:00 [deferwq]
55 ? S 0:01 [kworker/3:1]
56 ? S 0:24 [mmcqd/0]
57 ? S 0:00 [kworker/1:2]
58 ? S 0:01 [kworker/2:1]
59 ? S 0:00 [jbd2/mmcblk0p2-]
60 ? S< 0:00 [ext4-rsv-conver]
175 ? Ss 0:01 udevd --daemon
1153 ? S 0:00 [jbd2/mmcblk0p4-]
1154 ? S< 0:00 [ext4-rsv-conver]
1475 ? S< 0:00 [ipv6_addrconf]
1506 ? Ss 0:00 /sbin/rpcbind -w
1537 ? Ss 0:00 /sbin/rpc.statd
1549 ? Ss 0:00 /usr/sbin/rpc.idmapd
1605 ? S 0:47 [kworker/0:2]
1786 ? Sl 0:27 /usr/sbin/rsyslogd -c5
1866 ? S< 0:00 /home/meteohub/loggerd /var/run/loggerd.pid
1905 ? S< 0:00 meteohub.cgi
1906 ? S< 0:00 /usr/sbin/thttpdbackup -C /etc/thttpd-backup.conf
1941 ? R< 0:00 ps ax
1956 ? S 14:43 /home/meteohub/meteonet -r
2033 ? Ss 0:03 /usr/sbin/gpm -m /dev/input/mice -t exps2
2035 ? Ss 0:12 /usr/sbin/cron
2124 ? Ss 0:02 /usr/sbin/nmbd -D
2126 ? Ss 0:00 /usr/bin/dbus-daemon --system
2205 ? Ss 0:00 /usr/sbin/sshd
2280 ? Ss 0:00 /usr/sbin/smbd -D
2342 ? Ss 0:00 startpar -f -- samba
2347 ? S 0:00 /usr/sbin/smbd -D
2433 ? S 0:00 /home/meteohub/meteoschedule /dev/meteohub
2467 ? Ss 0:00 startpar -f -- rc.local
2513 ? Ss 0:06 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 101:103
2564 ? SLs 0:13 /usr/sbin/watchdog
2582 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
2583 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
2584 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
2585 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
2586 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
2587 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
2589 ? S 0:01 udevd --daemon
2590 ? S 0:00 udevd --daemon
2762 ? S< 3:44 /home/meteohub/loggerd /var/run/loggerd.pid
10640 ? S<s 0:01 /usr/sbin/thttpd -C /etc/thttpd.conf
10642 ? S<s 0:02 /usr/sbin/thttpdbackup -C /etc/thttpd-backup.conf
16667 ? S 0:05 /usr/sbin/smbd -D
28644 ? S 0:00 [kworker/u8:2]
31905 ? S 0:00 [kworker/u8:1]


After running a new RPi 2 for a couple days in demo mode on 5.0f with no problems, I ported my last NSLU2 over last night and upgraded to 5.0i. All went well, but this morning I was unable to access the web interface. I ran the stop and start commands and it was restored.

So I am now running two independent RPi 2's with the identical problem at different locations, on different networks.

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 10:23 pm
by zunshiner
Can I Connect Form My Windows Laptop via putty to my Raspberry?
I thought user and pw are both meteohub.
But all I get is "Access denied".

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 10:27 pm
by rainman110
zunshiner wrote:Can I Connect Form My Windows Laptop via putty to my Raspberry?
I thought user and pw are both meteohub.
But all I get is "Access denied".
User is root, pw is meteohub. That should work.

Re: Losing GUI interface on RPI 2

Posted: Fri Apr 24, 2015 11:20 pm
by zunshiner
rainman110 wrote:User is root, pw is meteohub. That should work.
That did work. Thank you.
Tried the rcthttpd stop and start.
Now I can access the web interface.
Will update as soon as this changes again.