Comments (11)
@StarlightIbuki @chronolaw This issue seems to have happened while get_all_upstreams
returns nil + error, but error was swallowed : https://github.com/Kong/kong/blob/3.0.0/kong/runloop/balancer/healthcheckers.lua#L419.
It should have the same issue in latest version, should we check the error and don't iterate the get_all_upstreams
if it returns nil + error? like below:
function healthcheckers_M.stop_healthcheckers(delay)
local upstreams, err = upstreams.get_all_upstreams()
if err ~= nil {
return err
}
for _, id in pairs() do
...
end
And log the error message where calls the stop_healthcheckers
.
from kong.
@oowl , could you take a look? thanks.
from kong.
Is there any other error log with the error or the critical level?
Also, we always recommend updating to the latest version.
from kong.
I didn't see any other error logs.
from kong.
How often does this occur? It sounds like a previously-fixed bug. Could you also try with the latest version?
from kong.
Kong gateway 3.0 is EOL, could you upgrade it to the latest or LTS version and try again?
from kong.
Hi @git-hulk, We have fixed this bug in the master branch, Please be patient to wait for the next major version release. It will be included.
from kong.
@oowl That's cool, thank you!
from kong.
failed the initial dns/balancer resolve for 'UPSTREAM_HOST' with: failed to get from node cache: could not acquire callback lock: timeout
Hello, we have checked the relevant logs and found that they should be related to this.
And it can be confirmed that 500 is not related to the fix above.
from kong.
Can this be reopened?
from kong.
@dubuqingfeng Hi, You can open a new issue, and I will be happy to help you investigate.
from kong.
Related Issues (20)
- [kong] schedule.lua:172 [job prefetch]Redis bgsave failed. Error: ERR unknown command 'bgsave' HOT 2
- Control Plane fails to pull information from database pending "migrations finish" command HOT 2
- In Kong 3.6, X-Kong-Request-Debug-Output is not provided in the response header for successful scenarios HOT 3
- AI-Proxy plugin: "An unexpected error occurred" when upstream URL is missing port/path HOT 6
- AI Prompt Guard plugin: Unexpected error due to malformed `messages` array in request body HOT 4
- Problems with Kong installation via Helm Chart 2.38.0 HOT 3
- Admissionwebhook misses faulty regex HOT 1
- Exceptions while trying to store secrets using environment variables option HOT 8
- kong lua-resty-lock lock timeout 500 error {"message":"An unexpected error occurred"} HOT 2
- custom proxy_access_log still not working in 3.4.* HOT 3
- Kong prometheus plugin does not record 404 response codes from proxy HOT 2
- Timeout when running migrations from 3.5 to 3.6 leading to corrupted data (migration ran twice) HOT 3
- Admin API address in "New Connnection" form only support IP, not DNS. HOT 2
- Upsert target is not an upsert HOT 4
- failed to set X-Kong-Upstream-Status header while sending to client HOT 2
- [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused HOT 2
- DNS resolution failed: dns server error: 3 name error HOT 14
- Optional capture groups are broken with the request-transformer plugin and traditional_compatible router HOT 4
- Error in logs: failed to run timer HOT 2
- Database migration failed while using helm chart HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong.