Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in logs: failed to run timer #13030

Open
1 task done
sebastianrosch opened this issue May 14, 2024 · 2 comments
Open
1 task done

Error in logs: failed to run timer #13030

sebastianrosch opened this issue May 14, 2024 · 2 comments
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@sebastianrosch
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.5.0

Current Behavior

We are seeing a lot of those errors in the logs and don't know where they're coming from:

40#0: *2660424 [lua] job.lua:284: execute(): [timer-ng] failed to run timer unix_timestamp=1715723899267.000000;counter=2046305:meta=debug off: /usr/local/share/lua/5.1/resty/timerng/init.lua:405: expected `interval to be a number

I tried checking the Kong code as well as Openresty and the timer, but couldn't find where this is coming from. I don't know what the impact of this is other than very spammy logs.
Is there a way to get more logs or a full stack trace?
Could this be from the rate limiting plugin?

Expected Behavior

I expect to not have this log emitted.

Steps To Reproduce

No response

Anything else?

Kong running on Kubernetes

@chronolaw
Copy link
Contributor

chronolaw commented May 16, 2024

These logs are generated by lua-resty-timerng (https://github.com/Kong/lua-resty-timer-ng).
@ADD-SP , could you give us more comments? thanks.

@ADD-SP
Copy link
Contributor

ADD-SP commented May 16, 2024

https://github.com/Kong/lua-resty-timer-ng/blob/aec8b5f109e30cabf2f453222a374dc0bca56157/lib/resty/timerng/init.lua#L405

This error means you tried to create a recurrent timer, but the interval is not a number. Are you running custom plugins? Or some other custom code inside Kong Gateway? @sebastianrosch

@chronolaw chronolaw added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

3 participants