Made a mistake changing http/https ports and now gateway will not start

Below is the wrapper logs...I think I know what the issue is, but I don't know how to fix it. I used 443 and 80 for the https/http port respectively...not thinking about other processes (stupid, I know). I don't really know HOW to fix it, though?

INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: Encountered an error running main:
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:443
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:304)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:402)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.server.Server.doStart(Server.java:398)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at com.inductiveautomation.catapult.IgnitionServer.start(IgnitionServer.java:1281)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at com.inductiveautomation.ignition.gateway.web.WebResourceManagerImpl.start(WebResourceManagerImpl.java:353)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at com.inductiveautomation.ignition.gateway.IgnitionGateway.start(IgnitionGateway.java:576)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at com.inductiveautomation.ignition.gateway.IgnitionGateway.main(IgnitionGateway.java:303)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at com.inductiveautomation.catapult.Catapult.main(Catapult.java:8)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: Caused by: java.net.BindException: Address already in use: bind
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/sun.nio.ch.Net.bind0(Native Method)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/sun.nio.ch.Net.bind(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:339)
INFO   | jvm 1    | 2024/05/29 14:17:58 | WrapperSimpleApp Error: 	... 25 more
STATUS | wrapper  | 2024/05/29 14:18:01 | <-- Wrapper Stopped

|-k,--port <new port>|Changes the Gateway http port.|
|---|---|
|-l,--sslport <new port>|Changes the Gateway https port.|

Some other service is using the standard ports. Another Ignition instance, perhaps? IIS on Windows?

I've tried those, but they don't work. I get a "no response from the gateway" message.

It was IIS...I was certain I disabled that and it looks like I was wrong. Thank you for making me double check!

I realize this thread is a bit old. However, I have a similar problem. I have an application that is running on port 8088 that I would prefer to not shut down (others are using it) and would like to determine if there is a method to change ports without the gateway running.

I have looked through some of Inductive’s manuals and videos and seem to be missing where this could be done. The gateway in question is being run on a remote linux machine with no GUI.

Use the gwcmd command line utility.

Similar to cwkidd, when I attempt to use the gwcmd utility when the gateway is down, because it can’t bind the port, it just says no response from the gateway.

I am looking for a way to change the port that the gateway is attempting to bind without the gateway being run. Is this just not possible?

You can edit the gateway.xml file at $IGNITION/data/gateway.xml if the Gateway isn't running and you can't use the gwcmd util.

2 Likes