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] Out of range value for column 'restart_count' #65

Open
razvanmac95 opened this issue Mar 25, 2024 · 2 comments
Open

[ERROR] Out of range value for column 'restart_count' #65

razvanmac95 opened this issue Mar 25, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@razvanmac95
Copy link

Hi,

The icinga-kubernetes container stopped with the following error message:

can't retry: can't perform "INSERT INTO container (id, state_details, state, started, restart_count, image, cpu_limits, pod_id, name, memory_requests, memory_limits, ready, cpu_requests) VALUES (:id, :state_details, :state, :started, :restart_count, :image, :cpu_limits, :pod_id, :name, :memory_requests, :memory_limits, :ready, :cpu_requests) ON DUPLICATE KEY UPDATE id = VALUES(id), state_details = VALUES(state_details), state = VALUES(state), started = VALUES(started), restart_count = VALUES(restart_count), image = VALUES(image), cpu_limits = VALUES(cpu_limits), pod_id = VALUES(pod_id), name = VALUES(name), memory_requests = VALUES(memory_requests), memory_limits = VALUES(memory_limits), ready = VALUES(ready), cpu_requests = VALUES(cpu_requests)": Error 1264 (22003): Out of range value for column 'restart_count' at row 19

@razvanmac95 razvanmac95 changed the title Out of range value for column 'restart_count' [BUG] Out of range value for column 'restart_count' Mar 25, 2024
@razvanmac95 razvanmac95 changed the title [BUG] Out of range value for column 'restart_count' [ERROR] Out of range value for column 'restart_count' Mar 25, 2024
@lippserd
Copy link
Member

Hi @razvanmac95,

As a temporary fix, please run the following statement in the database:

ALTER TABLE container MODIFY COLUMN restart_count int unsigned NOT NULL;

Best regards,
Eric

@razvanmac95
Copy link
Author

Hi @lippserd

That worked, I'll do it this way until the next release.

Thanks,
Razvan

@razvanmac95 razvanmac95 reopened this Mar 28, 2024
@lippserd lippserd added this to the 0.1.1 milestone Mar 28, 2024
@lippserd lippserd added the bug Something isn't working label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants