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

Error on starting add-on #300

Open
PeterH63 opened this issue Nov 28, 2024 · 1 comment
Open

Error on starting add-on #300

PeterH63 opened this issue Nov 28, 2024 · 1 comment

Comments

@PeterH63
Copy link

Hello, i get the following error when starting the add-on.

Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/app/aircon/main.py", line 303, in
asyncio.run(run(parsed_args))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/app/aircon/main.py", line 193, in run
mqtt_client.connect(parsed_args.mqtt_host, parsed_args.mqtt_port)
File "/usr/local/lib/python3.10/site-packages/paho_mqtt-1.6.1-py3.10.egg/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
File "/usr/local/lib/python3.10/site-packages/paho_mqtt-1.6.1-py3.10.egg/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.10/site-packages/paho_mqtt-1.6.1-py3.10.egg/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

My configuration looks like that.

log_level: INFO
mqtt_host: core-mosquitto
mqtt_port: 8888
mqtt_user: mqtt-user
mqtt_pass: xxxxxxxx
port: 8123
app:

Does somebody have an idea.
Thanks for any help.

@kassyo87
Copy link

i'm running mosquito broker with default mqtt port and port 80, and it works. maybe try that.

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

2 participants