mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix health check error (#2447)
This commit is contained in:
@@ -159,7 +159,7 @@ export class AppShowPage {
|
||||
errorText = 'Not running'
|
||||
fixText = 'Start'
|
||||
} else if (depError.type === DependencyErrorType.HealthChecksFailed) {
|
||||
errorText = 'Health check failed'
|
||||
errorText = 'Required health check not passing'
|
||||
} else if (depError.type === DependencyErrorType.Transitive) {
|
||||
errorText = 'Dependency has a dependency issue'
|
||||
}
|
||||
|
||||
@@ -116,11 +116,7 @@ export class DepErrorService {
|
||||
// not running
|
||||
if (
|
||||
depStatus !== PackageMainStatus.Running &&
|
||||
depStatus !== PackageMainStatus.Starting &&
|
||||
!(
|
||||
depStatus === PackageMainStatus.BackingUp &&
|
||||
depInstalled.status.main.started
|
||||
)
|
||||
depStatus !== PackageMainStatus.Starting
|
||||
) {
|
||||
return {
|
||||
type: DependencyErrorType.NotRunning,
|
||||
@@ -133,11 +129,10 @@ export class DepErrorService {
|
||||
'health-checks'
|
||||
]) {
|
||||
if (
|
||||
depInstalled.status.main.health[id].result !== HealthResult.Success
|
||||
depInstalled.status.main.health[id]?.result !== HealthResult.Success
|
||||
) {
|
||||
return {
|
||||
type: DependencyErrorType.HealthChecksFailed,
|
||||
check: depInstalled.status.main.health[id],
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -212,7 +207,6 @@ export interface DependencyErrorConfigUnsatisfied {
|
||||
|
||||
export interface DependencyErrorHealthChecksFailed {
|
||||
type: DependencyErrorType.HealthChecksFailed
|
||||
check: HealthCheckResult
|
||||
}
|
||||
|
||||
export interface DependencyErrorTransitive {
|
||||
|
||||
Reference in New Issue
Block a user