# Gateway Faulted 8.1

**URL:** <https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 26, 2021, 1:23am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319 "2021-10-26T01:23:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![user83](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@user83](https://forum.inductiveautomation.com/u/user83)\
**Post date:** [October 26, 2021, 1:23am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/1 "2021-10-26T01:23:43Z")

</div>

Hi All,

I’m getting a “Ignition Gateway is FAULTED” message after restarting the gateway. Any help would be appreciated.

This is the end of the wrapper log file, but i can’t make much sense of it:

INFO | jvm 3 | 2021/10/25 21:15:32 | E [IgnitionGateway] [01:15:32]: Error during context startup.  
INFO | jvm 3 | 2021/10/25 21:15:32 | java.lang.NullPointerException: null  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.io.ByteArrayInputStream.(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:248)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.ArrayList.forEach(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.(NamedQueryExecutor.java:76)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager$NamedQueryLifeCycle.onStartup(GatewayNamedQueryManager.java:326)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle.onStartup(ProjectLifecycle.java:38)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.maybeStartLifecycle(ProjectLifecycleFactory.java:234)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$projectAdded$0(ProjectLifecycleFactory.java:124)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.Optional.ifPresent(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectAdded(ProjectLifecycleFactory.java:124)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.ArrayList.forEach(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory.onStartup(ProjectLifecycleFactory.java:47)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager.onStartup(GatewayNamedQueryManager.java:57)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1113)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:724)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:658)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:538)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | at java.base/java.lang.Thread.run(Unknown Source)  
INFO | jvm 3 | 2021/10/25 21:15:32 | I [IgnitionGateway] [01:15:32]: Ignition[state=STARTING] ContextState = FAULTED

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 26, 2021, 1:29am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/2 "2021-10-26T01:29:57Z")

</div>

Did you import a gateway backup from a later version of Ignition into the version you’re on now?

What version of Ignition is this?

---

<div class="post-metadata">

**Author:** ![user83](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@user83](https://forum.inductiveautomation.com/u/user83)\
**Post date:** [October 26, 2021, 1:31am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/3 "2021-10-26T01:31:54Z")

</div>

No, this was a gateway that was working yesterday. It was restarted in an attempt to troubleshoot a different problem (OPC devices not connecting).

This is version 8.1.7

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 26, 2021, 1:32am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/4 "2021-10-26T01:32:59Z")

</div>

The quickest fix here is probably just an upgrade to the latest 8.1.x version unless you can track down the named query resource on the filesystem that happens to be causing this error and delete it.

---

<div class="post-metadata">

**Author:** ![user83](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@user83](https://forum.inductiveautomation.com/u/user83)\
**Post date:** [October 26, 2021, 1:40am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/5 "2021-10-26T01:40:02Z")

</div>

How would i go about tracking down the named query resource?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 26, 2021, 1:41am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/6 "2021-10-26T01:41:26Z")

</div>

I don’t know really. You might be able to scour the projects directory for 0kb resources, but there’s nothing in the logs indicating the path.

---

<div class="post-metadata">

**Author:** ![user83](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@user83](https://forum.inductiveautomation.com/u/user83)\
**Post date:** [October 26, 2021, 2:34am UTC](https://forum.inductiveautomation.com/t/gateway-faulted-8-1/52319/7 "2021-10-26T02:34:39Z")

</div>

Updating from 8.1.7 to 8.1.11 seemed to fix the issue.

I was unable to create a gateway backup when doing the update but so far it seems like I didn’t lose anything.

Thanks for your help!
