Skip to content

Mosquitto not working on 64 bit Raspberry Pi OS #18

@dannystaple

Description

@dannystaple

I've gotten part way through this process and it seems like mosquitto isn't working.

  1. Loaded 64 bit Raspberry Pi OS (full) on a new 32 GB SD card
  2. Used pyinfra to run deploy_all, deploy_services, deploy_vision, deploy_speaking
  3. Restart, but noticed that inventor hat light wasn't coming on
  4. Used journalctl to check inventor hat service
doug@raspi4:~ $ journalctl -u inventor_hat_service -f
Oct 12 05:24:46 raspi4 robotpython[3651]:   File "/usr/lib/python3.13/socket.py", line 849, in create_connection
Oct 12 05:24:46 raspi4 robotpython[3651]:     sock.connect(sa)
Oct 12 05:24:46 raspi4 robotpython[3651]:     ~~~~~~~~~~~~^^^^
Oct 12 05:24:46 raspi4 robotpython[3651]: ConnectionRefusedError: [Errno 111] Connection refused
Oct 12 05:24:46 raspi4 systemd[1]: inventor_hat_service.service: Main process exited, code=exited, status=1/FAILURE
Oct 12 05:24:46 raspi4 systemd[1]: inventor_hat_service.service: Failed with result 'exit-code'.
Oct 12 05:24:46 raspi4 systemd[1]: inventor_hat_service.service: Scheduled restart job, restart counter is at 5.
Oct 12 05:24:46 raspi4 systemd[1]: inventor_hat_service.service: Start request repeated too quickly.
Oct 12 05:24:46 raspi4 systemd[1]: inventor_hat_service.service: Failed with result 'exit-code'.
Oct 12 05:24:46 raspi4 systemd[1]: Failed to start inventor_hat_service.service - inventor_hat_service.
  1. Check mosquitto
doug@raspi4:~ $ mosquitto_sub -t "hello/#" -u robot -P robot -v
Error: Connection refused
doug@raspi4:~ $ mosquitto_pub -u robot -P robot -t sensors/encoders/control/reset -n
Error: Connection refused

I wasn't able to find any troubleshooting tips for mosquitto. How should I proceed?

Originally posted by @dblanding in #9

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions