fincentxyz opened a new issue, #14495:
URL: https://github.com/apache/dolphinscheduler/issues/14495

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   After downloading DolphinScheduler and Java 11 from OpenJDK on an Ubuntu LTS 
VirtualBox VM I executed the following command to start the standalone 
DolphinScheduler server:
   `./bin/dolphinscheduler-daemon.sh start standalone-server`
   
   The server starts fine and I am able to access DolphinScheduler at 
`http://localhost:12345/dolphinscheduler/ui`.
   
   The issue occurs when I stop the server and try to start it again. After 
starting the server again I find the following error in a log in the 
standalone-server/logs directory:
   
   [ERROR] 2023-07-10 08:20:04.254 +0000 
org.apache.dolphinscheduler.server.master.registry.MasterRegistryClient:[182] - 
MasterServer remove registry path exception 
   org.apache.dolphinscheduler.registry.api.RegistryException: Failed to delete 
registry key: /nodes/master/10.0.2.15:5678
        at 
org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.delete(ZookeeperRegistry.java:210)
        at 
org.apache.dolphinscheduler.service.registry.RegistryClient.remove(RegistryClient.java:191)
        at 
org.apache.dolphinscheduler.server.master.registry.MasterRegistryClient.deregister(MasterRegistryClient.java:175)
        at 
org.apache.dolphinscheduler.server.master.registry.MasterRegistryClient.close(MasterRegistryClient.java:82)
        at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:239)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1161)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1154)
        at 
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1106)
        at 
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1075)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:174)
        at 
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1021)
        at 
org.springframework.boot.SpringApplicationShutdownHook.closeAndWait(SpringApplicationShutdownHook.java:145)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114)
        at java.base/java.lang.Thread.run(Thread.java:834)
   Caused by: java.lang.IllegalStateException: Expected state [STARTED] was 
[STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:457)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(CuratorFrameworkImpl.java:477)
        at 
org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.delete(ZookeeperRegistry.java:204)
        ... 17 common frames omitted
   
   I attached the full log to this message.
   
   
[dolphinscheduler-standalone.log](https://github.com/apache/dolphinscheduler/files/11999653/dolphinscheduler-standalone.log)
   
   
   ### What you expected to happen
   
   After stopping the standalone-server and restarting it again I expect 
DolphinScheduler to work as expected: no error messages and I can access the 
application at `http://localhost:12345/dolphinscheduler/ui`
   
   ### How to reproduce
   
   Download DolphinScheduler
   Install Java 11 from OpenJDK
   Start DolphinScheduler standalone-server
   Stop DolphinScheduler standalone-server
   Start DolphinScheduler standalone-server again
   
   ### Anything else
   
   Linux 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 
15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
   
   This Issue was mentioned in a Discussion started on the 15h of September 
2022:
   https://github.com/apache/dolphinscheduler/discussions/11948
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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