# Gateway fault on startup

**URL:** <https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966>\
**Category:** Ignition\
**Created:** [August 16, 2021, 4:08pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966 "2021-08-16T16:08:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildBill](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@WildBill](https://forum.inductiveautomation.com/u/WildBill)\
**Post date:** [August 16, 2021, 4:08pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/1 "2021-08-16T16:08:23Z")

</div>

I was importing Ignition Exchange Projects and something broke. I could really use help getting the GW backup so I don’t loose work

Is there away to disable all DB connections and store and forward. From gateway config or cmd?

```auto
INFO | jvm 1 | 2021/08/16 08:55:30 | java.lang.NullPointerException: null
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.io.ByteArrayInputStream.<init>(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:248)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.<init>(NamedQueryExecutor.java:76)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager$NamedQueryLifeCycle.onStartup(GatewayNamedQueryManager.java:326)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle.onStartup(ProjectLifecycle.java:38)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.maybeStartLifecycle(ProjectLifecycleFactory.java:234)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$projectAdded$0(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.Optional.ifPresent(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectAdded(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory.onStartup(ProjectLifecycleFactory.java:47)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager.onStartup(GatewayNamedQueryManager.java:57)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1113)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:724)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:658)
INFO | jvm 1 | 2021/08/16 08:55:30 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:538)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2021/08/16 08:55:30 | I [IgnitionGateway] [13:55:30]: Ignition[state=STARTING] ContextState = FAULTED 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [o.e.j.s.AbstractConnector] [15:49:27]: Stopped ServerConnector@38d242b0{HTTP/1.1,[http/1.1]}{0.0.0.0:8088} 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [o.e.j.s.AbstractConnector] [15:49:27]: Stopped ServerConnector@4a720d13{SSL,[ssl, http/1.1]}{0.0.0.0:8060} 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [o.e.j.s.session] [15:49:27]: node0 Stopped scavenging 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [IgnitionGateway] [15:49:27]: Ignition[state=FAULTED] ContextState = STOPPING 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [IgnitionGateway] [15:49:27]: Ignition Gateway shutting down... 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [g.ModuleManager] [15:49:27]: ModuleManager shutting down... 
INFO | jvm 1 | 2021/08/16 10:49:27 | I [g.ModuleManager] [15:49:27]: ModuleManager shut down in 8ms 
INFO | jvm 1 | 2021/08/16 10:49:27 | W [C.BasicExecutionEngine] [15:49:27]: Tried to unregister non existent unit [gatewayareanetworkconnectionmanager connection monitor]. 
INFO | jvm 1 | 2021/08/16 10:49:27 | E [IgnitionGateway] [15:49:27]: Error shutting down GatewayNetworkManager. 
INFO | jvm 1 | 2021/08/16 10:49:27 | java.lang.NullPointerException: null

```

---

<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:** [August 16, 2021, 4:23pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/2 "2021-08-16T16:23:50Z")

</div>

What version of Ignition is this? Do you have a gateway backup saved already? Or at least the config.idb file saved?

---

<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:** [August 16, 2021, 4:25pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/3 "2021-08-16T16:25:57Z")

</div>

Also - what resource were you importing?

Right now my best guess is that it contained a Named Query serialized in the new format but you’ve imported it into a pre-8.1.6 Ignition.

---

<div class="post-metadata">

**Author:** ![WildBill](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@WildBill](https://forum.inductiveautomation.com/u/WildBill)\
**Post date:** [August 16, 2021, 4:32pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/4 "2021-08-16T16:32:35Z")

</div>

I do have a backup. its 8.1.5. It has some projects I guess I can re-import to a clean b/u

I learned my lesson. It had been awhile before a made backup then I just started importing these projects. I did manage to take a backup before I restarted the gateway. So hopefully I will be able to get my projects back from it?

I imported a user management project, tag dashboard and diagnostics dashboard…

---

<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:** [August 16, 2021, 4:34pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/5 "2021-08-16T16:34:42Z")

</div>

I think if you just upgrade to 8.1.9 it’ll start right up…

Yes, if you have a backup that will include your projects.

---

<div class="post-metadata">

**Author:** ![WildBill](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@WildBill](https://forum.inductiveautomation.com/u/WildBill)\
**Post date:** [August 16, 2021, 4:36pm UTC](https://forum.inductiveautomation.com/t/gateway-fault-on-startup/49966/6 "2021-08-16T16:36:31Z")

</div>

Oh nice I was able to just delete some named queries from one of the imported projs  
and it started up… Thanks dude!!!
