Edge Gateway fails to start

I have an edge gateway installed (v8.1.3) on a Windows 10 PC. Yesterday I had the gateway and project running just fine. I restarted the PC, windows failed to start and brought up the windows recovery screen. I hit the restart button on the recovery screen and the PC restarted and booted up just fine. Since then the PC has been restarted numerous times without a problem. The problem now is that the Edge gateway never starts. If you go to the gateway web page it just Gateway is starting and never gets past that. Also, this PC is not able to receive Windows updates and Edge has been installed and working for a couple of months with a vision project.

I've attached the full log file, I believe the problem happens at or right around 2023/01/19 11:27:30

wrapper.log (5.0 MB)

INFO | jvm 1 | 2023/01/19 11:27:29 | I [IgnitionGateway ] [16:27:29]: Starting Ignition 8.1.3 (b2021030309)
INFO | jvm 1 | 2023/01/19 11:27:29 | I [IgnitionGateway ] [16:27:29]: Reloading JDBC classloader.
INFO | jvm 1 | 2023/01/19 11:27:29 | I [o.a.w.p.h.WebApplication ] [16:27:29]: [WicketFilter] Started Wicket version 6.30.0 in DEPLOYMENT mode
INFO | jvm 1 | 2023/01/19 11:27:29 | I [R.S.S.InternalDb ] [16:27:29]: Internal db synchronizer disk cache initialized. State id=9a6f3603-6b9c-4b52-87f2-56cb872d062d
INFO | jvm 1 | 2023/01/19 11:27:29 | I [R.StateMonitoring ] [16:27:29]: Redundancy state changed: Role=Independent, Activity level=Active, Project state=Good, History level=Full
INFO | jvm 1 | 2023/01/19 11:27:29 | I [o.e.j.s.h.ContextHandler ] [16:27:29]: Started c.i.c.MainWebAppContext@258e295a{Ignition,/,file:///C:/Users/HMI/Desktop/Ignition-Edge-windows-64-8.1.3/webserver/webapps/main/,AVAILABLE}
INFO | jvm 1 | 2023/01/19 11:27:30 | I [o.e.j.s.AbstractConnector ] [16:27:30]: Started ServerConnector@6e91e801{HTTP/1.1,[http/1.1]}{0.0.0.0:8088}
INFO | jvm 1 | 2023/01/19 11:27:30 | WARNING: An illegal reflective access operation has occurred
INFO | jvm 1 | 2023/01/19 11:27:30 | WARNING: Illegal reflective access by com.inductiveautomation.ignition.gateway.util.IgnitionSocketImplFactory (file:/C:/Users/HMI/Desktop/Ignition-Edge-windows-64-8.1.3/lib/core/gateway/gateway-8.1.3.jar) to constructor java.net.SocksSocketImpl()
INFO | jvm 1 | 2023/01/19 11:27:30 | WARNING: Please consider reporting this to the maintainers of com.inductiveautomation.ignition.gateway.util.IgnitionSocketImplFactory
INFO | jvm 1 | 2023/01/19 11:27:30 | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
INFO | jvm 1 | 2023/01/19 11:27:30 | WARNING: All illegal access operations will be denied in a future release
INFO | jvm 1 | 2023/01/19 11:27:30 | I [g.InternalDatabaseManager ] [16:27:30]: Starting up...
INFO | jvm 1 | 2023/01/19 11:27:30 | I [P.InternalDatabase ] [16:27:30]: Looking for existing internal database "config.idb"...
INFO | jvm 1 | 2023/01/19 11:27:30 | I [P.InternalDatabase ] [16:27:30]: ... found existing.
INFO | jvm 1 | 2023/01/19 11:27:30 | I [o.e.j.s.AbstractConnector ] [16:27:30]: Started ServerConnector@2d54a9c3{SSL,[ssl, http/1.1]}{0.0.0.0:8060}
INFO | jvm 1 | 2023/01/19 11:27:30 | I [o.e.j.s.Server ] [16:27:30]: Started @6717ms
INFO | jvm 1 | 2023/01/19 11:27:30 | I [P.InternalDatabase ] [16:27:30]: internal database "config.idb" started up successfully.
INFO | jvm 1 | 2023/01/19 11:27:30 | I [P.InternalDatabase ] [16:27:30]: Registering autobackup task [owner=Internal DB Autobackup, name=internal database "config.idb"]
INFO | jvm 1 | 2023/01/19 11:27:30 | E [C.BasicExecutionEngine ] [16:27:30]: One-shot task com.inductiveautomation.ignition.gateway.IgnitionGateway$$Lambda$314/0x00000001003c9840@2cba80a7 threw uncaught exception.
INFO | jvm 1 | 2023/01/19 11:27:30 | java.lang.InternalError: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.net.http/jdk.internal.net.http.HttpClientImpl.(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.net.http/jdk.internal.net.http.HttpClientImpl.create(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.net.http/jdk.internal.net.http.HttpClientBuilderImpl.build(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.licensing.LicenseManagerImpl.createLeasedActivationStrategy(LicenseManagerImpl.java:154)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.licensing.LicenseManagerImpl.(LicenseManagerImpl.java:118)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.init(ModuleManagerImpl.java:357)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:865)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:724)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:658)
INFO | jvm 1 | 2023/01/19 11:27:30 | at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:538)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2023/01/19 11:27:30 | Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
INFO | jvm 1 | 2023/01/19 11:27:30 | at java.base/java.security.Provider$Service.newInstance(Unknown Source)

That's not the only possible fatal error, but the situation isn't clear. I suspect the event that caused Windows to go through the Recovery process also corrupted the Ignition install. You very likely need to re-install.

This looks familiar. I believe the trust store was corrupted. You should be able to follow the steps below to get back into a working state.

  1. Navigate to the C:\Program Files\Inductive Automation\Ignition\lib\runtime\jre-win\lib\security directory.
  2. Make a copy of the cacerts and cacerts.bak files and place in another directory. (They shouldn't be needed but I like to make copies before deleting files)
  3. Delete the cacerts file from its original directory.
  4. Re-name the cacerts.bak file to cacerts.
  5. Use the stop-ignition.bat file to stop the Ignition service.
  6. Use the start-ignition.bat file to start the Ignition service again.

For steps 5 and 6, you can also stop/start the service from Windows Services.

1 Like

That did the trick. Thank you so much!

1 Like