-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fixed the Sentinel bug #7421
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
base: next
Are you sure you want to change the base?
fixed the Sentinel bug #7421
Conversation
|
Hey @sanjana2505006 the target branch should be |
|
@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'); |
There was a problem hiding this comment.
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".
There was a problem hiding this comment.
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).
|
Hello @ShadowArcanist @Cinzya, |
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.