zmata / LoxBerry-Plugin-ModbusGateway

LoxBerry Plugin - Modbus TCP to Modbus RTU Gateway
Apache License 2.0
4 stars 5 forks source link

Not running on Loxberry 3.0 #8

Open netgh72 opened 1 year ago

netgh72 commented 1 year ago

Hello,

log from installing: dpkg: error processing archive /opt/loxberry/data/system/tmp/uploads/Qi8jyfC7R4/LoxBerry-Plugin-ModbusGateway-0.0.12/dpkg/raspberry/mbusd-Linux_armv7l-v0.4.1.deb (--install): package architecture (armhf) does not match system (arm64) Errors were encountered while processing: /opt/loxberry/data/system/tmp/uploads/Qi8jyfC7R4/LoxBerry-Plugin-ModbusGateway-0.0.12/dpkg/raspberry/mbusd-Linux_armv7l-v0.4.1.deb 09:47:10.885 ERROR: (Some) Packages could not be installed.

Can sombody please help me? Thanx, Gerd

rubenvw-ngdata commented 1 year ago

It's not working for me too since I migrated to loxberry 3.0

ty6600 commented 1 year ago

Unfortunately also not working here anymore after migration

max9091 commented 1 year ago

Hello, similar error, when installing the plug-in appears:

19:23:02.572 INFO: LoxBerry Version 3.0.0.6 ( is_raspberry.cfg is_hwmodel_raspberry_pi_3_3+_zero_2.cfg is_arch_aarch64.cfg ) : : dpkg: error processing archive /opt/loxberry/data/system/tmp/uploads/CNDJKGvp0d/LoxBerry-Plugin-ModbusGateway-0.0.12/dpkg/raspberry/mbusd-Linux_armv7l-v0.4.1.deb (--install): package architecture (armhf) does not match system (arm64) Errors were encountered while processing: /opt/loxberry/data/system/tmp/uploads/CNDJKGvp0d/LoxBerry-Plugin-ModbusGateway-0.0.12/dpkg/raspberry/mbusd-Linux_armv7l-v0.4.1.deb 19:23:17.688 ERROR: (Some) Packages could not be installed. : : 19:23:19.817 OK: All Plugin files were installed successfully and system was cleaned up. 19:23:19.817 WARNING: An error or warning occurred 19:23:19.818 ================================================================================== 19:23:19.818 This is a summary of all errors and warnings during this installation: 19:23:19.818 ERROR: APT install: (Some) Packages could not be installed. 19:23:20.697 ================================================================================== 19:23:20.697 INFO: Saving logfile.

I can start the plug-in and the USB to RS485 converter can be found and added - however, when pressing the Start-Button I get following error:

Active: failed (Result: exit-code) since Tue 2023-08-29 19:36:09 CEST; 1s ago

Can somebody help? Thanks already in advance. BR, Markus

JCH2k commented 10 months ago

This is because the mbus package is included only for x86_64 and armv7, but you and I use a 64bit ARM linux (dietpi armv8) since loxberry 3. So it has nothing to do with loxberry 3, but with the OS you installed for it.

Is anybody familiar with building DEB packages? I guess updating mbus and compiling it should be easy.

JCH2k commented 10 months ago

@Gagi2k did you build the current versions of the packages? Could you build one for armv8?

TeslaV1 commented 8 months ago

I guess I have the same issue. It would be really helpful to get a new package. Please update.

In the meantime I will search a bit on the interwebs about how to maybe update manually.

TeslaV1 commented 8 months ago

Here is what I found:

1)Open a terminal from Loxberry Web-Interface 2)First install cmake: sudo apt-get -y install cmake 3)Install mbusd git clone https://github.com/3cky/mbusd.git mbusd.git cd mbusd.git mkdir -p build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install

Maybe the last command does not work if not root. Then switch to root with su - After that go to directory opt/loxberry/mbusd.git/build and repeat the last command.

I got status "Active: active (running)" with this.

pestilenter commented 8 months ago

awesome, I just was thinking to switch to ARMv7, it works like a charm. thanks!

Gagi2k commented 8 months ago

If i remember correctly i also generated the debian packages using cmake. If you have your build already up and running you can try to create a debian package running the following command:

cpack -G DEB

TeslaV1 commented 8 months ago

After reboot the plugin apparently does not start. Also manually starting fails. Only uninstalling and reinstalling fixes this.

I will try to figure out what is going on.

rubenvanwanzeele commented 3 months ago

@TeslaV1 any update on your latest issue?

rubenvanwanzeele commented 3 months ago

I'm working on a way to fix this here: https://github.com/rubenvanwanzeele/LoxBerry-Plugin-ModbusGateway If anyone more familiar with loxberry feels like contributing to this, your help is welcome.

rubenvanwanzeele commented 3 months ago

I tried to fix this by adding the mbusd package for dietpi, see (https://github.com/rubenvanwanzeele/LoxBerry-Plugin-ModbusGateway/archive/refs/tags/v0.0.13.zip), but it fails to install on my loxberry: It keeps hanging in this state: image No error, so not sure what is going wrong. If any one else has a clue, let me know