|
Post by pagerman on Jun 10, 2021 3:30:19 GMT -8
I will wait for the card from Dow before posting any more failures. As far as the Pi network firmware goes, the "old" Pi4B from this project has been running on the same exact network for approx 2 months straight uploading audio from 3 different USB sound cards to the web as a stream 24/7. No reboots, no crashes, no disconnects. VNC has also been working on that Pi for the same amount of time. It's connected via Ethernet. Here is one of those feeds: www.broadcastify.com/listen/feed/34452I have a Pi3 that has been running a live weather data stream from my WeatherFlow station for about a YEAR with no reboots or crashes. It's connected via my Google Mesh. It shows the data from this weather station: tempestwx.com/station/2277/gridThe SDL Pi crashed again last night at 11:27PM. It is connected via Ethernet now. This seems to be related to something the program tries to do around midnight on random days. I did finally get it running again after several power off/on cycles after the failed updates. The camera is currently physically disconnected. You can see how I am very skeptical about the network being an issue.
|
|
|
Post by Jason on Jun 10, 2021 3:32:18 GMT -8
Pretty sure that error is a missing VS Code apt package.
Thanks,
Jason
|
|
|
Post by pagerman on Jun 10, 2021 3:40:09 GMT -8
It rebooted when the failure happened. I have nothing setup for it to do that. It's in the program somewhere. And then it fails to start uploading after the reboot.
Jun 9 23:27:04 SwitchDocLabs kernel: [ 0.000000] Booting Linux on physical CPU 0x0 Jun 9 23:27:04 SwitchDocLabs kernel: [ 0.000000] Linux version 5.10.17-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1403 SMP Mon Feb 22 11:33:35 GMT 2021 Jun 9 23:27:04 SwitchDocLabs kernel: [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
|
|
|
Post by doxidad on Jun 10, 2021 5:50:29 GMT -8
BTW if using the on board WiFi, you should check for power management being ON for wlan0. If it is, the power management will idle your WiFi and disconnect anything that is connected but not actively passing data. I couldn't figure out why I was loosing connections. This only seems to be a problem with the PI 4B.
To check run
pi@WPI2:~ $ iwconfig wlan0 wlan0 IEEE 802.11 ESSID:"WincCom" Mode:Managed Frequency:2.447 GHz Access Point: 60:38:E0:BA:F5:D9 Bit Rate=72.2 Mb/s Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Power Management:on Link Quality=60/70 Signal level=-50 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:22633 Missed beacon:0 You can see the Power Management is ON.
To turn this off use this command and then check to make sure it is off.
sudo iwconfig wlan0 power off The only problem with this is that it is not static and the next time you reboot it will on again. To fix this so it always is off add the following line to your /etc/rc.local file, This will insure that the power management is always OFF.
iwconfig wlan0 power off
|
|
|
Post by Jason on Jun 10, 2021 6:22:10 GMT -8
Anytime you execute sudo apt update, apt will pull in all repositories it needs to in order to check for updates to installed packages.
sudo apt remove code-oss -y will remove the headmelted VS code package from the RPi. Microsoft added official support to VS code for RPi so sudo apt install code -y will install it on your machine.
Jason
|
|
|
Post by SDL on Jun 10, 2021 8:54:24 GMT -8
I will wait for the card from Dow before posting any more failures. As far as the Pi network firmware goes, the "old" Pi4B from this project has been running on the same exact network for approx 2 months straight uploading audio from 3 different USB sound cards to the web as a stream 24/7. No reboots, no crashes, no disconnects. VNC has also been working on that Pi for the same amount of time. It's connected via Ethernet. Here is one of those feeds: www.broadcastify.com/listen/feed/34452I have a Pi3 that has been running a live weather data stream from my WeatherFlow station for about a YEAR with no reboots or crashes. It's connected via my Google Mesh. It shows the data from this weather station: tempestwx.com/station/2277/gridThe SDL Pi crashed again last night at 11:27PM. It is connected via Ethernet now. This seems to be related to something the program tries to do around midnight on random days. I did finally get it running again after several power off/on cycles after the failed updates. The camera is currently physically disconnected. You can see how I am very skeptical about the network being an issue. I see what you mean. And our network configuration is very close to yours. Could you turn off WeatherSTEM and run the program? Forgive me if you have already done this. This would help isolate the cause. I'd say something is wrong with the python3 requests library, but it works for us. 24/7 for months. Something is different. But what is the question. BP
|
|
|
Post by SDL on Jun 10, 2021 9:16:57 GMT -8
Anytime you execute sudo apt update, apt will pull in all repositories it needs to in order to check for updates to installed packages. sudo apt remove code-oss -y will remove the headmelted VS code package from the RPi. Microsoft added official support to VS code for RPi so sudo apt install code -y will install it on your machine. Jason Jason, On some installations you have delete the headmelted line from /etc/apt/sources.list in addition. BP
|
|
|
Post by pagerman on Jun 10, 2021 12:17:26 GMT -8
I will wait for the card from Dow before posting any more failures. As far as the Pi network firmware goes, the "old" Pi4B from this project has been running on the same exact network for approx 2 months straight uploading audio from 3 different USB sound cards to the web as a stream 24/7. No reboots, no crashes, no disconnects. VNC has also been working on that Pi for the same amount of time. It's connected via Ethernet. Here is one of those feeds: www.broadcastify.com/listen/feed/34452I have a Pi3 that has been running a live weather data stream from my WeatherFlow station for about a YEAR with no reboots or crashes. It's connected via my Google Mesh. It shows the data from this weather station: tempestwx.com/station/2277/gridThe SDL Pi crashed again last night at 11:27PM. It is connected via Ethernet now. This seems to be related to something the program tries to do around midnight on random days. I did finally get it running again after several power off/on cycles after the failed updates. The camera is currently physically disconnected. You can see how I am very skeptical about the network being an issue. I see what you mean. And our network configuration is very close to yours. Could you turn off WeatherSTEM and run the program? Forgive me if you have already done this. This would help isolate the cause. I'd say something is wrong with the python3 requests library, but it works for us. 24/7 for months. Something is different. But what is the question. BP WS is off when this happens. And right now it is connected via Ethernet. WiFi and BT are both off.
|
|
|
Post by pagerman on Jun 10, 2021 12:18:03 GMT -8
BTW if using the on board WiFi, you should check for power management being ON for wlan0. If it is, the power management will idle your WiFi and disconnect anything that is connected but not actively passing data. I couldn't figure out why I was loosing connections. This only seems to be a problem with the PI 4B.
To check run
pi@WPI2:~ $ iwconfig wlan0 wlan0 IEEE 802.11 ESSID:"WincCom" Mode:Managed Frequency:2.447 GHz Access Point: 60:38:E0:BA:F5:D9 Bit Rate=72.2 Mb/s Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Power Management:on Link Quality=60/70 Signal level=-50 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:22633 Missed beacon:0 You can see the Power Management is ON.
To turn this off use this command and then check to make sure it is off.
sudo iwconfig wlan0 power off The only problem with this is that it is not static and the next time you reboot it will on again. To fix this so it always is off add the following line to your /etc/rc.local file, This will insure that the power management is always OFF.
iwconfig wlan0 power off
wlan0 is disabled.
|
|
|
Post by SDL on Jun 10, 2021 13:55:50 GMT -8
I see what you mean. And our network configuration is very close to yours. Could you turn off WeatherSTEM and run the program? Forgive me if you have already done this. This would help isolate the cause. I'd say something is wrong with the python3 requests library, but it works for us. 24/7 for months. Something is different. But what is the question. BP WS is off when this happens. And right now it is connected via Ethernet. WiFi and BT are both off. As far as network communication what are you running in SkyWeather2? MQTT or WeatherUnderground? BP
|
|
|
Post by pagerman on Jun 11, 2021 5:44:42 GMT -8
WS is off when this happens. And right now it is connected via Ethernet. WiFi and BT are both off. As far as network communication what are you running in SkyWeather2? MQTT or WeatherUnderground? BP Weather Underground. www.wunderground.com/dashboard/pws/KWIRACIN186
|
|
|
Post by SDL on Jun 11, 2021 14:59:40 GMT -8
Remove the WeatherUnderground too. See if it bombs then. Then we know if It has something to do with networking.
Both WeatherSTEM and WeatherUnderground use the requests library. Which is deep in the Python3 ecosystem. It could be rewritten to use a different library.
Again, WeatherSTEM and WeatherUnderground works for us all the time.
BP
|
|
|
Post by pagerman on Jun 15, 2021 4:18:02 GMT -8
Been running and uploading to WU for 5 days straight now. I have no idea why. I changed nothing.
|
|
|
Post by pagerman on Jun 16, 2021 7:51:06 GMT -8
Ok. Don't ask me why. It's been running and uploading to WU now for 6 days. The AQI is also working now.
I changed nothing.
I'm afraid to shut down to hook up the camera and put it back outside. LOL
|
|
|
Post by SDL on Jun 16, 2021 11:59:21 GMT -8
Pagerman,
I have no clue! We must just chalk this up to your amazing skills!
BP
|
|