Skip to content

🐞 反馈问题:gateway里面很多这种,不知道哪个服务的 #2217

@j5272000

Description

@j5272000

请先确认以下事项:

问题描述

现象:组件服务启动了,通过域名访问不了。 然后重启gateway就可以访问了

该问题是否可以稳定重现?

可重现

重现步骤

暂不知道怎么产生的。

截图

Image

日志

2025-04-30T18:39:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:39:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"a920b483-5ded-4553-95f8-1e6737b9aa0d","resourceVersion":"4247792","generation":2,"creationTimestamp":"2025-04-21T13:21:29Z","labels":{"app_id":"dfc3125dc3774ba3b6878b3d5f77c370","component_sort":"gr5cd7df","creator":"Rainbond","gr5cd7df":"service_alias","gr5cd7df-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:21:29Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:22:23Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr5cd7df":{},"f:gr5cd7df-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"a5e3defb","match":{"paths":["/"],"hosts":["gr5cd7df-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr5cd7df","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr5cd7df" not found"}]}}}}
2025-04-30T18:39:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:39:52+08:00 info adapter/etcd.go:188 updated object{revision 11 85 } {key 15 0 /apisix/upstreams/e153be7c }
2025-04-30T18:40:07+08:00 info adapter/etcd.go:188 updated object{revision 11 86 } {key 15 0 /apisix/upstreams/e153be7c }
2025-04-30T18:40:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/upstreams/33e889a5 }
2025-04-30T18:40:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/routes/e38a1097 }
2025-04-30T18:40:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:40:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"1ec1eec3-67f8-464b-b94e-409fc9d2555f","resourceVersion":"6146721","generation":2,"creationTimestamp":"2025-04-28T06:51:37Z","labels":{"app_id":"90e5e2c777914574bba211f03411be5e","component_sort":"gr2a04e4","creator":"Rainbond","gr2a04e4":"service_alias","gr2a04e4-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:51:37Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:52:38Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr2a04e4":{},"f:gr2a04e4-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"57b48916","match":{"paths":["/
"],"hosts":["gr2a04e4-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr2a04e4","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr2a04e4" not found"}]}}}}
2025-04-30T18:40:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:40:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:40:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"a920b483-5ded-4553-95f8-1e6737b9aa0d","resourceVersion":"4247792","generation":2,"creationTimestamp":"2025-04-21T13:21:29Z","labels":{"app_id":"dfc3125dc3774ba3b6878b3d5f77c370","component_sort":"gr5cd7df","creator":"Rainbond","gr5cd7df":"service_alias","gr5cd7df-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:21:29Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:22:23Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr5cd7df":{},"f:gr5cd7df-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"a5e3defb","match":{"paths":["/"],"hosts":["gr5cd7df-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr5cd7df","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr5cd7df" not found"}]}}}}
2025-04-30T18:40:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:41:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/upstreams/33e889a5 }
2025-04-30T18:41:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/routes/e38a1097 }
2025-04-30T18:41:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:41:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"1ec1eec3-67f8-464b-b94e-409fc9d2555f","resourceVersion":"6146721","generation":2,"creationTimestamp":"2025-04-28T06:51:37Z","labels":{"app_id":"90e5e2c777914574bba211f03411be5e","component_sort":"gr2a04e4","creator":"Rainbond","gr2a04e4":"service_alias","gr2a04e4-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:51:37Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:52:38Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr2a04e4":{},"f:gr2a04e4-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"57b48916","match":{"paths":["/
"],"hosts":["gr2a04e4-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr2a04e4","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr2a04e4" not found"}]}}}}
2025-04-30T18:41:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:41:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:41:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"a920b483-5ded-4553-95f8-1e6737b9aa0d","resourceVersion":"4247792","generation":2,"creationTimestamp":"2025-04-21T13:21:29Z","labels":{"app_id":"dfc3125dc3774ba3b6878b3d5f77c370","component_sort":"gr5cd7df","creator":"Rainbond","gr5cd7df":"service_alias","gr5cd7df-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:21:29Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:22:23Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr5cd7df":{},"f:gr5cd7df-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"a5e3defb","match":{"paths":["/"],"hosts":["gr5cd7df-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr5cd7df","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr5cd7df" not found"}]}}}}
2025-04-30T18:41:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:42:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/upstreams/33e889a5 }
2025-04-30T18:42:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/routes/e38a1097 }
2025-04-30T18:42:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:42:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"1ec1eec3-67f8-464b-b94e-409fc9d2555f","resourceVersion":"6146721","generation":2,"creationTimestamp":"2025-04-28T06:51:37Z","labels":{"app_id":"90e5e2c777914574bba211f03411be5e","component_sort":"gr2a04e4","creator":"Rainbond","gr2a04e4":"service_alias","gr2a04e4-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:51:37Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:52:38Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr2a04e4":{},"f:gr2a04e4-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"57b48916","match":{"paths":["/
"],"hosts":["gr2a04e4-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr2a04e4","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr2a04e4" not found"}]}}}}
2025-04-30T18:42:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:42:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:42:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"a920b483-5ded-4553-95f8-1e6737b9aa0d","resourceVersion":"4247792","generation":2,"creationTimestamp":"2025-04-21T13:21:29Z","labels":{"app_id":"dfc3125dc3774ba3b6878b3d5f77c370","component_sort":"gr5cd7df","creator":"Rainbond","gr5cd7df":"service_alias","gr5cd7df-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:21:29Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:22:23Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr5cd7df":{},"f:gr5cd7df-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"a5e3defb","match":{"paths":["/"],"hosts":["gr5cd7df-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr5cd7df","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr5cd7df" not found"}]}}}}
2025-04-30T18:42:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:43:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/upstreams/33e889a5 }
2025-04-30T18:43:21+08:00 error adapter/etcd.go:141 failed to create object, ignore it{error 26 0 rpc error: code = InvalidArgument desc = etcdserver: duplicate key given in txn request} {revision 11 86 } {key 15 0 /apisix/routes/e38a1097 }
2025-04-30T18:43:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:43:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"1ec1eec3-67f8-464b-b94e-409fc9d2555f","resourceVersion":"6146721","generation":2,"creationTimestamp":"2025-04-28T06:51:37Z","labels":{"app_id":"90e5e2c777914574bba211f03411be5e","component_sort":"gr2a04e4","creator":"Rainbond","gr2a04e4":"service_alias","gr2a04e4-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:51:37Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-28T06:52:38Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr2a04e4":{},"f:gr2a04e4-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"57b48916","match":{"paths":["/
"],"hosts":["gr2a04e4-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr2a04e4","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr2a04e4" not found"}]}}}}
2025-04-30T18:43:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr2a04e4-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
2025-04-30T18:43:26+08:00 error translation/apisix_route.go:629 ApisixRoute refers to non-existent Service port {"namespace": "zbdq", "port": "5000"}
2025-04-30T18:43:26+08:00 error apisix/apisix_route.go:327 failed to translate ApisixRoute v2 {"error": "service.spec.ports: port not defined", "object": {"Object":{"kind":"ApisixRoute","apiVersion":"apisix.apache.org/v2","metadata":{"name":"gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","generateName":"rbd","namespace":"zbdq","uid":"a920b483-5ded-4553-95f8-1e6737b9aa0d","resourceVersion":"4247792","generation":2,"creationTimestamp":"2025-04-21T13:21:29Z","labels":{"app_id":"dfc3125dc3774ba3b6878b3d5f77c370","component_sort":"gr5cd7df","creator":"Rainbond","gr5cd7df":"service_alias","gr5cd7df-5000-yz76a4i0-cecw.wh":"host","port":"5000"},"managedFields":[{"manager":"apisix-ingress-controller","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:21:29Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{}}},"subresource":"status"},{"manager":"rainbond-api","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2025-04-21T13:22:23Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app_id":{},"f:component_sort":{},"f:creator":{},"f:gr5cd7df":{},"f:gr5cd7df-5000-yz76a4i0-cecw.wh":{},"f:port":{}}},"f:spec":{".":{},"f:http":{},"f:ingressClassName":{}}}}]},"spec":{"ingressClassName":"apisix","http":[{"name":"a5e3defb","match":{"paths":["/*"],"hosts":["gr5cd7df-5000-yz76a4i0-cecw.wh"]},"backends":[{"serviceName":"gr5cd7df","servicePort":5000,"weight":100}],"websocket":false,"plugins":[{"name":"response-rewrite","enable":true,"config":{"body":"请打开对外访问","status_code":404},"secretRef":""}],"authentication":{"enable":false,"type":"basicAuth","keyAuth":{},"jwtAuth":{},"ldapAuth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","observedGeneration":1,"lastTransitionTime":null,"reason":"ResourceSyncAborted","message":"service "gr5cd7df" not found"}]}}}}
2025-04-30T18:43:26+08:00 warn apisix/apisix_route.go:486 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"zbdq/gr5cd7df-5000-yz76a4i0-cecw.whp-ps-s","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "service.spec.ports: port not defined"}
Loading...
You're using Lens Personal (for individuals or companies with < $10M annual revenue or funding)

期望结果

希望不要手动经常重启gateway

解决方案(可选)

No response

操作系统 && Rainbond 版本

centos7

是否愿意提交 PR 解决该问题?

  • 我愿意提交 PR 来解决该问题

Metadata

Metadata

Assignees

Labels

BugBUG Feedback

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions