maltesander commented on PR #11002:
URL: https://github.com/apache/nifi/pull/11002#issuecomment-4150364981

   Reproduced on 2.6.0 and stumbled over this independently. Some gateway 
communication attempts (25?) and then fails.
   
   ```
   [...]
   2026-03-27 07:43:48,618 DEBUG [Initialize CheckDuplicates] 
o.a.nifi.py4j.client.NiFiPythonGateway Beginning method invocation 
InvocationBindings[method=public abstract boolean 
org.apache.nifi.python.PythonProcessorDetails.isBundledWithDependencies(), 
target=p36, args=null]
   2026-03-27 07:43:48,618 INFO [python-log-112] py4j.java_gateway Received 
command c on object id p36
   2026-03-27 07:43:48,618 DEBUG [Initialize CheckDuplicates] 
o.a.nifi.py4j.client.NiFiPythonGateway Ending method invocation 
InvocationBindings[method=public abstract boolean 
org.apache.nifi.python.PythonProcessorDetails.isBundledWithDependencies(), 
target=p36, args=null]
   2026-03-27 07:43:48,628 DEBUG [Initialize CheckDuplicates] 
o.a.n.p.c.PythonProxyInvocationHandler Invoking public abstract 
java.lang.String org.apache.nifi.python.PythonController.ping() on 
PythonProxy[targetObjectId=t] with args [] using command c
   t
   ping
   e
   
   2026-03-27 07:43:48,628 DEBUG [Initialize CheckDuplicates] 
o.a.nifi.py4j.client.NiFiPythonGateway Beginning method invocation 
InvocationBindings[method=public abstract java.lang.String 
org.apache.nifi.python.PythonController.ping(), target=t, args=null]
   2026-03-27 07:43:48,629 DEBUG [Initialize CheckDuplicates] 
o.a.nifi.py4j.client.NiFiPythonGateway Ending method invocation 
InvocationBindings[method=public abstract java.lang.String 
org.apache.nifi.python.PythonController.ping(), target=t, args=null]
   2026-03-27 07:43:48,629 DEBUG [Initialize CheckDuplicates] 
org.apache.nifi.py4j.PythonProcess Failed to start Py4J Server
   py4j.Py4JException: Error while obtaining a new communication channel
        at py4j.CallbackClient.getConnectionLock(CallbackClient.java:257)
        at py4j.CallbackClient.sendCommand(CallbackClient.java:377)
        at py4j.CallbackClient.sendCommand(CallbackClient.java:356)
        at 
org.apache.nifi.py4j.client.PythonProxyInvocationHandler.invoke(PythonProxyInvocationHandler.java:86)
        at jdk.proxy6/jdk.proxy6.$Proxy63.ping(Unknown Source)
        at org.apache.nifi.py4j.PythonProcess.start(PythonProcess.java:145)
        at 
org.apache.nifi.py4j.StandardPythonBridge.getProcessForNextComponent(StandardPythonBridge.java:260)
        at 
org.apache.nifi.py4j.StandardPythonBridge.createProcessorBridge(StandardPythonBridge.java:137)
        at 
org.apache.nifi.py4j.StandardPythonBridge.lambda$createProcessor$7(StandardPythonBridge.java:154)
        at 
org.apache.nifi.python.processor.PythonProcessorProxy.lambda$new$0(PythonProcessorProxy.java:82)
        at java.base/java.lang.VirtualThread.run(Unknown Source)
   Caused by: java.net.ConnectException: Connection refused
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
        at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source)
        at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
        at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
        at java.base/java.net.Socket.connect(Unknown Source)
        at java.base/java.net.Socket.connect(Unknown Source)
        at java.base/java.net.Socket.<init>(Unknown Source)
        at java.base/java.net.Socket.<init>(Unknown Source)
        at java.base/javax.net.DefaultSocketFactory.createSocket(Unknown Source)
        at py4j.CallbackConnection.start(CallbackConnection.java:226)
        at py4j.CallbackClient.getConnection(CallbackClient.java:238)
        at py4j.CallbackClient.getConnectionLock(CallbackClient.java:250)
        ... 10 common frames omitted
   ```
   I
   This leads to otherwise strange behavior. The basic stuff like Heartbeats, 
Leader etc. works, sometimes i could even login into the canvas, which was 
greyed out (like in no permissions) and was empty, otherwise just the "Flow is 
initializing" error. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to