Cerbo GX doesn't boot

Hello all,

I was fiddling with my Cerbo last night to add dummy meters to vrm: GitHub - Marv2190/Victron_DummyMeter_NodeRed: With this DummyMeter you can use every Datasource NodeRed support to publish Data to Victron Dbus (Gridmeter) .

I changed the run script so i could add multiple meters for heatpump and EV charger.

The scripts itself worked if i ran them manually via ssh but when booting it only did the first meter.

To fix this i tried to run it in the background so i changed the run script to:

python /data/DummyGridMeter/EVcharger.py &
python /data/DummyGridMeter/Heatpump.py &

This withheld the Cerbo from booting so now i cant acces the console or ssh.

What is the easiest way of restoring, i didnt make any backup :frowning:

I just need root acces to change the run file, but that seems harder than i thought.

I tried using the reset button on the bottom of the Cerbo but that didnt help, still no acces (wifi and bluetooth leds are not on).

I also tried installing a fresh install on a sd card but i dont think it boots from the sd card.

Greetings,

Arjan

How much time do you want to spend on it?
Fastest way is to reset to factory and start again.
The instructions are here

If that doesn’t work further down the page is a full OS reinstall.

Yea i know that, i was hoping i could acces it somehow without losing all my settings.

I guess this a lesson for me to backup my stuff! :sweat_smile:

Yeah its a bit of kick in the behind :rofl:

What you need to do depends on where in the boot process your system is crashing. You can try the reset to factory defaults but that may never get executed. You may need to follow the procedure to reinstall Venus OS included in the same link in the LX reply.

FYI:

Running a program in the background as you indicated probably will not work since it requires the process that calls the background operation to remain running.

Running each meter as a service is a better approach however, and the code you got from GitHub is already set up to run as a service.

As the GitHub instructions suggest, you could add lines to /data/rc.local to copy (don’t use sim links any more they may not work) /data/DummyGridMeter/service /service/EVcharger. You would need separate copies for HeatPump also.

I should have just waited for your response because everything you said i have have found through trail and error haha.

You’re right, the factory default didn’t work so i needed a Venus reinstall.

I’m also copying the whole folder for each meter and a seperate service.

I’m not really sure what a simlink is and what would be an alternative.

Is “ln -s /data/DummyGridMeter/service /service/DummyGridMeter ” the simlink?

Thank you!

Download the einstein firmware onto an sd card, insert that into the cerbo, and apply power. The Cerbo should reload its firmware from the sd card, BUT you will lose all settings etc - which you seem to have done anyway.

1 Like

You only copy the small service directory not the entire directory containing the .py file,etc

Yes the ln-s line is the symbolic link

Use cp instead of ln -s