MQTT shell script client, for bash, dash, BusyBox ash and others. Gives you MQTT on anything Unix like, from embedded routers to AIX servers with almost no dependenices.
Hi !
First of all, great work on Bish-bosh, it is everything I needed for the project I'm working on and works great.
The only problem is the one I'm seeing right now: I run Bish-bosh on a raspberry pi, and as it is far from the wifi access point, it is often subject to deconnections/reconnections.
In order not to miss any messages sent during the time the raspberry wasn't connected to the broker, I use persistent sessions (bishbosh_connect_cleanSession=0).
It works for a bit of time, but at some point, I get the following error and bish-bosh won't reconnect:
Mar 26 09:06:57 adria bish-bosh[1118]: /opt/bish-bosh/bish-bosh: 71: [: -ge: unexpected operator
Mar 26 09:06:57 adria bish-bosh[1118]: /opt/bish-bosh/bish-bosh: 71: [: -ge: unexpected operator
Mar 26 09:06:57 adria bish-bosh[1118]: ln: failed to create symbolic link '/opt/bish-bosh/var/spool/bish-bosh/session/servers/192.168.10.101/ports/1883/client-ids/_adria/retransmission/ /2': File exists
Mar 26 09:06:57 adria bish-bosh[1118]: bish-bosh: FAIL: Sent retransmission '' (padded as ' ') already exists for '2' at path '/opt/bish-bosh/var/spool/bish-bosh/session/servers/192.168.10.101/ports/1883/client-ids/_adria/retransmission/ '.
The only thing to get it working again is change my scriplet, delete the line bishbosh_connect_cleanSession=0, connect again without the persistent session, add the line again and reconnect.
I'm running bish-bosh as a service in order to restart it everytime it loses the connection to the wifi, I don't know if it is a great idea but that's all I could find in order to run the raspberry headless without hogging a terminal.
Here is the configuration:
Hi ! First of all, great work on Bish-bosh, it is everything I needed for the project I'm working on and works great. The only problem is the one I'm seeing right now: I run Bish-bosh on a raspberry pi, and as it is far from the wifi access point, it is often subject to deconnections/reconnections. In order not to miss any messages sent during the time the raspberry wasn't connected to the broker, I use persistent sessions (bishbosh_connect_cleanSession=0). It works for a bit of time, but at some point, I get the following error and bish-bosh won't reconnect:
The only thing to get it working again is change my scriplet, delete the line
bishbosh_connect_cleanSession=0
, connect again without the persistent session, add the line again and reconnect.I'm running bish-bosh as a service in order to restart it everytime it loses the connection to the wifi, I don't know if it is a great idea but that's all I could find in order to run the raspberry headless without hogging a terminal. Here is the configuration:
Here is my bish-bosh scriplet:
Any idea what might be the problem and how it could be avoided? Thx in advance!
PS: Another very minor thing: the topic name isn't displayed in my log file when using echo ${topicName}.