# FCM Errors fails at runtime

**URL:** <https://forum.theavr.org/t/fcm-errors-fails-at-runtime/701>\
**Category:** AVR Drone Software\
**Created:** [October 28, 2023, 1:05am UTC](https://forum.theavr.org/t/fcm-errors-fails-at-runtime/701 "2023-10-28T01:05:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Ewing](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/jack_ewing/32/29_2.png) [@Jack\_Ewing](https://forum.theavr.org/u/Jack_Ewing)\
**Post date:** [October 28, 2023, 1:05am UTC](https://forum.theavr.org/t/fcm-errors-fails-at-runtime/701/1 "2023-10-28T01:05:13Z")

</div>

we have been changing a lot of the code in sandbox and when we try and compile all of the code using ./start.py run we get the following error:

fcm\_2 | \_GatheringFuture exception was never retrieved  
fcm\_2 | future: \<\_GatheringFuture finished exception=ConnectionRefusedError(111, ‘Connection refused’)\>  
fcm\_2 | Traceback (most recent call last):  
fcm\_2 | File “/app/fcc\_telemetry.py”, line 59, in run\_non\_blocking  
fcm\_2 | super().run\_non\_blocking()  
fcm\_2 | File “/usr/local/lib/python3.9/site-packages/bell/avr/mqtt/client.py”, line 273, in run\_non\_blocking  
fcm\_2 | self.\_mqtt\_client.connect(host=self.mqtt\_host, port=self.mqtt\_port, keepalive=60)  
fcm\_2 | File “/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py”, line 914, in connect  
fcm\_2 | return self.reconnect()  
fcm\_2 | File “/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py”, line 1044, in reconnect  
fcm\_2 | sock = self.\_create\_socket\_connection()  
fcm\_2 | File “/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py”, line 3685, in \_create\_socket\_connection  
fcm\_2 | return socket.create\_connection(addr, timeout=self.\_connect\_timeout, source\_address=source)  
fcm\_2 | File “/usr/local/lib/python3.9/socket.py”, line 844, in create\_connection  
fcm\_2 | raise err  
fcm\_2 | File “/usr/local/lib/python3.9/socket.py”, line 832, in create\_connection  
fcm\_2 | sock.connect(sa)  
fcm\_2 | ConnectionRefusedError: [Errno 111] Connection refused

any help to get stabilized flight working would be appreciated  
thank you
