|
Post by Powderjockey on Sept 10, 2019 17:23:22 GMT -8
I seem to have a problem where the SkyWeather seems to just stop and will not restart. I have the
autoenable_WLAN_Detection = True set I the conflocal.
When i go into VNC and open up the SkyWeather node tonight, the terminal window had closed and of course the script was not running. Simple process to open up the terminal and hit a couple of keys and off it goes again, but if I don't go into the desktop of the node, I would never know it wasn't working, since there is no trigger to send off an email to let me know it is not working.
Any thoughts? Any logs to look at?
Scott
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Sept 10, 2019 20:38:21 GMT -8
can you do a sudo reboot and it works every time - does the reboot completely, restarts, and SkyWeather starts up again...
I had similar issues for weeks - and I took it all apart and plugged it into a hdmi port, and watched it - did reboots - watched it until it failed... The issue for me was not the start up but the shutdown, and it did not recover..
Absolutely frustrating - I eventually resolved it - see my threads on reliability - completely changed how it starts up - and has been working well for a month...
I think the only way to resolve your issue is to monitor it - and your going to need to watch it via hdmi on a monitor to see what the cause is...
|
|
|
Post by Powderjockey on Sept 11, 2019 17:47:21 GMT -8
can you do a sudo reboot and it works every time - does the reboot completely, restarts, and SkyWeather starts up again... I had similar issues for weeks - and I took it all apart and plugged it into a hdmi port, and watched it - did reboots - watched it until it failed... The issue for me was not the start up but the shutdown, and it did not recover.. Absolutely frustrating - I eventually resolved it - see my threads on reliability - completely changed how it starts up - and has been working well for a month... I think the only way to resolve your issue is to monitor it - and your going to need to watch it via hdmi on a monitor to see what the cause is... I removed the auto-restart of SkyWeather due to fact I could not reconnect thru VNC to see how if things were up and running or check on anything else. So I removed the auto-starting. of the software. When I do a sudo restart, it boots clean and comes to the desktop. Starting the SkyWeather script is not bad, couple of seconds, But what I want to know is why does it just stop. I leave the terminal window open/minimized and when I find that the software has stop and the PWS is not running, the terminal window has closed, which to me means, the system has rebooted. I'll give you threads a read. I have seen them in the forums.
|
|
|
Post by SDL on Sept 12, 2019 10:57:37 GMT -8
Impactoz is correct. He has a problem that we have not been able to duplicate, but using a different way of starting the software seemed to fix it.
The odd part of this is that it is the shutdown that hangs and not the startup. A zombie process perhaps? Definitely related to python and sky weather but unknown what is caused the problem is still unknown.
BP
|
|
|
Post by Powderjockey on Sept 13, 2019 17:48:04 GMT -8
I return home from work this evening and try to access SkyWeather thru VNC and all I get is a VNC screen that says it timed out trying to access the computer. I check on Blynk and everything is a flat line. Why it decides to restart or just die is a mystery. I had the autostart placed into /etc/rc.local. I pull the power on the box and restart the Pi. Once up, SkyWeather has started. I decided to follow impactoz and create a cron job by following the tutorial at www.dexterindustries.com/howto/auto-run-python-programs-on-the-raspberry-pi/. One wouldn't need to worry if it was a shutdown problem or a startup problem if the system never crashed. I'll monitor this over then next week or so. It is getting to that time of year when I really don't want to be running in and out of the house.
|
|
|
Post by Powderjockey on Sept 14, 2019 8:32:45 GMT -8
This morning, same thing. system is not on-line. Startup was at 2019-09-13 @ 18:29:07 with software version 047. The computer has not rebooted, as I can see by going in via VNC and the open windows are as they were last night.
Any thoughts?
|
|
|
Post by SDL on Sept 14, 2019 17:07:50 GMT -8
When it has not been on line next, do the following:
ps xaf | grep python and post the results. I want to see if the process is completely dead or hanging on something.
BP
|
|
|
Post by Powderjockey on Sept 15, 2019 9:15:28 GMT -8
Does rebooting loose any of the requested data? This morning, the system was not accessible from VNC, meaning the system will need the power pulled.
|
|
|
Post by SDL on Sept 15, 2019 15:20:41 GMT -8
Yes, rebooting removes that data. When it hangs, can you ping it?
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Sept 16, 2019 0:01:39 GMT -8
Or can you SSH to it ? if you set it up to allow this... I have had once or twice not able to get to the device via VNC, but it was a VNC issue - and I could get in via SSH...
|
|
|
Post by Powderjockey on Sept 16, 2019 6:47:05 GMT -8
Yes, I can use SSH to get to it. Blonde moment and never thought of that for a solution. I did do a couple of power pulls and connected a 5" screen to it. Got back into, but then had a problem with the mysql/phpmyadmin (the other thread) and now having trouble getting the script up and running. Bascally, the line import MYSQLDB as mdb in the script pclogging.py is holdinig me up.
|
|
|
Post by SDL on Sept 18, 2019 15:30:38 GMT -8
Boy, VNC is flakey sometimes. One of the things to watch for is the use of the VNC Tokens. You can get duplicates if you are using copied SD Cards for example.
If one of you asks me later today, I'll send you a link to how to fix this. I don't have it here.
BP
|
|
|
Post by Powderjockey on Sept 18, 2019 17:52:36 GMT -8
So tonight I go to check the status and the Blynk app is totally nothing/flat-lined. VNC won't open the Pi, terminal from my laptop will not ssh into the Pi.
Now I can ping the IP address, just no access. So I'm not sure how to get you the ps xaf | grep python command.
|
|
|
Post by SDL on Sept 19, 2019 11:43:18 GMT -8
Hmm. This is interesting. I think the Pi is going into a state that won't let you log in, but is still running. I had one of our test systems do this a few months ago.
If you are using Blynk, are you still getting data? Is data still going into WeatherSTEM?
BP
|
|
|
Post by Powderjockey on Sept 19, 2019 15:39:51 GMT -8
Hmm. This is interesting. I think the Pi is going into a state that won't let you log in, but is still running. I had one of our test systems do this a few months ago. If you are using Blynk, are you still getting data? Is data still going into WeatherSTEM? BP No nothing being report thru Blynk, WeatherStem or SkyWeather.
|
|