wofr commented on issue #1996: URL: https://github.com/apache/apisix-ingress-controller/issues/1996#issuecomment-1943214052
I do have the same problem. I added a route which is linked to Upstream to reach an external service, basically like described here [https://apisix.apache.org/docs/ingress-controller/tutorials/external-service/](https://apisix.apache.org/docs/ingress-controller/tutorials/external-service/), but it doesn't work. In the Ingress Controller I do get the following errors ``` 2024-02-14T15:08:40+08:00 error apisix/apisix_route.go:379 failed to sync ApisixRoute to apisix {"error": "1 error occurred:\n\t* unexpected status code 400; error message: {\"error_msg\":\"failed to fetch upstream info by upstream id [53af2afe], response code: 404\"}\n\n\n"} 2024-02-14T15:08:40+08:00 warn apisix/apisix_route.go:481 sync ApisixRoute failed, will retry {"object": {"Type":4,"Object":{"Key":"tracs-dev/tracs-dev-notifications-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "1 error occurred:\n\t* unexpected status code 400; error message: {\"error_msg\":\"failed to fetch upstream info by upstream id [53af2afe], response code: 404\"}\n\n\n"} 2024-02-14T15:08:40+08:00 warn apisix/cluster.go:1164 upstream not found {"id": "53af2afe", "url": "http://tracs-dev-apisix-admin.tracs-dev.svc.cluster.local:9180/apisix/admin/upstreams/53af2afe", "cluster": "default"} 2024-02-14T15:08:40+08:00 error apisix/apisix_upstream.go:375 failed to get upstream tracs-dev_tracs-dev-notification-upstream: not found 2024-02-14T15:08:40+08:00 warn apisix/apisix_upstream.go:488 sync ApisixUpstream failed, will retry {"object": {"Type":4,"Object":{"Key":"tracs-dev/tracs-dev-notification-upstream","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "not found"} 2024-02-14T15:08:40+08:00 error translation/apisix_route.go:236 failed to translate ApisixUpstream at Upstream[0] {"error": "ApisixUpstream tracs-dev/tracs-dev-notification-upstream ExternalNodes[0]'s name as Domain must match lowercase RFC 1123 subdomain. a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character", "apisix_upstream": "tracs-dev/tracs-dev-notification-upstream"} 2024-02-14T15:08:40+08:00 error apisix/route.go:138 failed to create route: unexpected status code 400; error message: {"error_msg":"failed to fetch upstream info by upstream id [53af2afe], response code: 404"} ``` and this is the status of the Upstream ``` Status: Conditions: Message: not found Observed Generation: 3 Reason: ResourceSyncAborted Status: False Type: ResourcesAvailable Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning ResourceSyncAborted 66s (x25052 over 18h) ApisixIngress ApisixIngress synced failed, with error: not found ``` Used versions: tracs-dev-apisix-745b4b89b6 | OK | apisix: apache/apisix:3.5.0-debian tracs-dev-ingress-controller-7fcd8d7bf8 | OK | ingress-controller: apache/apisix-ingress-controller:1.7.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
