Skip to content

Conversation

@sanjana2505006
Copy link

This pull request fixes the issue described in #7420.
Fix: Sentinel failing to start due to version 0.0.0
Sentinel was using the fallback version 0.0.0 when the external version check failed, causing the container to pull a non-existent image.
I updated get_latest_sentinel_version in bootstrap/helpers/shared.php to read the version from the local versions.json instead of relying on a network request.
This ensures Sentinel always uses a valid version and starts correctly, even offline.

@ShadowArcanist
Copy link
Member

Hey @sanjana2505006 the target branch should be next not v4.x

@ShadowArcanist ShadowArcanist added the 💤 Waiting for changes PRs awaiting changes from the author. label Nov 30, 2025
@sanjana2505006
Copy link
Author

@ShadowArcanist okay, let me fix this!

$versions = get_versions_data();

return data_get($versions, 'coolify.sentinel.version');
return data_get($versions, 'coolify.sentinel.version', '0.0.0');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentinel doesn't depend on a specific Coolify version. This way, people would never be able to receive the latest version until they update Coolify. I think it would be better if we keep the network request, and only read the local version if that request fails as the "new fallback".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Cinzya in the new commit,
0.0.0 is just a final safety fallback:
The value 0.0.0 is only used if both the network fetch and the local file fail (which is extremely unlikely).

@sanjana2505006 sanjana2505006 changed the base branch from v4.x to next November 30, 2025 14:32
@sanjana2505006
Copy link
Author

Hello @ShadowArcanist @Cinzya,
If there's anything further needed on this PR, please let me know. I'm happy to update accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💤 Waiting for changes PRs awaiting changes from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants