# Node Red Module Not Working

**URL:** <https://forum.inductiveautomation.com/t/node-red-module-not-working/69989>\
**Category:** Maker\
**Tags:** ignition81\
**Created:** [February 17, 2023, 6:31am UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989 "2023-02-17T06:31:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdia/32/87599_2.png) [@mdia](https://forum.inductiveautomation.com/u/mdia)\
**Post date:** [February 17, 2023, 6:31am UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/1 "2023-02-17T06:31:28Z")

</div>

Just updated my gateway to 8.1.25 and the Ignition Node-RED Module faulted. I tried restarting the module, restarting the gateway, and uninstalling and reinstalling the module, but nothing worked. Here's the error:

Exception while starting up module "org.imdc.nodered.IgnitionNodeRED".

```auto
java.lang.Exception: Exception while starting up module "org.imdc.nodered.IgnitionNodeRED".
	at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.startup(ModuleManagerImpl.java:2445)
	at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.startup(ModuleManagerImpl.java:417)
	at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1327)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:301)
	at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:751)
	at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:685)
	at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:544)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/servlet/WebSocketServlet
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
	at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.base/java.net.URLClassLoader.defineClass(Unknown Source)
	at java.base/java.net.URLClassLoader$1.run(Unknown Source)
	at java.base/java.net.URLClassLoader$1.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at org.imdc.nodered.GatewayHook.startup(GatewayHook.java:39)
	at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.startup(ModuleManagerImpl.java:2439)
	... 12 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.servlet.WebSocketServlet
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 26 more

8.1.25 (b2023021409)
Azul Systems, Inc. 11.0.17

```

Module version 1.5.11

Does 8.1.25 not support this module yet?

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [February 17, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/2 "2023-02-17T14:17:06Z")

</div>

It looks like this module might need to be updated with the upgrade to Jetty 10 w/ 8.1.25.

EDIT: Registered [IgnitionModuleDevelopmentCommunity/Ignition-NodeRED#31](https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/31), should be a pretty easy fix of mostly correcting class namespace references.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 17, 2023, 5:08pm UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/3 "2023-02-17T17:08:09Z")

</div>

Merged the PR. 1.15.12 is available here:

> **[Release 1.5.12: Updated servlet references for Jetty 10 ·...](https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/releases/tag/1.5.12)**
>
> Bumped the module version from 1.5.11 to 1.5.12
> Also bumped the module artifact versions from 1.0.0 to 1.1.0
> Set the required Ignition version to 8.1.25 (and made small adjustment to README to help...

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [July 3, 2024, 1:27pm UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/4 "2024-07-03T13:27:52Z")

</div>

I'm getting an interesting error that might be fixed by a more-recent version.  
Currently using Ignition 8.1.31\*\* (full install, license added for node-red) w/ latest [node-red-contrib-ignition-nodes](https://flows.nodered.org/node/node-red-contrib-ignition-nodes) (1.5.10).  
Error received is somewhat ambiguous:

```python
"JSON error: SyntaxError: Unexpected token < in JSON at position 0"

```

A bit of research on the topic... [here](https://www.codeproject.com/Tips/1239019/Unexpected-Token-in-JSON-at-Position).

We have Node-RED installed as snap, so we are limited to the libraries available to the Node-RED Community catalog. I see there are new versions available on [github](https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED).

@Travis.Cox: Any chance you would be able to uprev the node-red-contrib library to the latest (currently 1.5.15)?

\*\* Edit to update Ignition version where problem is observed.

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [July 12, 2024, 12:58pm UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/5 "2024-07-12T12:58:50Z")

</div>

I should've checked the node-red snap earlier (also probably should have placed these comments in a new thread). Luckily, they exposed the packaged npm application as a command. So, updating the Ignition node module was possible with:

```python
cd /var/snap/node-red/current/
sudo node-red.npm update node-red-contrib-ignition-nodes
sudo snap restart node-red

```

Unfortunately, this did not solve my issue above...  
In the end, Tag Provider Read permissions were causing the error.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [August 5, 2024, 5:35pm UTC](https://forum.inductiveautomation.com/t/node-red-module-not-working/69989/6 "2024-08-05T17:35:29Z")

</div>

It appears NodeRED is showing the right version now, 1.5.15:

> **[node-red-contrib-ignition-nodes](https://flows.nodered.org/node/node-red-contrib-ignition-nodes)**
>
> Adds support for reading, writing, and browsing tags in Ignition

That was weird since I did that when the .15 release was out. Sorry for the confusion.
