# Unable to start gateway

**URL:** <https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670>\
**Category:** Ignition\
**Created:** [November 3, 2021, 12:20pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670 "2021-11-03T12:20:18Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjuyadav95.m](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@manjuyadav95.m](https://forum.inductiveautomation.com/u/manjuyadav95.m)\
**Post date:** [November 3, 2021, 12:20pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/1 "2021-11-03T12:20:18Z")

</div>

@paul-griffith

Gateway is faulted

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/102cabcfd4c0c27153e3e5ba21dad586801c38da.png)

Here, wrapper.log file , plz help me resolve this

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/2/f2d638e2c223dae9c1f931566da214b0c3b05012.png)

---

<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:** [November 3, 2021, 12:36pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/2 "2021-11-03T12:36:34Z")

</div>

Looks like a corrupt named query definition. I recommend calling support.

---

<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:** [November 3, 2021, 12:54pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/3 "2021-11-03T12:54:41Z")

</div>

If you upgrade to a later version of Ignition this will not prevent the gateway from starting.

---

<div class="post-metadata">

**Author:** ![Tony\_Quartier](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@Tony\_Quartier](https://forum.inductiveautomation.com/u/Tony_Quartier)\
**Post date:** [January 5, 2023, 11:29am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/4 "2023-01-05T11:29:15Z")

</div>

Hi,

It seems I have the same issue on our redundant machine.  
Running 8.1.17

Below the wrapper log but is the gateway faulted and not starting because of the S7\_Prod1\_Pack\_L2\_Scan (which is one of the connected PLC's) or because of the history manager?

On the primary the Ignition\_Shared db and that PLC seems to be fine.  
Confused on what to do next now.

Thanks for any advice.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/7/27c58177f2a8892ee36c6119f9a37b5317fcdf0b.png)

---

<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:** [January 5, 2023, 1:44pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/5 "2023-01-05T13:44:21Z")

</div>

IIRC, the big fixes to Ignition redundancy hit in v8.1.21 or .22. Consider upgrading.

---

<div class="post-metadata">

**Author:** ![Tony\_Quartier](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@Tony\_Quartier](https://forum.inductiveautomation.com/u/Tony_Quartier)\
**Post date:** [January 10, 2023, 7:31am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/6 "2023-01-10T07:31:33Z")

</div>

As this is our redundant server, we are still running fine on our Master.  
I'm not really into upgrading the redundant to a new version as we will need to do that also on the master.  
As we are not knowing the problem, it might also happen to the master on restart.  
Thus leaving me with no controls at all in our process area.

So I would rather find the fix for the redundant first and then consider the upgrade ...

---

<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:** [January 10, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/7 "2023-01-10T14:03:09Z")

</div>

I'm pretty sure there's no fix for your current version. You should talk to support, though.

---

<div class="post-metadata">

**Author:** ![Tony\_Quartier](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@Tony\_Quartier](https://forum.inductiveautomation.com/u/Tony_Quartier)\
**Post date:** [January 16, 2023, 8:19am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/8 "2023-01-16T08:19:20Z")

</div>

Meanwhile we did got contact with support and it eventually got solved by a complete re-install of the gateway  
But still not really knowing what was the cause of the problem...

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [June 1, 2023, 1:53am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/9 "2023-06-01T01:53:08Z")

</div>

I've just hit this in the middle of testing and am now reinstalling quickly.

Anyone else have an update on this?

We're running Ignition 8.1.27. I used the ignition.sh commands to stop/start ignition and was met with gateway faulted. From the wrapper log:

> Blockquote  
> INFO | jvm 1 | 2023/06/01 11:45:47 | I [IgnitionGateway] [01:45:47]: Ignition[state=STARTING] ContextState = FAULTED

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [June 1, 2023, 1:55am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/10 "2023-06-01T01:55:36Z")

</div>

Reinstalling - did not work, still faulted with a:

> INFO | jvm 1 | 2023/06/01 11:54:16 | I [IgnitionGateway] [01:54:16]: 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:** [June 1, 2023, 2:02am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/11 "2023-06-01T02:02:06Z")

</div>

Wrapper logs?

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [June 1, 2023, 2:04am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/12 "2023-06-01T02:04:54Z")

</div>

I've figured it out, its an issue with a timer script, do you know the file thats in so I can just delete it? or if you have a clean file with no timer scripts, just so I can get it running and worry after

> INFO | jvm 1 | 2023/06/01 11:54:16 | it.sauronsoftware.cron4j.InvalidPatternException: invalid pattern "0.1 9 \* \* \*". Error parsing minutes field: invalid field "0.1", invalid element "0.1", invalid range, invalid value "0.1", invalid integer value.

---

<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 1, 2023, 2:06am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/13 "2023-06-01T02:06:46Z")

</div>

No, not enough information to locate it, and it's not clear from that one line if that's even the problem.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [June 1, 2023, 2:08am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/14 "2023-06-01T02:08:54Z")

</div>

> [@joshdunstan](#):
>
> 0.1 9 \* \* \*

This tells me it's definitely in my timer script. I've deleted the project, the gateway starts, I'll get you some more intel when I have a moment so it makes more sense.

---

<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 1, 2023, 2:10am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/15 "2023-06-01T02:10:33Z")

</div>

Yes, your timer script is the source of that _INFO_ level log statement.

Is it the reason your gateway won't start? I can't say without seeing the whole log.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [June 1, 2023, 2:20am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/16 "2023-06-01T02:20:53Z")

</div>

Hey Kevin, so I modified a timer script to execute at 9am and a custom minutes of '0.1' minutes, because I wanted it sooner than 60 seconds. The dialog informed me I couldn't do that, so I changed it back to the non-custom, selectable, 1 minute option. It seems the 0.1 cached in the custom option, even though it was unused. This is the only difference today and when I restarted the server it ended up faulted. I won't do that again, promise.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/5931ceb78e2d6458b069ed0e25b460e16e38ec16.png)

To recover I deleted the project folder, gateway came back up, imported a project backup, sorted.

Apologies for the quick and flippant posts, was under the pump.

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

---

<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 1, 2023, 2:32am UTC](https://forum.inductiveautomation.com/t/unable-to-start-gateway/52670/17 "2023-06-01T02:32:21Z")

</div>

No worries, I just needs the logs because with the full error and stack trace in there I can file a bug ticket.
