# Systemd start-depencies and network access

**URL:** <https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211>\
**Category:** General\
**Created:** [24 February 2020 20:18 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211 "2020-02-24T20:18:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkauli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mkauli/32/3767_2.png) [@mkauli](https://discourse.nodered.org/u/mkauli)\
**Post date:** [24 February 2020 20:18 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/1 "2020-02-24T20:18:46Z")

</div>

I had problems using knx-easy - the problem was that knx-easy did't worked direct after a restart. The KNX access only worked after an node-red-restart.

My guess was that node-red starts too fast and wants to access the network too early. To verify this I extended the nodered.service file in the section [Unit] with the line "After=syslog.target network.target".

After that change everything works fine, reading and writing from KNX using the node-red-contrib-knx-easy node receive and transmit KNX messages.

My system is:  
Raspberry Pi 4  
Node-Red revision 1.0.3

Is [https://github.com/node-red/node-red](https://github.com/node-red/node-red) the correct place to report a bug?

Best regards  
Martin

---

<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:** [24 February 2020 20:25 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/2 "2020-02-24T20:25:13Z")

</div>

There are those who don’t need a network so it’s not necessarily a bug

---

<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:** [24 February 2020 20:33 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/3 "2020-02-24T20:33:46Z")

</div>

I think that might be considered a bug in the knx node, that it does not retry if the network is not ready when it starts up.  
Consider the case when the network cable was unplugged for example. Do you want to hold the whole of node red just because one node cannot do anything?

---

<div class="post-metadata">

**Author:** ![mkauli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mkauli/32/3767_2.png) [@mkauli](https://discourse.nodered.org/u/mkauli)\
**Post date:** [25 February 2020 09:25 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/4 "2020-02-25T09:25:21Z")

</div>

Hi dceejay and Colin,

you are right, I agree with you. For my installation the solution above is a acceptable workaround, but it is not a general solution.

I write an issue in the node-red-contrib-knx-easy GitHub.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [25 February 2020 09:58 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/5 "2020-02-25T09:58:48Z")

</div>

There is an option in raspi-config - wait for network

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [25 February 2020 12:06 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/6 "2020-02-25T12:06:40Z")

</div>

Yes, but that isn't a reliable solution either.

As @Colin said, network failures can occur at any time.  
Such cases need to be properly handled by the software, in this case the KNX node. So getting in contact with the developer would be the first place to start.

---

<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 April 2020 12:06 UTC](https://discourse.nodered.org/t/systemd-start-depencies-and-network-access/22211/7 "2020-04-25T12:06:52Z")

</div>

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