"json: cannot unmarshal number ****** into Go struct field .stats.usage.mem of type int64" error after running cf push/restage/start/restart
search cancel

"json: cannot unmarshal number ****** into Go struct field .stats.usage.mem of type int64" error after running cf push/restage/start/restart

book

Article ID: 298473

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

cf push / restage / start / restart intermittently fails with the following error message:
json: cannot unmarshal number 18303746057634238464 into Go struct field .mem of type int64


Environment

Product Version: Other
OS: Linux

Resolution

The issue occurs due to a potential integer underflow and it is mainly observed in Pivotal Application Service (PAS) / Tanzu Application Service (TAS) releases including garden-runc-release v1.19.18:
  • Pivotal Application Service 2.7.30 - 2.7.32
  • Pivotal Application Service 2.8.24 - 2.8.26
  • VMware Tanzu Application Service for VMs 2.9.18 - 2.9.20
  • VMware Tanzu Application Service for VMs 2.10.10 - 2.10.12
  • VMware Tanzu Application Service for VMs 2.11.0
While not as common, technically this issue could be observed in older garden-runc-releases prior to v1.19.18.

The fix is included in garden-runc-release v1.19.24. To resolve this issue, you need to upgrade to the following PAS / TAS version or later, including garden-runc-release v1.19.24 or later:
  • Pivotal Application Service 2.7.33
  • Pivotal Application Service 2.8.27
  • VMware Tanzu Application Service for VMs 2.9.21
  • VMware Tanzu Application Service for VMs 2.10.13
  • VMware Tanzu Application Service for VMs 2.11.1