crash of my weather station

189 views
Skip to first unread message

Patrick Tranchant

unread,
Jan 5, 2020, 2:53:54 PM1/5/20
to weewx-user
hi every body

tonight my RPi with my weather-station BYOWS is out of order
there is no more system.( just partition K)

copy partition K:
and partition L : empy or acces impossible

I must to do an other install of Raspbian, I think and I have forgotten to do a backup "database".

gggggrrrrrh

patrick

salinois

unread,
Jan 6, 2020, 2:28:54 PM1/6/20
to weewx...@googlegroups.com

hi

I managed to repair my partition. with the command fsck -f -y / dev / sdax; it had to be launched 3 times.

patrick

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/04020d67-2149-4070-a81f-045f77fc9a68%40googlegroups.com.

Patrick Tranchant

unread,
Jan 6, 2020, 2:32:49 PM1/6/20
to weewx-user
up
Now, I have it as errors in syslog:
Jan  6 20:30:23 raspberrypi weewx[492]: Belchertown Extension: New forecast file downloaded to /var/www/html/weewx/belchertown/json/darksky_forecast.json
Jan  6 20:30:27 raspberrypi weewx[492]: cheetahgenerator: Generate failed with exception '<type 'exceptions.OSError'>'
Jan  6 20:30:27 raspberrypi weewx[492]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/manifest.json.tmpl
Jan  6 20:30:27 raspberrypi weewx[492]: cheetahgenerator: **** Reason: [Errno 21] est un dossier
Jan  6 20:30:27 raspberrypi weewx[492]: ****  Traceback (most recent call last):
Jan  6 20:30:27 raspberrypi weewx[492]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 333, in generate
Jan  6 20:30:27 raspberrypi weewx[492]: ****      os.rename(tmpname, _fullname)
Jan  6 20:30:27 raspberrypi weewx[492]: ****  OSError: [Errno 21] est un dossier
Jan  6 20:30:29 raspberrypi weewx[492]: cheetahgenerator: Generated 10 files for report Belchertown in 6.10 seconds
Jan  6 20:30:29 raspberrypi weewx[492]: copygenerator: copied 2 files to /var/www/html/weewx/belchertown

an idea

tks

patrick

gjr80

unread,
Jan 6, 2020, 3:36:56 PM1/6/20
to weewx-user
Hi,

Assuming you are running off an SD card only the way ahead seems clear. Ask yourself how much do you value your data and trouble free operation of your station? If the value is greater than the cost of a new SD card then replace the card. Otherwise persist but be prepared to accept ongoing unexpected problems.

Gary

vince

unread,
Jan 6, 2020, 5:07:25 PM1/6/20
to weewx-user
On Monday, January 6, 2020 at 12:36:56 PM UTC-8, gjr80 wrote:
Assuming you are running off an SD card only the way ahead seems clear. Ask yourself how much do you value your data and trouble free operation of your station? If the value is greater than the cost of a new SD card then replace the card. Otherwise persist but be prepared to accept ongoing unexpected problems.



Once a SD card starts going bad, it is going to keep going bad.
Spend the money.  Buy some new SD cards.  You are going to need them.

salinois

unread,
Jan 6, 2020, 5:10:46 PM1/6/20
to weewx...@googlegroups.com

hi,

yes yes, that's what I'm going to do, I already have some in reserve. Is there a lifetime for micro SD Card.

patrick

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Susan Mackay

unread,
Jan 6, 2020, 8:55:23 PM1/6/20
to weewx-user
Most definitely and it varies with the quality and speed of the SD card itself.
Typically it is (should be) measured in write/erase cycles and should be at least 100K write/erase cycles. modern SD cards include 'wear levelling' hardware to avoid hot spots that will cause heavily used cells to fail before the overall card.
Also, if you have something that writes to the SD card a lot (like system log files, weather software databases...) then you can look to place those files on some other media that is more tolerant of such writing. I have a NAS drive attached to my Raspberry Pi that runs WeeWx for all of the database and HTML files (the log files go to a memory disk and I take the hit of not being able to access them if the system crashes.) If it get 20 or so write tot he SD card a day I'd be surprised but I expect the SD card to last multiple years (about 3 so far). (Of course it is backed up so I can create a new one in a hour or so.)

Susan

Thomas Keffer

unread,
Jan 7, 2020, 7:17:16 AM1/7/20
to weewx-user
All good suggestions here.

But, the most important is to get a good SD card. I've been doing an experiment with a Sandisk Extreme Plus, running an unmodified version of weewx. Everything gets written to the disk, including the logs. It has now been running for over 5 years without a problem.

They can be made to work.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

salinois

unread,
Jan 7, 2020, 7:44:26 AM1/7/20
to weewx...@googlegroups.com

hi,

can you give me the reference of your Sandisk ?

thks

patrick

Thomas Keffer

unread,
Jan 7, 2020, 8:51:23 AM1/7/20
to weewx-user
It's a 16 GB Sandisk Extreme Plus. Something like this. But, keep in mind, this is now a 5+ year old model. There are probably better choices now.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

salinois

unread,
Jan 7, 2020, 8:53:56 AM1/7/20
to weewx...@googlegroups.com

thanks Thomas

I am going to search this model because an other crash since 1 hour of my SD Card !!!

this is the time to do somethings

patrick

Thomas Keffer

unread,
Jan 7, 2020, 9:01:53 AM1/7/20
to weewx-user
It's also important to use a high-quality power supply. 

A small uninterruptible power supply (UPS) also helps. Like this.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

salinois

unread,
Jan 7, 2020, 9:49:28 AM1/7/20
to weewx...@googlegroups.com

I do have a Sandisk 32 Gb SD card HC I 10

patrick

salinois

unread,
Jan 7, 2020, 2:38:18 PM1/7/20
to weewx...@googlegroups.com

vince

unread,
Jan 7, 2020, 2:46:16 PM1/7/20
to weewx-user
On Tuesday, January 7, 2020 at 11:38:18 AM UTC-8, salinois wrote:

These will break also if your power supply is not good enough.

(tested and failed badly for me in a previous test on a pi3+)

ALWAYS go with a very good power supply on a pi

salinois

unread,
Jan 7, 2020, 5:43:36 PM1/7/20
to weewx...@googlegroups.com

we must to have a power min 3A for that.

patrick

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Phil Owers

unread,
Jan 8, 2020, 6:21:06 AM1/8/20
to weewx...@googlegroups.com
When I started with raspberry pi it came with pre-loaded software one of which was noobs.  In there I found an SD card copier app. I use that , amongst other things, to back up the entire system plus weewx. I have put the backup SD card into another pi and it works fine as it does in the pi it was copied from. Ive never seen this mentioned on this forum but its an easy way to back up valuable data. Just a thought Phil

salinois

unread,
Jan 14, 2020, 11:30:49 AM1/14/20
to weewx...@googlegroups.com

hi all,

I could reinstall my weather station on another sd card, everything is OK.
I test on another RPi with an SSD disk which has its own power supply, installation of Raspian Buster, with several tests, on a P3B v1.2; now there is no more sd card just the SSD; but there are weird things, when I want to reboot it freezes "black screen"; on the other hand when I turn off and on again it's OK.
What do you think ?

patrick

Patrick Tranchant

unread,
Jan 20, 2020, 12:57:21 PM1/20/20
to weewx-user
hello,
has anyone ever used log2ram software?

tks

Patrick

On Sunday, January 5, 2020 at 8:53:54 PM UTC+1, Patrick Tranchant wrote:
Reply all
Reply to author
Forward
0 new messages