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

fix: mqtt disconnecting immediately after boot #328

Merged
merged 2 commits into from Feb 4, 2024

Conversation

fidesachates
Copy link
Contributor

After I upgraded to 4.0, my mqtt wasn't working anymore. On my mqtt bridge, I saw that the client was connecting and then disconnecting. I debugged it on the camera by outputting mqttv4 to logs and rebooting. I found this in the logs:

Can't open mqueue /ipc_dispatch_1. Error: No such file or directory

I deduce that this is because the command above ipc_multiplexer needs time to start up properly? I tested this giving it a sleep and rebooting which fixed the issue.

@@ -227,7 +227,7 @@ fi

ipc_multiplexer &

mqttv4 &
sleep 30 && mqttv4 &
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI 10 seconds didn't work, but 20 did on my system. I'm making it 30 to give it extra time for other models that I don't have to test with.

@fidesachates fidesachates changed the title fix: sleep to give ipc_multiplexer time fix: mqtt disconnecting immediately after boot Jan 28, 2024
@alienatedsec
Copy link
Owner

@fidesachates this will need to be merged later unless you will raise a pull request into a pre-release https://github.com/alienatedsec/yi-hack-v5/tree/pre-release-0.4.1x

@alienatedsec alienatedsec changed the base branch from master to pre-release-0.4.1x February 3, 2024 22:26
@alienatedsec alienatedsec merged commit b279d35 into alienatedsec:pre-release-0.4.1x Feb 4, 2024
1 check passed
@fidesachates fidesachates deleted the patch-2 branch February 6, 2024 01:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants