Brewblox not running after update

Hi Bob
Hopefully this works:
https://drive.google.com/drive/folders/1KFz9uJ-sSwSJtrk0QMl7W8d1Zge_pJdd?usp=sharing
Thanks

It looks like an insert caused data corruption. Happily, data is stored in a way to prevent this kind of corruption from ruining everything.

When running the tool here, it successfully fixed the problem. Afterwards, the data seemed OK, but the last change(s) made in the UI are likely missing.

To fix, run this in your brewblox directory:

brewblox-ctl down
cp -r ./redis/ ./redis-bak
docker run --rm -it --entrypoint redis-check-aof -v "$PWD/redis:/data" redis:6.0 --fix appendonly.aof
brewblox-ctl up

This includes making a copy of your redis data in ./redis-bak. If everything is up and running again after these commands, you can remove this directory again with rm -rf ./redis-bak.

Many thanks Bob, that worked

1 Like

Side note: if you already migrated all old InfluxDB data, you can remove the influxdb directory to reduce snapshot size by ~290MB.

Hi Bob
can you include the command to do that?
Many thanks

In the brewblox directory: sudo rm -rf ./influxdb

Hi Bob
Tried the new update today, but having the same issue with waiting for datastore.
https://termbin.com/2w02
Any ideas?
Thanks

The issue seems the same as before. How old is your SD card? Repeated data corruption is an indicator of your card dying on you.

I think 6-8 months
If I change the card, will I be able to restore from the snapshot?
Cheers

You do have more controllers than average, but we’d still expect a 256GB card to last 2-3 years of regular use.

If you have it on hand, you can try using a new card. Otherwise you could reflash this one.

Yes. Upgrading your system | Brewblox contains complete instructions, but the gist of it is: install as normal, then load snapshot.

Is ther a preferred size of sd card to use?

32GB+ is recommended. Every sector on an SD card has a limited number of writes in it, and the history database is writing to disk every few seconds.
The operating system will spread out writes over sectors to make all sectors last longer. This is why we’d expect a large SD card such as your current to last much longer.

Hi Bob, put in a new card, loaded snapshot, but still the same issue

https://termbin.com/2r9p

Ran this again and seems to have brought it back - phew

Yes, existing corruption still had to be resolved. Question is whether it happens again.

Hopefully one final question - How to I set my home page for dashboard - each time I try and set it in admin or right side of the screen it reverts to the old one?

Cheers

It should work like that. If you open the dev tools (ctrl+shift+i) before trying to set it, do you get any errors?