Morefarther opened a new issue, #91: URL: https://github.com/apache/dolphinscheduler-sdk-python/issues/91
dolphinscheduler verion: 3.1.4 apapche-dolphinscheduler: 4.0.0 in api server config file application.yaml, the token is set:  in client(win11), the auth_token is set the same:  but the result is : **auth error** client log ``` E:\python_env\mysql\lib\site-packages\pydolphinscheduler\java_gateway.py:316: UserWarning: Using unmatched version of pydolphinscheduler (version 4.0.0) and Java gateway (version unknown) may cause errors. We strongly recommend you to find the matched version (check: https://pypi.org/project/apache-dolphinscheduler) gateway = GatewayEntryPoint() Traceback (most recent call last): File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 982, in _get_connection connection = self.deque.pop() IndexError: pop from an empty deque During handling of the above exception, another exception occurred: Traceback (most recent call last): File "e:\program\shell\test.py", line 11, in <module> task_parent = Shell(name="task_parent", command="echo hello pydolphinscheduler") File "E:\python_env\mysql\lib\site-packages\pydolphinscheduler\tasks\shell.py", line 58, in __init__ super().__init__(name, TaskType.SHELL, *args, **kwargs) File "E:\python_env\mysql\lib\site-packages\pydolphinscheduler\java_gateway.py", line 139, in get_code_and_version return self.gateway.entry_point.getCodeAndVersion( File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 1321, in __call__ answer = self.gateway_client.send_command(command) File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 1036, in send_command connection = self._get_connection() File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 984, in _get_connection connection = self._create_connection() File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 990, in _create_connection connection.start() File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 1136, in start self._authenticate_connection() File "E:\python_env\mysql\lib\site-packages\py4j\java_gateway.py", line 1158, in _authenticate_connection raise Py4JAuthenticationError( py4j.protocol.Py4JAuthenticationError: Failed to authenticate with gateway server. ``` api-server log: ``` [INFO] 2023-04-21 11:07:22.636 +0800 py4j.GatewayConnection:[227] - Gateway Connection ready to receive messages [INFO] 2023-04-21 11:07:22.636 +0800 py4j.GatewayServer:[519] - Connection Started [ERROR] 2023-04-21 11:07:22.637 +0800 py4j.GatewayConnection:[251] - Authentication error. py4j.Py4JAuthenticationException: Client authentication unsuccessful. at py4j.commands.AuthCommand.execute(AuthCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:236) at java.lang.Thread.run(Thread.java:748) [INFO] 2023-04-21 11:07:22.637 +0800 py4j.GatewayConnection:[164] - Connection Stopped [INFO] 2023-04-21 11:07:22.662 +0800 py4j.GatewayServer:[519] - Connection Started [INFO] 2023-04-21 11:07:22.662 +0800 py4j.GatewayConnection:[227] - Gateway Connection ready to receive messages [ERROR] 2023-04-21 11:07:22.662 +0800 py4j.GatewayConnection:[251] - Authentication error. py4j.Py4JAuthenticationException: Client authentication unsuccessful. at py4j.commands.AuthCommand.execute(AuthCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:236) at java.lang.Thread.run(Thread.java:748) [INFO] 2023-04-21 11:07:22.663 +0800 py4j.GatewayConnection:[164] - Connection Stopped ``` -- 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]
