xxl-job-admin execution task error code: 500 status 404

xxl-job-admin execution task error code: 500 status 404

Problem phenomenon:

After xxl-job-admin is deployed, open the interface and add a new task:
insert image description here
Add a new task to execute, select the automatic registration method:
insert image description here
execute once:
insert image description here

Go to the scheduling log tab to check the execution status, and the failure is displayed:

insert image description here
Say it is a 500 code, check its automatically registered address, and visit it on the web:
insert image description here
404 is displayed:
insert image description here

Solution: directly modify the nacos configuration ip line and remove it

Because it is accessed by a domain name, what xxl-job-admin needs is the IP address of the container. Here is automatic registration. Remove the line of nacos IP configuration to see if it can automatically obtain the IP address of the container:

View nacos configuration:
insert image description here
update:
insert image description here

Execute the task again:

insert image description here

At this time, the address obtained by checking it is the IP address of the container, not the domain name:

insert image description here

Guess you like

Origin blog.csdn.net/weixin_42808782/article/details/121282401