After snap update to 1.0.4 node-red stops working

after automatic snap node-red update from 1.0.3 to version 1.0.4 node-red stops working.

syslog is flooded with

Feb 27 19:15:40 unipi node-red.node-red[2960]: /snap/node-red/549/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

$ apt search libatomic
libatomic1/oldstable,now 6.3.0-18+rpi1+deb9u1 armhf [installed,automatic]
support library providing __atomic built-in functions

using unipian os from unipi.
a revert to 1.0.3 helps to get node-red running again (snap revert node-red)

using node-red on 3 units with unipi hardware, 2 devices get the snap update to 1.0.4 and both stopped working (same message)
3rd unit uses older version 0.20.8 (devmode) without trouble

Thanks will investigate

hope its usefull for investigation:

pi@L203-snXXX:~ $ ls -l /usr/lib/arm-linux-gnueabihf/libatomic.so.1
lrwxrwxrwx 1 root root 18 Dec 19  2018 /usr/lib/arm-linux-gnueabihf/libatomic.so.1 -> libatomic.so.1.2.0
pi@L203-snXXX:~ $ uname -a
Linux L203-snXXX 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
pi@L203-snXXX:~ $ uname -p
unknown
pi@L203-snXXX:~ $ uname -i
unknown
pi@L203-snXXX:~ $ find /|grep libatomic.so.1
/usr/lib/arm-linux-gnueabihf/libatomic.so.1
/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0

Hardware is Raspberry Pi 3

Did you try apt-get install libatomic1
to see if adding the library helps ?

it is installed.
nothing changed since revert from 1.0.4 to 1.0.3

in post above the libs are there.
yesterday i have cloned the microsd, if this could help

pi@M203-snXXX:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:3 https://deb.nodesource.com/node_10.x stretch InRelease
Get:4 https://repo.unipi.technology/debian stretch InRelease [23.4 kB]
Hit:5 https://packages.grafana.com/oss/deb stable InRelease
Fetched 63.8 kB in 2s (23.5 kB/s)
Reading package lists... Done
pi@M203-snXXX:~ $ sudo apt-get install libatomic1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libatomic1 is already the newest version (6.3.0-18+rpi1+deb9u1).
libatomic1 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
pi@M203-snXXX:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  curl evok file git git-man grafana libarchive13 libcurl3 libcurl3-gnutls
  libcurl4-openssl-dev libfreetype6 libfreetype6-dev libglib2.0-0
  libglib2.0-data libidn11 libidn11-dev libmagic-mgc libmagic1
  libmariadbclient18 libperl5.24 libsasl2-2 libsasl2-dev libsasl2-modules
  libsasl2-modules-db libssl-dev libssl-doc libssl1.0.2 libssl1.1 libwbclient0
  libxslt1.1 neuron-kernel nodejs openssl perl perl-base perl-modules-5.24
  samba-common sudo unipi-common unipi-firmware unipi-firmware-tools
  unipi-modbus-tools
42 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 89.3 MB of archives.
After this operation, 9,391 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

new day, new update to 1.0.5, same problem on 2 devices

2020-04-22T13:17:20Z systemd[1]: Stopping Service for snap application node-red.node-red...
2020-04-22T13:17:20Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:27Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:27Z /usr/bin/snap[9532]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:28Z node-red.node-red[9532]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:28Z node-red.node-red[9532]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:28Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:28Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:28Z /usr/bin/snap[9564]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:28Z node-red.node-red[9564]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:28Z node-red.node-red[9564]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:28Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:28Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:28Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:28Z /usr/bin/snap[9591]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:29Z node-red.node-red[9591]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:29Z node-red.node-red[9591]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:29Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:29Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:29Z /usr/bin/snap[9629]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:29Z node-red.node-red[9629]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:29Z node-red.node-red[9629]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:29Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:29Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:29Z /usr/bin/snap[9653]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:29Z node-red.node-red[9653]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:29Z node-red.node-red[9653]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:29Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:29Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:29Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:30Z /usr/bin/snap[9677]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:30Z node-red.node-red[9677]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:30Z node-red.node-red[9677]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:30Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:30Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:30Z /usr/bin/snap[9701]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:30Z node-red.node-red[9701]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:30Z node-red.node-red[9701]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:30Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:30Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T13:17:30Z /usr/bin/snap[9724]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T13:17:30Z node-red.node-red[9724]: NOW STARTING NODE-RED : /snap/node-red/566/bin/node-red -u /root/snap/node-red/566 on port 1880
2020-04-22T13:17:30Z node-red.node-red[9724]: /snap/node-red/566/bin/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Main process exited, code=exited, status=127/n/a
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Service hold-off time over, scheduling restart.
2020-04-22T13:17:30Z systemd[1]: Stopped Service for snap application node-red.node-red.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Start request repeated too quickly.
2020-04-22T13:17:30Z systemd[1]: Failed to start Service for snap application node-red.node-red.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Unit entered failed state.
2020-04-22T13:17:30Z systemd[1]: snap.node-red.node-red.service: Failed with result 'exit-code'.

snap info node-red:

pi@L203-snXXX:~ $ snap info node-red
name:      node-red
summary:   Low-code programming for event-driven applications
publisher: Node-RED-Team (noderedteam✓)
contact:   https://discourse.nodered.org/
license:   unset
description: |
  Node-RED is a Flow Based Programming tool written in node.js and using a web front end for wiring
  together hardware devices, APIs and online services in new and interesting ways.

  Many extra nodes are available (see http://flows.nodered.org), and can be installed via the Menu -
  Manage Palette option. Due to the restrictions of snaps nodes that require extra access to files,
  ports, or have a binary component, may NOT work or install correctly.

  For more information see the
  [README](https://github.com/dceejay/nodered.snap/blob/master/README.md).

  Now based on Core18.

  The edge channel contains auto-built versions of the  package. The beta channel may contain
  beta/next versions (when available).
commands:
  - node-red.desktop-launch
  - node-red.npm
services:
  node-red: simple, enabled, inactive
snap-id:      lwGTfxA0S0e61kiyMAuXQkq6Tvni0dYm
tracking:     stable
refresh-date: today at 15:17 CEST
channels:
  stable:    1.0.5 2020-04-22 (566) 32MB -
  candidate: ↑
  beta:      ↑
  edge:      1.0.5 2020-04-22 (566) 32MB -
installed:   1.0.5            (566) 32MB -

so i revert the new snap package (snap revert node-red)
now on 1.0.4 (???) and runs fine without libatomic.so.1 error

pi@L203-snXXX:~ $ snap info node-red
name:      node-red
summary:   Low-code programming for event-driven applications
publisher: Node-RED-Team (noderedteam✓)
contact:   https://discourse.nodered.org/
license:   unset
description: |
  Node-RED is a Flow Based Programming tool written in node.js and using a web front end for wiring
  together hardware devices, APIs and online services in new and interesting ways.

  Many extra nodes are available (see http://flows.nodered.org), and can be installed via the Menu -
  Manage Palette option. Due to the restrictions of snaps nodes that require extra access to files,
  ports, or have a binary component, may NOT work or install correctly.

  For more information see the
  [README](https://github.com/dceejay/nodered.snap/blob/master/README.md).

  Now based on Core18.

  The edge channel contains auto-built versions of the  package. The beta channel may contain
  beta/next versions (when available).
commands:
  - node-red.desktop-launch
  - node-red.npm
services:
  node-red: simple, enabled, active
snap-id:      lwGTfxA0S0e61kiyMAuXQkq6Tvni0dYm
tracking:     stable
refresh-date: today at 20:19 CEST
channels:
  stable:    1.0.5 2020-04-22 (566) 32MB -
  candidate: ↑
  beta:      ↑
  edge:      1.0.5 2020-04-22 (566) 32MB -
installed:   1.0.4            (560) 31MB -
2020-04-22T18:19:21Z systemd[1]: Started Service for snap application node-red.node-red.
2020-04-22T18:19:21Z /usr/bin/snap[10147]: cmd.go:105: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
2020-04-22T18:19:22Z node-red.node-red[10147]: NOW STARTING NODE-RED : /snap/node-red/560/bin/node-red -u /root/snap/node-red/560 on port 1880
2020-04-22T18:19:24Z node-red.node-red[10147]: 22 Apr 20:19:24 - [info]
2020-04-22T18:19:24Z node-red.node-red[10147]: Welcome to Node-RED
2020-04-22T18:19:24Z node-red.node-red[10147]: ===================
2020-04-22T18:19:24Z node-red.node-red[10147]: 22 Apr 20:19:24 - [info] Node-RED version: v1.0.4
2020-04-22T18:19:24Z node-red.node-red[10147]: 22 Apr 20:19:24 - [info] Node.js  version: v10.19.0
2020-04-22T18:19:24Z node-red.node-red[10147]: 22 Apr 20:19:24 - [info] Linux 4.19.66-v7+ arm LE
2020-04-22T18:19:25Z node-red.node-red[10147]: 22 Apr 20:19:25 - [info] Loading palette nodes
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [info] Settings file  : /root/snap/node-red/560/settings.js
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [info] Context store  : 'default' [module=memory]
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [info] User directory : /root/snap/node-red/560
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [warn] Projects disabled : editorTheme.projects.enabled=false
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [info] Flows file     : /root/snap/node-red/560/flows.json
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [info] Server now running at http://127.0.0.1:1880/
2020-04-22T18:19:28Z node-red.node-red[10147]: 22 Apr 20:19:28 - [warn]
2020-04-22T18:19:28Z node-red.node-red[10147]: ---------------------------------------------------------------------

have reverted it to node10

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