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:
Add a new task to execute, select the automatic registration method:
execute once:
Go to the scheduling log tab to check the execution status, and the failure is displayed:
Say it is a 500 code, check its automatically registered address, and visit it on the web:
404 is displayed:
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:
update: