Waiting for missing types to be registered pm2 OK , systemd not OK

Hi all.
For long time I again start my OrangePi Zero to play with Node-Red.
I try control Input or Output for Arduino by Firmata .
What is problem.
If login to my OrangePi (not root) and type to command node-red , then start server .
In my browser open IP address with port , by Manage palette install Johnny 5 nodes .
all work good . can control led , read input .
Then manage auto start NodeRed after OrangePi restart , use systemd .

Now problem , after reboot node red start , but missing Manage palette button , missing my node Johnyy 5 .
if ask for status : systemctl status node-red
show this :

May 25 11:27:07 orangepizero node-red[3412]: your credentials.
May 25 11:27:07 orangepizero node-red[3412]: You should set your own key using the 'credentialSecret' option in
May 25 11:27:07 orangepizero node-red[3412]: your settings file. Node-RED will then re-encrypt your credentials
May 25 11:27:07 orangepizero node-red[3412]: file using your chosen key the next time you deploy a change.
May 25 11:27:07 orangepizero node-red[3412]: ---------------------------------------------------------------------
May 25 11:27:07 orangepizero node-red[3412]: 25 May 11:27:07 - [info] Waiting for missing types to be registered:
May 25 11:27:07 orangepizero node-red[3412]: 25 May 11:27:07 - [info]  - ioplugin
May 25 11:27:07 orangepizero node-red[3412]: 25 May 11:27:07 - [info]  - gpio out
May 25 11:27:07 orangepizero node-red[3412]: 25 May 11:27:07 - [info]  - gpio in
May 25 11:27:07 orangepizero node-red[3412]: 25 May 11:27:07 - [info] Server now running at http://127.0.0.1:1880/

if only type and start node-red , all is OK , if stat by systemd not .

But if manage auto start by pm2 , then all is OK .

Here is my systemd file :

[Unit]
Description=Node-RED graphical event wiring tool
Wants=network.target
Documentation=http://nodered.org/

[Service]
Type=simple
# Run as normal pi user - change to the user name you wish to run Node-RED as
User=dzairo
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
Environment="NODE_RED_OPTIONS=-v"
ExecStart=/home/dzairo/.nvm/versions/node/v12.16.1/bin/node-red

[Install]
WantedBy=multi-user.target

Running using nvm and systemd is always a problem - eg see Running a Node.js application using nvm as a systemd service · GitHub - Is there a reason you have to use nvm rather than a proper install of nodejs ?

Thanks for info.
Few year before I find some tutorial how to install NodeRed to OrangePi Zero and I use this .
Don't search why us or not use nvm .. .
using PM2 working then use this .

regards.

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