Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tips: Cannot run without an instance id error log #19

Closed
R1hug0 opened this issue Oct 27, 2016 · 2 comments
Closed

Tips: Cannot run without an instance id error log #19

R1hug0 opened this issue Oct 27, 2016 · 2 comments

Comments

@R1hug0
Copy link

R1hug0 commented Oct 27, 2016

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in URL [jar:file:/data/WEB-INF/lib/xxl-job-admin-1.3.1-SNAPSHOT.jar!/applicationcontext-xxl-job.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot run without an instance id.
Caused by: java.lang.IllegalStateException: Cannot run without an instance id.
如果日志中有这些的错误提示是因为程序运行获取hostname无法解析造成的,把对应的IP加入DNS或者hosts中就可以了.算是踩了一小坑

@xuxueli
Copy link
Owner

xuxueli commented Oct 28, 2016

赞一个 :)

@yzsunlight
Copy link

Cannot run without an instance id

具体怎么配置的,目前我也碰到了这个问题

@xuxueli xuxueli closed this as completed Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants