Node red suddenly not starting because of g++ error

Did not update anything on HA or Node red side. MY automation stopped working. I cant get node red to start succesfully again. Even after going back a few days to a working save (but again, I havent updated in a week so nothing should have changed anyway)

I took out the g++ line in my configuration and it loaded fine, but confused as to why its causing problems now.

image

[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 9.1.3
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.0  (aarch64 / odroid-n2)
 Home Assistant Core: 2021.6.3
[cont-init.d] 00-banner.sh: exited 0.
 Home Assistant Supervisor: 2021.06.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] customizations.sh: executing... 
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz
v3.13.5-194-g1274644b64 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
v3.13.5-187-g1477654ee3 [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
OK: 13742 distinct packages available
(1/1) Installing make (4.3-r0)
Executing busybox-1.32.1-r5.trigger
OK: 140 MiB in 47 packages
ERROR: unable to select packages:
  musl-1.2.2-r0:
    breaks: musl-dev-1.2.2-r1[musl=1.2.2-r1]
    satisfies: world[musl=1.2.2-r0]
               apk-tools-2.12.4-r0[musl>=1.2]
               apk-tools-2.12.4-r0[so:libc.musl-aarch64.so.1]
               nginx-1.18.0-r13[so:libc.musl-aarch64.so.1]
               gcc-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               g++-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               tzdata-2021a-r0[so:libc.musl-aarch64.so.1]
               patch-2.7.6-r6[so:libc.musl-aarch64.so.1]
               bash-5.1.0-r0[so:libc.musl-aarch64.so.1]
               ca-certificates-20191127-r5[so:libc.musl-aarch64.so.1]
               python3-3.8.10-r0[so:libc.musl-aarch64.so.1]
               binutils-2.35.2-r1[so:libc.musl-aarch64.so.1]
               busybox-1.32.1-r5[so:libc.musl-aarch64.so.1]
               libffi-3.3-r2[so:libc.musl-aarch64.so.1]
               openssh-client-8.4_p1-r3[so:libc.musl-aarch64.so.1]
               sqlite-libs-3.34.1-r0[so:libc.musl-aarch64.so.1]
               curl-7.76.1-r0[so:libc.musl-aarch64.so.1]
               ncurses-libs-6.2_p20210109-r0[so:libc.musl-aarch64.so.1]
               expat-2.2.10-r1[so:libc.musl-aarch64.so.1]
               git-2.30.2-r0[so:libc.musl-aarch64.so.1]
               musl-utils-1.2.2-r0[so:libc.musl-aarch64.so.1]
               nghttp2-libs-1.42.0-r1[so:libc.musl-aarch64.so.1]
               nodejs-14.16.1-r1[so:libc.musl-aarch64.so.1]
               gdbm-1.19-r0[so:libc.musl-aarch64.so.1]
               libstdc++-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               libbz2-1.0.8-r1[so:libc.musl-aarch64.so.1]
               brotli-libs-1.0.9-r3[so:libc.musl-aarch64.so.1]
               libcurl-7.76.1-r0[so:libc.musl-aarch64.so.1]
               mpc1-1.2.0-r0[so:libc.musl-aarch64.so.1]
               libgphobos-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               pcre-8.44-r0[so:libc.musl-aarch64.so.1]
               oniguruma-6.9.6-r0[so:libc.musl-aarch64.so.1]
               mpfr4-4.1.0-r0[so:libc.musl-aarch64.so.1]
               zlib-1.2.11-r3[so:libc.musl-aarch64.so.1]
               libgomp-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               readline-8.1.0-r0[so:libc.musl-aarch64.so.1]
               make-4.3-r0[so:libc.musl-aarch64.so.1]
               libedit-20191231.3.1-r1[so:libc.musl-aarch64.so.1]
               libgcc-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               libssl1.1-1.1.1k-r0[so:libc.musl-aarch64.so.1]
               alpine-baselayout-3.2.0-r8[so:libc.musl-aarch64.so.1]
               libcrypto1.1-1.1.1k-r0[so:libc.musl-aarch64.so.1]
               libatomic-10.2.1_pre1-r3[so:libc.musl-aarch64.so.1]
               xz-libs-5.2.5-r0[so:libc.musl-aarch64.so.1]
               openssh-keygen-8.4_p1-r3[so:libc.musl-aarch64.so.1]
               pcre2-10.36-r0[so:libc.musl-aarch64.so.1]
               c-ares-1.17.1-r1[so:libc.musl-aarch64.so.1]
               scanelf-1.2.8-r0[so:libc.musl-aarch64.so.1]
               gmp-6.2.1-r0[so:libc.musl-aarch64.so.1]
               jq-1.6-r1[so:libc.musl-aarch64.so.1]
               isl22-0.22-r0[so:libc.musl-aarch64.so.1]
[21:25:21] FATAL: Failed installing system package g++
[cont-init.d] customizations.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Same for me. Stopped working a couple of hours ago. On two different installations (one at home and one at our summer-house). Same error in as in your log-file. I updated the HA OS to 6.0 yesterday, and NodeRED did still work after the update. The only thing happened for the past hours (I think) is that Supervisor got updated to 2021.06.0. Not sure if that could be related to the issues in NodeRED though…
I’m still looking for a way to figure out at at what time Supervisor got updated…

Ah I was using g++ in appdaemon and had a similar problem. In my case I wound up removing it and everything complied, go figure. Anyway looks like it’s asking for musl. If that’s not in your package list add it.

The way to trouble shoot this is to head over to alpinelinux.org look for the problem package. It will show a list of dependencies, add those packages to your list and restart.

Thanks!! :smiley:

I updated node red to 9.1.4 , put g++ back in the config, and it booted fine.