Application batch job is failing with Errors: "Vault is sealed\" & "Error getting the Environment with name"
search cancel

Application batch job is failing with Errors: "Vault is sealed\" & "Error getting the Environment with name"

book

Article ID: 416645

calendar_today

Updated On:

Products

VMware Tanzu Spring Runtime VMware Tanzu Application Service

Issue/Introduction

Your Spring application batch job fails with errors: "Vault is sealed" and "Error getting the Environment with name=". Find example error(s) below:

"event_type":"LogMessage", "job":"diego_cell" , "job_index":"123454321","message_type": "OUT", "msg":"org.springframework.web.client.HttpServerErrorException$ServiceUnavailable: 503 Service Unavailable: \"{\"errors\":[\"Vault is sealed\"]}, "origin":"rep","source_instance":"0","source_type":"APP/PROC/WEB"

EnvironmentController.getEnvironment - Error getting the Environment with name=<APP-NAME> profiles=<PROD-EXAMPLE>,cloud label=null 

"cf_app_name":"config-server","cf_space_name": <SPACE-NAME>, ScsCredhubEnvironmentRepository.findOne - Loaded 0 properties

Cause

Vault is sealed. 

Resolution

The errors above indicate that a Vault backed config server is being used and needs unsealing.