vipshop / Saturn

The vip.com's distributed job scheduling platform.
Apache License 2.0
2.28k stars 701 forks source link

为何一直连不上console呢 #577

Open jay763190097 opened 5 years ago

jay763190097 commented 5 years ago

_ _20190120113349

mvn saturn:run -Dnamespace=www.abc.com -DexecutorName=exec01 -DVIP_SATURN_CONSOLE_URI=http://192.168.0.6:9088
[2019-01-20 11:12:43.443] [INFO] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_SHUTDOWN] msg=Try to stop executor exec01
[2019-01-20 11:12:43.451] [INFO] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_SHUTDOWN] msg=The executor exec01 is stopped
[2019-01-20 11:12:43.452] [INFO] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_INIT] msg=start to discover from saturn console
[2019-01-20 11:12:43.709] [ERROR] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_INIT] msg=Fail to discover from saturn console. 
com.vip.saturn.job.exception.SaturnExecutorException: Fail to discover from saturn console. 
        at com.vip.saturn.job.executor.SaturnExecutor.handleDiscoverException(SaturnExecutor.java:372)
        at com.vip.saturn.job.executor.SaturnExecutor.discover(SaturnExecutor.java:336)
        at com.vip.saturn.job.executor.SaturnExecutor.execute(SaturnExecutor.java:409)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.executor.Main.startExecutor(Main.java:165)
        at com.vip.saturn.job.executor.Main.main(Main.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.plugin.maven.SaturnJobRunMojo$1.run(SaturnJobRunMojo.java:128)
        at java.lang.Thread.run(Thread.java:748)
[2019-01-20 11:12:43.711] [ERROR] [Thread-1] [c.v.s.job.executor.SaturnExecutorExtensionDefault] >>> [EXECUTOR_INIT] msg=fail to start executor
com.vip.saturn.job.exception.SaturnExecutorException: Fail to discover from saturn console. 
        at com.vip.saturn.job.executor.SaturnExecutor.handleDiscoverException(SaturnExecutor.java:372)
        at com.vip.saturn.job.executor.SaturnExecutor.discover(SaturnExecutor.java:336)
        at com.vip.saturn.job.executor.SaturnExecutor.execute(SaturnExecutor.java:409)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.executor.Main.startExecutor(Main.java:165)
        at com.vip.saturn.job.executor.Main.main(Main.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.plugin.maven.SaturnJobRunMojo$1.run(SaturnJobRunMojo.java:128)
        at java.lang.Thread.run(Thread.java:748)
[2019-01-20 11:12:43.711] [INFO] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_SHUTDOWN] msg=Try to stop executor exec01
[2019-01-20 11:12:43.711] [INFO] [Thread-1] [com.vip.saturn.job.executor.SaturnExecutor] >>> [EXECUTOR_SHUTDOWN] msg=The executor exec01 is stopped
com.vip.saturn.job.exception.SaturnExecutorException: Fail to discover from saturn console. 
        at com.vip.saturn.job.executor.SaturnExecutor.handleDiscoverException(SaturnExecutor.java:372)
        at com.vip.saturn.job.executor.SaturnExecutor.discover(SaturnExecutor.java:336)
        at com.vip.saturn.job.executor.SaturnExecutor.execute(SaturnExecutor.java:409)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.executor.Main.startExecutor(Main.java:165)
        at com.vip.saturn.job.executor.Main.main(Main.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.vip.saturn.job.plugin.maven.SaturnJobRunMojo$1.run(SaturnJobRunMojo.java:128)
        at java.lang.Thread.run(Thread.java:748)
GuoHuiChen commented 5 years ago

注意看我开的问题, 这个问题也困扰我几天,调试代码。 https://github.com/vipshop/Saturn/issues/575 启动时设置的 namespace ,注意要在console,先配置好,匹配

jay763190097 commented 5 years ago

这个我是先配置的namespace哦,截图第一张浏览器地址栏可以看出,www.abc.com是配置的域名

GuoHuiChen commented 5 years ago

image 注意,系统配置里面这个设置, 是否和 image这里一致。 或者空着,不设置试试。

jay763190097 commented 5 years ago

用的官方的例子,docker部署的 _ _20190122224948

_ _20190122225034 _ _20190122225101 _ _20190122225145 _ _20190122225341 难道是乱码影响了? _ _20190122225609

qiaojiang2 commented 5 years ago

老哥们最终解决了吗?

qiaojiang2 commented 5 years ago

用的官方的例子,docker部署的 _ _20190122224948

_ _20190122225034 _ _20190122225101 _ _20190122225145 _ _20190122225341 难道是乱码影响了? _ _20190122225609

解决了吗,最后?

jay763190097 commented 5 years ago

@qiaojiang2 我没有,你解决了么?

tomsean commented 5 years ago

同样遇到相同的问题,不是乱码的问题,把乱码解决还是一样不能注册。使用spring boot demo的打包程序放到demo里面是可以运行的,猜测应该是mvn saturn:run 在版本3.3.2里面有问题