AOT health chek 404 Unknown check ID for 4.2.1
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, spring-boot
Hướng nghiên cứu
Bắt đầu với org.springframework.cloud.consul.discovery.TtlScheduler, đặc biệt là các lệnh gọi tại các dòng 131 và 156 của TtlScheduler.java, rồi so sánh chúng với log đăng ký và lỗi của AgentConsulClient. Tái hiện ứng dụng AOT bằng cấu hình heartbeat được hiển thị; hoàn thành khi heartbeat đã lên lịch không còn nhận lỗi 404 Unknown check ID.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
spring:
application:
name: demo
cloud:
consul:
discovery:
preferIpAddress: true
heartbeat:
enabled: true
2025-04-02T22:59:09.530+08:00 INFO 7280 --- [demo] [ main] com.example.demo.DemoApplication : Starting AOT-processed DemoApplication using Java 22.0.1 with PID 7280 (D:\kn\demo\build\native\nativeCompile\demo.exe started by wdubaiyu in D:\kn\demo\build\native\nativeCompile)
2025-04-02T22:59:09.530+08:00 INFO 7280 --- [demo] [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2025-04-02T22:59:09.531+08:00 INFO 7280 --- [demo] [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=7389954d-47ba-315d-8456-723ce320eccc
2025-04-02T22:59:09.557+08:00 INFO 7280 --- [demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2025-04-02T22:59:09.558+08:00 INFO 7280 --- [demo] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2025-04-02T22:59:09.558+08:00 INFO 7280 --- [demo] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.39]
2025-04-02T22:59:09.563+08:00 INFO 7280 --- [demo] [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2025-04-02T22:59:09.563+08:00 INFO 7280 --- [demo] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 33 ms
2025-04-02T22:59:10.582+08:00 INFO 7280 --- [demo] [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2025-04-02T22:59:11.599+08:00 INFO 7280 --- [demo] [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2025-04-02T22:59:11.607+08:00 WARN 7280 --- [demo] [ main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working wit
h the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2025-04-02T22:59:11.610+08:00 INFO 7280 --- [demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2025-04-02T22:59:11.611+08:00 INFO 7280 --- [demo] [ main] o.s.c.c.s.ConsulServiceRegistry : Registering service with consul: NewService{id='de
mo', name='demo', tags=[], address='localhost', meta={secure=false}, port=8080, enableTagOverride=null, check=Check{script='null', dockerContainerID='null', shell=
'null', interval='null', ttl='30s', http='null', method='null', header=null, tcp='null', timeout='null', deregisterCriticalServiceAfter='null', tlsSkipVerify=null, status='null', grpc='null', grpcUseTLS=null}, checks=null}
2025-04-02T22:59:11.617+08:00 ERROR 7280 --- [demo] [pool-5-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task
com.ecwid.consul.v1.OperationException: OperationException(statusCode=404, statusMessage='Not Found', statusContent='Unknown check ID "service:demo". Ensure that the check ID is passed, not the check name.')
at com.ecwid.consul.v1.agent.AgentConsulClient.agentCheckPass(AgentConsulClient.java:211) ~[demo.exe:na]
at com.ecwid.consul.v1.ConsulClient.agentCheckPass(ConsulClient.java:270) ~[demo.exe:na]
at org.springframework.cloud.consul.discovery.TtlScheduler$ConsulHeartbeatTask.lambda$run$0(TtlScheduler.java:131) ~[na:na]
at org.springframework.cloud.consul.discovery.TtlScheduler$ConsulHeartbeatTask.possiblyReregisterIfFails(TtlScheduler.java:156) ~[na:na]
at org.springframework.cloud.consul.discovery.TtlScheduler$ConsulHeartbeatTask.run(TtlScheduler.java:131) ~[na:na]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[na:na]
at [email protected]/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[na:na]
at [email protected]/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) ~[demo.exe:na]
at [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na]
at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[demo.exe:na]
at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[na:na]
at [email protected]/java.lang.Thread.runWith(Thread.java:1583) ~[demo.exe:na]
at [email protected]/java.lang.Thread.run(Thread.java:1570) ~[demo.exe:na]
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:853) ~[demo.exe:na]
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:829) ~[demo.exe:na]
- Ngôn ngữ chính
- Java
- Star
- 821
- Fork
- 540
- Merge trung bình
- 14 giờ 22 phút
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của spring-cloud/spring-cloud-consul
-
waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
spring-cloud/spring-cloud-consul#984 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
waiting-for-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
spring-cloud/spring-cloud-consul#1040 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
waiting-for-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
spring-cloud/spring-cloud-consul#996 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrating from Spring boot 3.5.11 to 4.0.3 : reregister-service-on-failure not working anymoreCó thể đã có người làm @yashdotdev13 đã nhận 6 ngày trước. Đang mởwaiting-for-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
spring-cloud/spring-cloud-consul#954 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
waiting-for-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
spring-cloud/spring-cloud-consul#951 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của spring-cloud/spring-cloud-consul
Issue tương tự
-
[BUG] micronaut-serde-oracle-jdbc-json brings a second OJDBC driver onto the runtime classpathCó thể đã có người làm @ZARAYACH đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
micronaut-projects/micronaut-serialization#1494 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 2 ngày
-
code-health feature/sync OS/Android QA/Test-Plan-Specified QA/Yes
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
brave/brave-browser#60327 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
it-at-m/raumreservierung#383 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/context-ontology-accelerator#325 ·
Maintainer thường phản hồi trong vòng 1 ngày