Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't publish file, bishbosh_publishFile function not working, too many output retries : Broken pipe #17

Open
chetniks opened this issue Jan 21, 2021 · 0 comments

Comments

@chetniks
Copy link

chetniks commented Jan 21, 2021

Hello,

The function to publish message via file is not working,
bishbosh_publishFile 0 '/topic/something/0' no 'message' is always throwing an error
Tried different backends, changing read latency, as well as to change file path like './message' '/bish-bosh/message' , './var/run/bish-bosh/lock/servers/...' .'/var/lib/bish-bosh/client/servers/...'
Its almost always the same error :
./bish-bosh: 12: read: arg count
Also tried to change bash to /bin/bash and /bin/sh /usr/bin/env sh
The way i run the program is :
./bish-bosh --verbose 3 -- 'publish-sub.test'

publish-sub.test is not important as it comes up that function doesn't work inside any of handlers as i tried it inmost of them.

I have uploaded relevant logs.
root@571ecc8a8599:/bish-bosh# ./bish-bosh --verbose 3 -- 'publish-sub.test'
bish-bosh: INFO: Using backend 'ncat' (on path '/bin/ncat') with port '3002'
bish-bosh: DEBUG: Passing options to backend 'ncat' using '/bin/ncat' as '-w 30 -v -v URL 3002' (please note spaces ARE handled correctly)
bish-bosh: DEBUG: bishbosh_connection_clientPid is 39981
bish-bosh: INFO: Using stdbuf (stdbuf) with od (od)
bish-bosh: DEBUG: bishbosh_connection_hexConversionPid is 39992
bish-bosh: INFO: Writing CONNECT
bish-bosh: DEBUG: bishbosh_connection_processLoopPid is 39997
Warning: inverse host lookup failed for IP_ADDRESS: No address associated with name
bish-bosh: DEBUG: bishbosh_connection_processingLoopReadInterrupterPid is 40007
bish-bosh: DEBUG: Our Pid is 39649
bish-bosh: NOTICE: Terminate bish-bosh with kill 39649
URL [IP_ADDRESS] 3002 (?) open
bish-bosh: INFO: Received valid CONNACK
./bish-bosh: 12: read: arg count
bish-bosh: FAIL: processLoop failed
root@571ecc8a8599:/bish-bosh# too many output retries : Broken pipe
sent 92, rcvd 4
set-x.log

On the other hand, publishing message as text (bishbosh_PublishText) function is working properly.

Could you please assist or share an example on how to publish message via file.

Additionaly:
error code returned:
echo $?
2
OS : NAME="Ubuntu"
VERSION="16.04.7 LTS (Xenial Xerus)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant