# Gateway 8.0.17 faulted

**URL:** <https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430>\
**Category:** Ignition\
**Created:** [June 6, 2022, 11:18pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430 "2022-06-06T23:18:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:18pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/1 "2022-06-06T23:18:57Z")

</div>

Hi.

Can anyone help me with this one?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/6/4660336918cfcc44ffa5a80c8a221b2f6314fc7a.png)

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:19pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/2 "2022-06-06T23:19:13Z")

</div>

Redundant gateway, both are faulted.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 6, 2022, 11:32pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/3 "2022-06-06T23:32:48Z")

</div>

Unclear. Share the entire wrapper log with support.

Share what else might have changed. Deserialization errors are typically caused by module removals or attempts to restore a backup from a newer system.

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:35pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/4 "2022-06-06T23:35:31Z")

</div>

[wrapper.log](https://forum.inductiveautomation.com/uploads/short-url/jzGGbGg3lCkzqQZqjIF3mG6snbx.log) (7.9 MB)

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:38pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/5 "2022-06-06T23:38:08Z")

</div>

The problem happened when I was restoring a database to a remote computer.

- The restoration process got interrupted by a network problem. Probably caused by overload, I noticed the NIC was 98% at the time.
- the same network problem made my OPC connections fault and I could not restore them.
- Finally I restarted the server and I got the FAULTED message.

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:38pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/6 "2022-06-06T23:38:45Z")

</div>

Any other file that I can share?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 6, 2022, 11:45pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/7 "2022-06-06T23:45:14Z")

</div>

No. There’s some truly evil badness going on there. I don’t understand how a PostgreSQL object instance could have gotten serialized into the internal DB, but it certainly cannot be extracted. On top of that, there’s an infinite recursion bug in the OPC stack somewhere. You really need IA support to look over your shoulder. Or revert to your last know good gateway backup and wash your hands of the situation.

And it’s an end-of-life Ignition version. ):

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 6, 2022, 11:57pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/8 "2022-06-06T23:57:18Z")

</div>

Thank you very much! I am on the phone with tech support now.

---

<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:** [June 7, 2022, 12:32pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/9 "2022-06-07T12:32:31Z")

</div>

Lots of issues in the logs, but ultimately the startup failure looks like this:

```auto
| java.lang.NullPointerException: null
| at java.base/java.io.ByteArrayInputStream.<init>(Unknown Source)
| at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:241)
| at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)
| at java.base/java.util.ArrayList.forEach(Unknown Source)
| at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)
| at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)
| at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.<init>(NamedQueryExecutor.java:76)
| at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager$NamedQueryLifeCycle.onStartup(GatewayNamedQueryManager.java:326)
| at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle.onStartup(ProjectLifecycle.java:38)
| at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
| at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.maybeStartLifecycle(ProjectLifecycleFactory.java:234)
| at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$projectAdded$0(ProjectLifecycleFactory.java:124)
| at java.base/java.util.Optional.ifPresent(Unknown Source)
| at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectAdded(ProjectLifecycleFactory.java:124)
| at java.base/java.util.ArrayList.forEach(Unknown Source)
| at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory.onStartup(ProjectLifecycleFactory.java:47)
| at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
| at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager.onStartup(GatewayNamedQueryManager.java:57)
| at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
| at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1094)
| at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)
| at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:710)
| at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:644)
| at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:518)
| 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)

```

Did you restore a gateway backup from a newer version of Ignition?

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [June 7, 2022, 1:32pm UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/10 "2022-06-07T13:32:06Z")

</div>

Not sure if you were able to get this resolved already, but as Kevin was alluding to this error typically occurs after moving named queries from 8.1.7 or later to a pre-8.1.7 gateway. To resolve this you can either upgrade your gateways, or delete any named queries that use .sql files instead of .bin. In your case, it looks like the last project being loaded was SPREE\_H6\_LSS, so I would start with named queries in that project.

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 8, 2022, 7:29am UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/11 "2022-06-08T07:29:20Z")

</div>

Hi.

Thank you very much all of you. I have had help from the local tech support. I must say they were superb and brought both gateways back to life.

You guys here also helped a lot. Your messages were spot-on. I have been importing named queries developed on 8.1 from other projects into this one. Those queries were removed and then rewritten in the 8.0.17 designer.

The system is up and running.

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 8, 2022, 7:30am UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/12 "2022-06-08T07:30:48Z")

</div>

Hi Kevin.

Thank you! The tech support helped me remove some queries that I imported from a system running on 8.1.7.

---

<div class="post-metadata">

**Author:** ![rcarrilhof](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcarrilhof/32/22036_2.png) [@rcarrilhof](https://forum.inductiveautomation.com/u/rcarrilhof)\
**Post date:** [June 8, 2022, 7:31am UTC](https://forum.inductiveautomation.com/t/gateway-8-0-17-faulted/60430/13 "2022-06-08T07:31:54Z")

</div>

Hi. Spot on! Thank you!
