From 1618b49d5b01aa3a84d948f28f7f796cb6fa1909 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Mon, 21 Aug 2017 15:04:31 -0700 Subject: [PATCH] registry/handlers: ignore notfound on storage driver healthcheck Signed-off-by: Stephen J Day --- registry/handlers/app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index 813bae16..e38050cb 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -346,7 +346,10 @@ func (app *App) RegisterHealthChecks(healthRegistries ...*health.Registry) { storageDriverCheck := func() error { _, err := app.driver.Stat(app, "/") // "/" should always exist - return err // any error will be treated as failure + if _, ok := err.(storagedriver.PathNotFoundError); ok { + err = nil // pass this through, backend is responding, but this path doesn't exist. + } + return err } if app.Config.Health.StorageDriver.Threshold != 0 {