# Lease renewal failing for Vault

**URL:** <https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692>\
**Category:** Vault\
**Tags:** vault\
**Created:** [October 17, 2022, 7:23am UTC](https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692 "2022-10-17T07:23:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishesh](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/vishesh/32/24440_2.png) [@Vishesh](https://discuss.hashicorp.com/u/Vishesh)\
**Post date:** [October 17, 2022, 7:23am UTC](https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692/1 "2022-10-17T07:23:26Z")

</div>

We recently upgraded to Vault `1.10.3` on our development clusters. We make use of the vault agent injector to inject secrets into other services. After the upgrade we’re seeing the following errors both in the vault sidecar as well as the vault container itself.

Vault Sidecar Logs:

```auto
URL: PUT http://vault.default.svc:8200/v1/sys/leases/renew
Code: 400. Errors:

* lease not found
2022-10-17T07:05:38.818Z [WARN] vault.read(aws/creds/asgard): renewer done (maybe the lease expired)
2022-10-17T07:05:40.047Z [INFO] (runner) rendered "(dynamic)" => "/vault/secrets/aws"
2022-10-17T07:11:08.991Z [WARN] vault.read(rabbitmq/creds/asgard): failed to renew: Error making API request.

URL: PUT http://vault.default.svc:8200/v1/sys/leases/renew
Code: 400. Errors:

* lease not found
2022-10-17T07:11:08.991Z [WARN] vault.read(rabbitmq/creds/asgard): renewer done (maybe the lease expired)
2022-10-17T07:11:09.295Z [INFO] (runner) rendered "(dynamic)" => "/vault/secrets/rmq"
2022-10-17T07:20:09.414Z [WARN] vault.read(aws/creds/asgard): renewer done (maybe the lease expired)
2022-10-17T07:20:10.645Z [INFO] (runner) rendered "(dynamic)" => "/vault/secrets/aws"

```

Vault Service Logs:

```auto
username: kubernetes-default-asgard-1d4815f4-e782-6a33-f35d-13de8b466956
2022-10-17T06:50:26.667Z [INFO] expiration: revoked lease: lease_id=aws/creds/asgard/iYs6Gx71sP8fqvgvtAMNteYj
2022-10-17T06:51:21.535Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=aws/creds/asgard/IqDTdxUldaE1NgC3XsX9hEDm error="lease not found"
2022-10-17T06:51:51.117Z [INFO] expiration: revoked lease: lease_id=rabbitmq/creds/asgard/PTq1SPE54FoshLKKbrSAaWn0
2022-10-17T06:53:18.519Z [INFO] expiration: revoked lease: lease_id=rabbitmq/creds/asgard/ou8SHHKWI2Tay54VXhhHbake
2022-10-17T06:53:53.981Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=aws/creds/asgard/iYs6Gx71sP8fqvgvtAMNteYj error="lease not found"
2022-10-17T06:54:52.531Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=rabbitmq/creds/janus/9vGtMMCvcUyie6FW4Db7UKcb error="lease not found"
username: kubernetes-default-janus-01469ebf-0496-ea7d-fc8b-54b477b9aa42
username: kubernetes-default-janus-119fe492-73b1-4f80-64ea-96d4cb450dcd
2022-10-17T06:55:41.250Z [TRACE] activity: writing segment on timer expiration
2022-10-17T06:55:41.449Z [DEBUG] core.autoseal: seal health test passed
2022-10-17T06:59:14.654Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=rabbitmq/creds/asgard/PTq1SPE54FoshLKKbrSAaWn0 error="lease not found"
username: kubernetes-default-asgard-696e50c9-115c-d4de-c4c6-58a9dc4e7715
2022-10-17T07:02:16.784Z [INFO] expiration: revoked lease: lease_id=aws/creds/asgard/YNQGD7zr28eH7EvrHh0LCQXB
2022-10-17T07:05:10.235Z [INFO] expiration: revoked lease: lease_id=rabbitmq/creds/asgard/Uy7YVbGP7yX5mhve7lW1CFuf
2022-10-17T07:05:41.250Z [TRACE] activity: writing segment on timer expiration
2022-10-17T07:05:41.464Z [DEBUG] core.autoseal: seal health test passed
2022-10-17T07:05:45.430Z [INFO] expiration: revoked lease: lease_id=aws/creds/asgard/hjGzHoP5ThdBMho4kIEh560N
2022-10-17T07:09:10.907Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=aws/creds/asgard/hjGzHoP5ThdBMho4kIEh560N error="lease not found"
2022-10-17T07:11:33.210Z [INFO] expiration: revoked lease: lease_id=rabbitmq/creds/janus/r8sM9LwvAPCz2hpVYsZRLwUe
2022-10-17T07:12:41.570Z [ERROR] secrets.system.system_cf93c3cc: lease renewal failed: lease_id=rabbitmq/creds/asgard/Tf7U1tlJuvKdRYZ8wDK2z3kP error="lease not found"
username: kubernetes-default-asgard-9ae61f97-37e6-6cfb-5ce7-7dfd3db2db09
2022-10-17T07:15:41.250Z [TRACE] activity: writing segment on timer expiration
2022-10-17T07:15:41.452Z [DEBUG] core.autoseal: seal health test passed
2022-10-17T07:15:55.505Z [INFO] expiration: revoked lease: lease_id=rabbitmq/creds/asgard/Vgvv0tAxpu7Mr5mfSI858Fw8
2022-10-17T07:17:33.693Z [INFO] expiration: revoked lease: lease_id=aws/creds/asgard/4N8dQTmKDYMTwCA4x0tpZ8Bu

```

Haven’t been able to figure out what’s the reason for this.

---

<div class="post-metadata">

**Author:** ![dani-CO-CN](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dani-co-cn/32/34110_2.png) [@dani-CO-CN](https://discuss.hashicorp.com/u/dani-CO-CN)\
**Post date:** [February 24, 2023, 5:59pm UTC](https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692/2 "2023-02-24T17:59:24Z")

</div>

Could you find find a solution for the problem?

---

<div class="post-metadata">

**Author:** ![smrutimandal](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/smrutimandal/32/28923_2.png) [@smrutimandal](https://discuss.hashicorp.com/u/smrutimandal)\
**Post date:** [August 26, 2023, 9:25pm UTC](https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692/3 "2023-08-26T21:25:42Z")

</div>

I am using vault `1.11.2` and still observing the error.

[PR# 11445](https://github.com/hashicorp/vault/pull/11445) was supposed to have fixed the issue but looks like it still occurs.

Can anyone from Hashicorp comment please.

---

<div class="post-metadata">

**Author:** ![nicocolt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/nicocolt/32/41590_2.png) [@nicocolt](https://discuss.hashicorp.com/u/nicocolt)\
**Post date:** [May 8, 2024, 5:29pm UTC](https://discuss.hashicorp.com/t/lease-renewal-failing-for-vault/45692/4 "2024-05-08T17:29:25Z")

</div>

Hello,

I’m using vault 1.16.1 and observing the same error:

```auto
2024-05-08T19:22:31.232+0200 [ERROR] secrets.system.system_e1a6ef42: lease renewal failed: lease_id=database/creds/web/3jUk8k0v3RoIGl7BaJTJX7py error="lease not found"

```

Can you help me a bit please ?  
Best,  
Nico
