接入问题

更新时间:
复制为 MD 格式

无可用机器(no worker available)

问题现象:

无可用机器,系统提示no worker available。

可能原因:

可能为配置错误。

解决方案:

  1. 登录Worker查看SchedulerX的日志,日志路径为/${user.home}/logs/schedulerx/worker.log

    • 如果是admin账号启动进程,日志路径为/home/admin/logs/schedulerx/worker.log

    • 如果是root账号启动进程,日志路径为/root/logs/schedulerx/worker.log

  2. 搜索WorkerConfig关键字,查看Endpoint、NamespaceGroupId是否配置正确。

应用发布报错DomainNotFoundException

问题现象:

Caused by: com.alibaba.schedulerx.worker.exception.DomainNotFoundException: Not found domainName
org.springframework.beans.factory.BeanCreationException Create breakpoint : Error creating bean with name 'schedulerxWorker' defined in class path resource [com/alibaba/schedulerx/SchedulerxAutoConfigure.class]: Invocation of init
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144)
	at org.zendure.core.launch.BladeApplication.run(BladeApplication.java:49)
	at org.zendure.Application.main(Application.java:46)
Caused by: java.io.IOException Create breakpoint : Schedulerx WorkerConfig[domainName=]
	at com.alibaba.schedulerx.worker.SchedulerxWorker.init(SchedulerxWorker.java:223)
	at com.alibaba.schedulerx.worker.SchedulerxWorker.afterPropertiesSet(SchedulerxWorker.java:831)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782)
	... 16 common frames omitted
Caused by: com.alibaba.schedulerx.worker.exception.DomainNotFoundException Create breakpoint : Not found domainName.
	at com.alibaba.schedulerx.worker.SchedulerxWorker.init(SchedulerxWorker.java:151)
	... 19 common frames omitted

可能原因:

Endpoint和相应的环境没有正确对应。

解决方案:

排查线上的机器是否和Endpoint对应,本地只能连接公网的Endpoint。关于SchedulerX支持的Endpoint,请参见Endpoint列表

应用发布报错can not find namespaceId

问题现象:

应用启动报错如下。

can not find namespaceId, key: d783212a9c-5a00-4d00-b8ca-b7a68824c97f
source:schedulerx domain=schedulerx-test.console.aliyun.com

可能原因:

  • 接入配置的Namespace参数配置不正确。

  • 部署应用机器的区域和调度控制台创建的命名空间所在区域不一致。

    例如:对应命名空间创建于杭州Region,但当前应用配置的接入区域为公网。

解决方案:

登录分布式任务调度平台。在应用管理页面,单击接入配置然后核对相关信息。

SchedulerX如何进行本地连接测试?

SchedulerX控制台将地域切换为公网,在公网下新建应用并接入。具体操作,请参见在本地接入公网环境

在顶部导航栏的地域选择下拉菜单中,公网位于其他分类下。

SchedulerX本地代理无法连接公网怎么办?

当公网直连环境正常但代理模式无法连接时,您需要指定对应Endpoint。关于部署应用的地域(Region)和对应的Endpoint,请参见Endpoint列表

使用运营商专线打通网络在自建IDC或者办公网无法解析域名。

专线连通后,需要完成转发管理配置,将阿里云VPC下内网域名解析的DNS请求流量转发到外部DNS系统后,自建IDC或办公网络可以正确解析。