When the trail expires on our gateway, and we do a reset, we keep getting these errors
when we try to to a httpclient call, polled by a gatewayscript.
I cant even reset the service without force ending it with taskmanager
we just use these for local tests, but its kinda annoying if we gotta reset the server every 2h
Any idea how to fix this?
version 8.1.14
INFO | jvm 1 | 2022/07/04 15:28:55 | E [g.s.SystemUtilities ] [13:28:55]: Error running function from system.util.invokeAsynchronous
INFO | jvm 1 | 2022/07/04 15:28:55 | com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last):
INFO | jvm 1 | 2022/07/04 15:28:55 | File "<module:handleResetA>", line 92, in removeBlackBox
INFO | jvm 1 | 2022/07/04 15:28:55 | File "<module:handleResetA>", line 55, in getCarriersBlackbox
INFO | jvm 1 | 2022/07/04 15:28:55 | File "<module:handleResetA>", line 55, in getCarriersBlackbox
INFO | jvm 1 | 2022/07/04 15:28:55 | IOError: Address already in use: connect
INFO | jvm 1 | 2022/07/04 15:28:55 |
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.Py.fromIOException(Py.java:216)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.Py.IOError(Py.java:183)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpGet(AbstractNetUtilities.java:274)
INFO | jvm 1 | 2022/07/04 15:28:55 | at jdk.internal.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction.__call__(ScriptManager.java:541)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyObject.__call__(PyObject.java:433)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyObject.__call__(PyObject.java:437)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.getCarriersBlackbox$4(<module:handleResetA>:61)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.call_function(<module:handleResetA>)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyTableCode.call(PyTableCode.java:173)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyBaseCode.call(PyBaseCode.java:119)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:406)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.removeBlackBox$8(<module:handleResetA>:93)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.call_function(<module:handleResetA>)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyTableCode.call(PyTableCode.java:173)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.function___call__(PyFunction.java:474)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:469)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:464)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:831)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.gateway.script.GatewaySystemUtilities.lambda$_invokeAsyncImpl$0(GatewaySystemUtilities.java:142)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: org.python.core.PyException: IOError: Address already in use: connect
INFO | jvm 1 | 2022/07/04 15:28:55 | ... 25 common frames omitted
INFO | jvm 1 | 2022/07/04 15:28:55 | E [g.s.SystemUtilities ] [13:28:55]: Error running function from system.util.invokeAsynchronous
INFO | jvm 1 | 2022/07/04 15:28:55 | com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last):
INFO | jvm 1 | 2022/07/04 15:28:55 | File "<module:handleResetA>", line 84, in removeWashInOne
INFO | jvm 1 | 2022/07/04 15:28:55 | File "C:****\model\location.py", line 35, in getLocation
INFO | jvm 1 | 2022/07/04 15:28:55 | response = client.get(url="%s/%s" %(self.base_url, location_id), headers=self.headers)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient.send(JythonHttpClient.java:103)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient.get(JythonHttpClient.java:306)
INFO | jvm 1 | 2022/07/04 15:28:55 | at jdk.internal.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | java.io.IOException: java.io.IOException: Unable to GET https://****/locations/WASH_IN_1
INFO | jvm 1 | 2022/07/04 15:28:55 |
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.Py.JavaError(Py.java:547)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.Py.JavaError(Py.java:538)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:192)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyObject.__call__(PyObject.java:422)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyMethod.__call__(PyMethod.java:228)
INFO | jvm 1 | 2022/07/04 15:28:55 | at ****.model.location$py.getLocation$4(C:****/model/location.py:42)
INFO | jvm 1 | 2022/07/04 15:28:55 | at ****.model.location$py.call_function(C:****/model/location.py)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyTableCode.call(PyTableCode.java:173)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:426)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyMethod.__call__(PyMethod.java:141)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.removeWashInOne$7(<module:handleResetA>:86)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.pycode._pyx2572.call_function(<module:handleResetA>)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyTableCode.call(PyTableCode.java:173)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.function___call__(PyFunction.java:474)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:469)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyFunction.__call__(PyFunction.java:464)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:831)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.gateway.script.GatewaySystemUtilities.lambda$_invokeAsyncImpl$0(GatewaySystemUtilities.java:142)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: org.python.core.PyException: java.io.IOException: java.io.IOException: Unable to GET https://****/locations/WASH_IN_1
INFO | jvm 1 | 2022/07/04 15:28:55 | ... 22 common frames omitted
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: java.io.IOException: Unable to GET https://****/locations/WASH_IN_1
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient.send(JythonHttpClient.java:103)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient.get(JythonHttpClient.java:306)
INFO | jvm 1 | 2022/07/04 15:28:55 | at jdk.internal.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
INFO | jvm 1 | 2022/07/04 15:28:55 | ... 19 common frames omitted
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: java.net.ConnectException: Address already in use: no further information
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at com.inductiveautomation.ignition.common.script.builtin.http.JythonHttpClient.send(JythonHttpClient.java:101)
INFO | jvm 1 | 2022/07/04 15:28:55 | ... 24 common frames omitted
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: java.net.ConnectException: Address already in use: no further information
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.PlainHttpConnection$ConnectEvent.handle(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/java.util.ArrayList.forEach(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | Caused by: java.net.BindException: Address already in use: no further information
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
INFO | jvm 1 | 2022/07/04 15:28:55 | at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
INFO | jvm 1 | 2022/07/04 15:28:55 | ... 5 common frames omitted