# Discord error on reboot of device

**URL:** <https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677>\
**Category:** General\
**Created:** [25 October 2024 23:49 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677 "2024-10-25T23:49:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ath0rus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ath0rus/32/95404_2.png) [@ath0rus](https://discourse.nodered.org/u/ath0rus)\
**Post date:** [25 October 2024 23:49 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/1 "2024-10-25T23:49:03Z")

</div>

Hi,  
So every now and then when I reboot the device that is hosting my discord bot I get met with this error.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b3d32bf7235a9fd1041aec43e5949212a519e8f8.png)  
Does anyone know a permenant fix for this? Usually hiiting restart flow fixes it, But I would like it to work from the start with no need for manual intervention

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2024 12:28 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/2 "2024-10-26T12:28:01Z")

</div>

If you google for EIA\_AGAIN you will find that it means that the code cannot find the IP address of [discord.com](http://discord.com). The reason may be that the internet connection is not fully up and running when node-red starts. If it is that then a solution is to delay the node-red startup, either for a predefined time or to wait until the network is up before starting node red. How to do that depends on how node red is started and what OS it is running on.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 October 2024 12:36 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/3 "2024-10-26T12:36:06Z")

</div>

Or you may need to raise an issue against that node to ask them if it can automatically retry in the case of failures.

---

<div class="post-metadata">

**Author:** ![ath0rus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ath0rus/32/95404_2.png) [@ath0rus](https://discourse.nodered.org/u/ath0rus)\
**Post date:** [27 October 2024 00:09 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/4 "2024-10-27T00:09:32Z")

</div>

I will have to give that a go and see If I can find a way to delay it starting as the node itself autostarts

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 October 2024 08:29 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/5 "2024-10-27T08:29:54Z")

</div>

How do you start node red on boot?

---

<div class="post-metadata">

**Author:** ![ath0rus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ath0rus/32/95404_2.png) [@ath0rus](https://discourse.nodered.org/u/ath0rus)\
**Post date:** [27 October 2024 10:29 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/6 "2024-10-27T10:29:32Z")

</div>

I have a Ubuntu server laptop that launches Node Red on system startup (with systemctl or PM2 iirc)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 October 2024 11:22 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/7 "2024-10-27T11:22:31Z")

</div>

You can put a delay in the systemd script, or wait for the first timesync to tell you it is connected.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 January 2025 11:22 UTC](https://discourse.nodered.org/t/discord-error-on-reboot-of-device/92677/8 "2025-01-25T11:22:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
