mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 21:20:34 +00:00
Added comprehensive logging to track why applicationContainerStatuses collection is empty in PushServerUpdateJob. ## Logging Added ### 1. Raw Sentinel Data (line 113-118) **Logs**: Complete container data received from Sentinel **Purpose**: See exactly what Sentinel is sending **Data**: Container count and full container array with all labels ### 2. Container Processing Loop (line 157-163) **Logs**: Every container as it's being processed **Purpose**: Track which containers enter the processing loop **Data**: Container name, status, all labels, coolify.managed flag ### 3. Skipped Containers - Not Managed (line 165-171) **Logs**: Containers without coolify.managed label **Purpose**: Identify containers being filtered out early **Data**: Container name ### 4. Successful Container Addition (line 193-198) **Logs**: When container is successfully added to applicationContainerStatuses **Purpose**: Confirm containers ARE being processed **Data**: Application ID, container name, container status ### 5. Missing com.docker.compose.service Label (line 200-206) **Logs**: Containers skipped due to missing com.docker.compose.service **Purpose**: Identify the most likely root cause **Data**: Container name, application ID, all labels ## Why This Matters User reported applicationContainerStatuses is empty (`[]`) even though Sentinel is pushing updates. This logging will reveal: 1. Is Sentinel sending containers at all? 2. Are containers filtered by coolify.managed check? 3. Is com.docker.compose.service label missing? (most likely) 4. What labels IS Sentinel actually sending? ## Expected Findings Based on investigation, the issue is likely: - Sentinel is NOT sending com.docker.compose.service in labels - Or Sentinel uses a different label format/name - Containers pass all other checks but fail on line 190-206 ## Next Steps After logs appear, we'll see exactly which filter is blocking containers and can fix the root cause (likely need to extract com.docker.compose.service from container name or use a different label source). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 KiB
24 KiB