chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
415 stars 269 forks source link

Gateway Bridge not starting after reboot under Multitech v6.0.0 #213

Closed rekcaiot closed 1 year ago

rekcaiot commented 1 year ago

What happened?

After updating the mPower Firmware version from 5.3.3 to 6.0.0 the soft reboot via cli of the gateway no longer leads to the start of the Gateway Bridge after boot. When doing a hard shutdown and restart the Gateway Bridge starts like expected.

What did you expect?

The Gateway Bridge starts after soft "reboot" under mPower 6.0.0.

Possible solution

When having a look into the original chirpstack-gateway-bridge.init file of the Gateway Bridge the LSB Header is present: ### BEGIN INIT INFO # Provides: chirpstack-gateway-bridge # Required-Start: $all # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: ChirpStack Gateway Bridge ### END INIT INFO

The vendor specific one for Multitech Conduit doesn't have the LSB Header. When adding this header manually and reinitilizing the service, the reboot works like expected.

The Bridge also starts after reboot when adding the LSB Header under mPower 5.3.3.

Component Version
Gateway Bridge chirpstack-gateway-bridge_3.14.0-r1_arm926ejste
Multitech Gateway MTCAP2-868-042A
Multitech Firmware Version mPower 6.0.0
brocaar commented 1 year ago

To take away any assumptions and making it easier to reproduce, could you describe the exact commands / steps for:

brocaar commented 1 year ago

I've been able to reproduce this, but in my case adding the above header did not solve it. What I think is that the ChirpStack Gateway Bridge starts too early (e.g. before network setup).

What I did see is that the mPower firmware provides Monit. I will update the .ipk such that: