Hi All,
Can anyone help me. I'm using 8.0.16, it suddenly faulty. I try to search solution in this forum and try some suggested solution but the gateway still remain faulty.
Thanks
Hi All,
Can anyone help me. I'm using 8.0.16, it suddenly faulty. I try to search solution in this forum and try some suggested solution but the gateway still remain faulty.
Thanks
Did you check the log file?
What does it says there?
Find it in
C:\Program Files\Inductive Automation\Ignition\logs
You will have to look through that wrapper log file for the word FAULTED
, closest to the end of the file. Then look at (or post here) the errors leading up to that. If you post here, be sure to use the "preformatted text" styling in the comment editor.
We would need more information. Search for something like "FAULTED" or something similar. Normally is at the end of the file.
EDIT: Exactly like pturmel said (i just read the post)
Hi,
Found several FAULTED error in the log.
INFO | jvm 1 | 2025/02/11 22:18:41 | E [IgnitionGateway ] [14:18:41]: Error during context startup.
INFO | jvm 1 | 2025/02/11 22:18:41 | java.lang.NullPointerException: null
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.io.ByteArrayInputStream.<init>(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:241)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.<init>(NamedQueryExecutor.java:76)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager$NamedQueryLifeCycle.onStartup(GatewayNamedQueryManager.java:326)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycle.onStartup(ProjectLifecycle.java:38)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.maybeStartLifecycle(ProjectLifecycleFactory.java:234)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.lambda$projectAdded$0(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.Optional.ifPresent(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory$1.projectAdded(ProjectLifecycleFactory.java:124)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.project.ProjectLifecycleFactory.onStartup(ProjectLifecycleFactory.java:47)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.GatewayNamedQueryManager.onStartup(GatewayNamedQueryManager.java:57)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle.startup(AbstractLifecycle.java:18)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1094)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:710)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:644)
INFO | jvm 1 | 2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:518)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2025/02/11 22:18:41 | I [IgnitionGateway ] [14:18:41]: Ignition[state=STARTING] ContextState = FAULTED
INFO | jvm 1 | 2025/02/11 22:18:42 | W [StartupLogger ] [14:18:42]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:42 | W [StartupLogger ] [14:18:42]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:42 | W [StartupLogger ] [14:18:42]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:43 | W [StartupLogger ] [14:18:43]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:43 | W [StartupLogger ] [14:18:43]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:44 | W [StartupLogger ] [14:18:44]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:44 | W [StartupLogger ] [14:18:44]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:44 | E [LegacyScripting[system_util_tag]] [14:18:44]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:44 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:44 |
INFO | jvm 1 | 2025/02/11 22:18:44 | E [LegacyScripting[system_util_tag]] [14:18:44]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:44 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:44 |
INFO | jvm 1 | 2025/02/11 22:18:44 | W [StartupLogger ] [14:18:44]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:44 | E [LegacyScripting[system_util_tag]] [14:18:44]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:44 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:44 |
INFO | jvm 1 | 2025/02/11 22:18:44 | E [LegacyScripting[system_util_tag]] [14:18:44]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:44 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:44 |
INFO | jvm 1 | 2025/02/11 22:18:45 | W [StartupLogger ] [14:18:45]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:45 | W [StartupLogger ] [14:18:45]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:46 | W [StartupLogger ] [14:18:46]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:46 | W [StartupLogger ] [14:18:46]: gateway startup trigger
INFO | jvm 1 | 2025/02/11 22:18:46 | E [LegacyScripting[system_util_tag]] [14:18:46]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:46 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:46 |
INFO | jvm 1 | 2025/02/11 22:18:46 | E [LegacyScripting[system_util_tag]] [14:18:46]: Error writing tags
INFO | jvm 1 | 2025/02/11 22:18:46 | Error writing to tag ...: Bad_NotFound
INFO | jvm 1 | 2025/02/11 22:18:46 |
INFO | jvm 1 | 2025/02/11 22:18:46 | W [Get Http Client ] [14:18:46]: httpClient not exist
INFO | jvm 1 | 2025/02/11 22:18:46 | I [S.S.TagHistoryDatasourceSink ] [14:18:46]: Tag history tables verified successfully.
Thanks
Please upload your wrapper.log file(s).
Okay, the issue is here:
2025/02/11 22:18:41 | E [IgnitionGateway ] [14:18:41]: Error during context startup.
2025/02/11 22:18:41 | java.lang.NullPointerException: null
2025/02/11 22:18:41 | at java.base/java.io.ByteArrayInputStream.<init>(Unknown Source)
2025/02/11 22:18:41 | at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:241)
2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.lambda$initializeQueries$0(NamedQueryExecutor.java:96)
2025/02/11 22:18:41 | at java.base/java.util.ArrayList.forEach(Unknown Source)
2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:92)
2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.initializeQueries(NamedQueryExecutor.java:82)
2025/02/11 22:18:41 | at com.inductiveautomation.ignition.gateway.db.namedquery.NamedQueryExecutor.<init>(NamedQueryExecutor.java:76)
This probably means you tried to import or restore named queries defined in a newer version of Ignition to an older version of Ignition.
Does that ring any bells? Do you have any idea where those resources might be located?
Hi,
I got several projects working with named queries. I can search the projects contains named queries.
But I cannot enter the designer.
Thanks
Did you import something new?
Did you combine or update any recent projects?
Any idea of any change that could broke your named queries?
This is an human error, someone did something to break it.
This will require either locating and removing these resources on the filesystem or upgrading Ignition (if that's an option).
You may want to contact support for help locating and removing these resources. They're going to be located among the project resource files in the $IGNITION/data/projects
folder.
Hi,
Can I remove all the projects in the gateway then restart the gateway, can I do that?
Thanks
Hi,
I remove all the projects inside the $IGNITION/data/projects folder. The gateway able to start.
Thanks
You could carefully move these files aside somewhere, because presumably they are important and you're going to want to keep them.
I'm not sure how this will really help. The Gateway may start, but you won't have any of your projects at that point...
Hi,
Yes, currently the gateway doesn't have any project.
Just wondering does this error cause the faulty gateway?
Thanks
No, I previously explained and posted the stack trace from what was causing the faulted gateway.
Jenniffer you should open a ticket. They will guide you on how to proceed.
Hi,
Noted.
Thanks
Hi,
I found the faulty project. Thanks again for the guidance.