You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm running this on a raspberry pi 3b, latest raspbian.
I can start mbusd via command line: pi@pi-modbus:~ $ sudo mbusd -c /etc/mbusd/mbusd-ttyUSB0.conf
I can also start as a service: pi@pi-modbus:~ $ sudo systemctl start [email protected]
It runs just fine like that (log below for service start):
pi@pi-modbus:~ $ sudo journalctl -u [email protected] -f -n 10
-- Logs begin at Thu 2019-02-14 11:11:59 CET. --
May 14 16:00:41 pi-modbus systemd[1]: Started Modbus TCP to Modbus RTU (RS-232/485) gateway..
May 14 16:00:41 pi-modbus mbusd[15393]: 14 May 2020 16:00:41 mbusd-0.4.1 started...
May 14 16:00:43 pi-modbus mbusd[15393]: 14 May 2020 16:00:43 conn_open(): accepting connection from 192.168.40.32
May 14 16:00:53 pi-modbus mbusd[15393]: 14 May 2020 16:00:53 conn_close(): closing connection from 192.168.40.32
May 14 16:00:53 pi-modbus mbusd[15393]: 14 May 2020 16:00:53 conn_open(): accepting connection from 192.168.40.32
May 14 16:01:03 pi-modbus mbusd[15393]: 14 May 2020 16:01:03 conn_close(): closing connection from 192.168.40.32
May 14 16:01:03 pi-modbus mbusd[15393]: 14 May 2020 16:01:03 conn_open(): accepting connection from 192.168.40.32
May 14 16:01:13 pi-modbus mbusd[15393]: 14 May 2020 16:01:13 conn_close(): closing connection from 192.168.40.32
May 14 16:01:13 pi-modbus mbusd[15393]: 14 May 2020 16:01:13 conn_open(): accepting connection from 192.168.40.32
May 14 16:01:23 pi-modbus mbusd[15393]: 14 May 2020 16:01:23 conn_close(): closing connection from 192.168.40.32
May 14 16:01:23 pi-modbus mbusd[15393]: 14 May 2020 16:01:23 conn_open(): accepting connection from 192.168.40.32
May 14 16:01:33 pi-modbus mbusd[15393]: 14 May 2020 16:01:33 conn_close(): closing connection from 192.168.40.32
May 14 16:01:33 pi-modbus mbusd[15393]: 14 May 2020 16:01:33 conn_open(): accepting connection from 192.168.40.32
That seems to have fixed it and makes sense to me because mbusd cannot bind to the correct address until the network is up and running.
Maybe it would make sense to include this in the generated service file or make the program more robust to changing network conditions (like the link above suggests)?
Hi there, I'm running this on a raspberry pi 3b, latest raspbian.
I can start mbusd via command line:
pi@pi-modbus:~ $ sudo mbusd -c /etc/mbusd/mbusd-ttyUSB0.conf
I can also start as a service:
pi@pi-modbus:~ $ sudo systemctl start [email protected]
It runs just fine like that (log below for service start):
But when I enable the service:
And reboot the raspberry:
pi@pi-modbus:~ $ sudo reboot
I only get a "Failed to start ..." message in the logs:
Waiting does not help, but restarting fixes it:
pi@pi-modbus:~ $ sudo systemctl restart [email protected]
Since I do not want to have to do this after every reboot I'm asking:
How can I fix this? I am no linux expert but have never seen this with other services (like openhab, homebridge etc..).
The text was updated successfully, but these errors were encountered: