# Event Loop Error 2 and continious reconnects

**URL:** <https://community.particle.io/t/event-loop-error-2-and-continious-reconnects/37186>\
**Category:** Raspberry Pi\
**Created:** [November 5, 2017, 2:17pm UTC](https://community.particle.io/t/event-loop-error-2-and-continious-reconnects/37186 "2017-11-05T14:17:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pewe](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@pewe](https://community.particle.io/u/pewe)\
**Post date:** [November 5, 2017, 2:17pm UTC](https://community.particle.io/t/event-loop-error-2-and-continious-reconnects/37186/1 "2017-11-05T14:17:41Z")

</div>

Running Particle agent (0.1.5.2-pi13) on Pi Zero, running simplest example app "“Blink a led” trying to find reason for problems. Everything seems to work ok in the app, but it connect/disconnect/reconnect almost every second. A listing of part of the continious loop from the particle-agent.log shown below. Any idea of what the reason to this problem could be?

0047856100 system: INFO: Cloud: connecting  
0047856190 system: INFO: Resolved host [7ab78d46b59839c399e76f06.agent.particle.io](http://7ab78d46b59839c399e76f06.agent.particle.io) to 52.91.51.61  
0047856345 system: INFO: connected to cloud 52.91.51.61:5683  
0047856345 system: INFO: Cloud socket connected  
0047856865 comm: INFO: Handshake: completed  
0047856866 system: INFO: Cloud connected  
0047857818 comm: WARN: receive error -2  
0047857819 comm: WARN: Event loop error 2  
0047857819 system: WARN: Communication loop error, closing cloud socket  
0047857869 system: INFO: Cloud: connecting

---

<div class="post-metadata">

**Author:** ![pewe](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@pewe](https://community.particle.io/u/pewe)\
**Post date:** [November 11, 2017, 2:21pm UTC](https://community.particle.io/t/event-loop-error-2-and-continious-reconnects/37186/2 "2017-11-11T14:21:26Z")

</div>

A particle-agent setup followed by a restart solved the problem 🙂
