mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-21 01:53:24 +00:00
30a4424f61
PRODUCTION BUG: Argument list too long when sending large stats CSV ERROR MESSAGE: "Heartbeat failed (HTTP /usr/local/bin/haproxy-agent: line 417: /usr/bin/curl: Argument list too long)" ROOT CAUSE: - curl output capture exceeded system argument list limit - Large stats CSV (>200KB, production can be >1MB) - Shell variable assignment hit system limits SOLUTION: - Redirect curl output to temp file (/tmp/heartbeat_response_$$.txt) - Read HTTP code and response body from temp file - Cleanup temp file immediately after use BENEFITS: - No size limit on HTTP responses - Production-safe for large HAProxy instances - Better error handling with detailed logging FILES CHANGED: - backend/utils/agent_scripts/linux_install.sh - backend/utils/agent_scripts/macos_install.sh - Updated both embedded daemon and installer functions