dbus-serialbattery icon indicating copy to clipboard operation
dbus-serialbattery copied to clipboard

Installing this driver destroys a already installed one

Open stundenblume opened this issue 2 years ago • 6 comments

1.: Thank you for this very helpful driver!

Describe the bug Installing this driver destroys a already installed one.

To Reproduce Steps to reproduce the behavior:

  1. working dbus-mqtt-devices driver
  2. installing this driver
  3. reboot
  4. dbus-mqtt-devices driver doesn't work anymore

Expected behavior Installing this driver should not influence other drivers.

Solution Reinstalling dbus-mqtt-devices helped

What could I find Your installation script replaced a already existing entry in /data/rc.local Reentering it did not help. I had to reinstall dbus-mqtt-devices

stundenblume avatar Jun 09 '22 20:06 stundenblume

Hasn't dbus-mqtt-devices now overwritten the rc.local from this project?

Sadly, the mechanism for add-ons in Venus OS is not very friendly. I use multiple drivers and I manually merge them myself - would love to know if there's a better way but unless victron create an /etc/rc.local.d type structure I think this will just be the norm

ngardiner avatar Jun 10 '22 01:06 ngardiner

This was a known issue for the autoinstaller that the VenusOS provides0. For serialbattery it will not be a major issue if the rc.local with it's commands don't exist anymore after installation, but then when you upgrade your VenusOS firmware next time you will have to install the driver again.

The only way to get around this would be to not use the auto installer option, and then adjusting the ssh install script to not destroy any existing files.

Louisvdw avatar Jun 10 '22 06:06 Louisvdw

@ngardiner the setup script of dbus-mqtt-devices appends his line to /data/rc.local

For me everything is working new. But just to be aware that this can happen.

stundenblume avatar Jun 10 '22 07:06 stundenblume

@ngardiner the setup script of dbus-mqtt-devices appends his line to /data/rc.local

For me everything is working new. But just to be aware that this can happen.

That's going to work if nobody puts an exit 0 at the end of their script or runs any command which doesn't either fork or finish immediately, but we are at the point where people have to guess what other scripts are going to do.

It's still a very fragile system whichever way it is cut. The best approach would probably be for someone to build a standard rc.local mux system that allows custom modules to coexist and everyone to plug into that.

ngardiner avatar Jun 11 '22 09:06 ngardiner

i found this old topic, have exactly the same problems In rc-local there was en entry that reinstalled dbus-serialbattery at each reboot - at the reinstall deleted my other entries there

I uncommented that entry - now i want to change max charge / discharge current in utils.py, but this has no effect? utils.py says 20A/20A , Venus GUI says 5A / 60A , very strange Do i really need a reinstall each time the unit reboots?

kr0815 avatar Jul 19 '22 17:07 kr0815

Hm, sadly the installation deleted my rc.local without any backup. so i lost many settings.....

pos-ei-don avatar Sep 11 '22 11:09 pos-ei-don

Fixed in #370

Louisvdw avatar Dec 29 '22 07:12 Louisvdw