From fb9d360d3143bc392163b3aa7066a9128d9cd31b Mon Sep 17 00:00:00 2001 From: Luiz Eduardo Carneiro Date: Mon, 14 Mar 2022 12:08:25 -0400 Subject: [PATCH] Special requirements for DietPi node-red installations I wasted several hours investigating the `Error: getaddrinfo -3008` and couldn't solve it with any of the solutions proposed on this repo's issues nor on the dependency (`mdns` repo)[https://github.com/agnat/node_mdns]. In the end, it boiled down to DietP's minimalistic approach to default packages that don't even provide `avahi-daemon` out of the box (as you need to install it with `dietpi-software`) and looks like this wasn't enough for this node to work, I needed an extra prerequisite lib: `libnss-mdns`. I didn't try uninstalling `libavahi-compat-libdnssd-dev` or `libudev-dev` to check if those are not needed for DietPi installations, but what solved in my case was installing this extra package. I hope it helps someone in the future --- io/mdns/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/io/mdns/README.md b/io/mdns/README.md index 0d33883d4..1eac57066 100644 --- a/io/mdns/README.md +++ b/io/mdns/README.md @@ -14,6 +14,15 @@ please read the [install instructions](https://www.npmjs.com/package/mdns) for t For Debian / Ubuntu this requires installing sudo apt-get install libavahi-compat-libdnssd-dev libudev-dev + +> For DietPi installations, if you encounter this error when executing the node +> +> Error: getaddrinfo -3008 +> +> You may need to install `libnss-mdns` as well +> +> sudo apt-get install libnss-mdns + Install -------