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

**URL:** <https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204>\
**Category:** General\
**Created:** [25 May 2021 10:21 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204 "2021-05-25T10:21:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzairo](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@dzairo](https://discourse.nodered.org/u/dzairo)\
**Post date:** [25 May 2021 10:21 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204/1 "2021-05-25T10:21:30Z")

</div>

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 :

```auto
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 :

```auto
[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

```

---

<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:** [25 May 2021 10:51 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204/2 "2021-05-25T10:51:40Z")

</div>

Running using nvm and systemd is always a problem - eg see [Running a Node.js application using nvm as a systemd service · GitHub](https://gist.github.com/joepie91/73ce30dd258296bd24af23e9c5f761aa) - Is there a reason you have to use nvm rather than a proper install of nodejs ?

---

<div class="post-metadata">

**Author:** ![dzairo](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@dzairo](https://discourse.nodered.org/u/dzairo)\
**Post date:** [25 May 2021 10:59 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204/3 "2021-05-25T10:59:23Z")

</div>

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.

---

<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:** [24 July 2021 10:59 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-pm2-ok-systemd-not-ok/46204/4 "2021-07-24T10:59:27Z")

</div>

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