cli: Win 32bit - FAILED json: cannot unmarshal number 2147483648 into Go value of type int

Command

cf stop, cf logs, cf apps work but cf restart, cf start, cf app commands don’t work when It is Cloud Foundry CLI v6.36.1 Win 32bit.

C:¥Users¥000239>cf app APP_NAME

What occurred

json: cannot unmarshal number 2147483648 into Go value of type int FAILED

What you expected to occur

CLI Version

Cloud Foundry CLI v6.36.1 Win 32bit. cf version 6.36.1+e3799ad7e.2018-04-04 and cf version 6.26.0+9c9a261.2017-04-06

CC API Endpoint Version

cf api api endpoint: https://api.ng.bluemix.net api version: 2.92.0

CF Trace

Platform & Shell Details

Windows 7 Professional Service Pack 1 Intel CPU/2.90GHz, 4GB memory, 32 bit operating system

Any other relevant information

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Hi everyone, we’ve implemented and accepted a fix for this bug. We are also looking at other properties (thanks @AkihiroKitada) and are fixing those issues in a separate story. Please feel free to reach out if you have any questions/feedback.

Hello folks,

Are there any updates on this issue?

I’m a support engineer at Pivotal. I got this issue from one of our customers. I actually could reproduce the issue with using latest version of CF CLI (v6.42.0) as of now on 32 bit Windows platform. On the other hands, this issue does not happen on 64 bit Windows platform.

The condition to reproduce this is setting memory size larger than 2GB via manifest file or CF CLI’s “-m” option and executing “cf push” command on 32 bit platform such like 32 bit Windows 7.

According to the error message, it seems that this error derived from Golang. I suspect that the type of variable for handling specified memory size is 32 bit Integer on 32 bit platform while it’s 64 bit Integer on 64 bit platform. As a result, CF CLI on 32 bit platform may only be able to handle memory size from −2,147,483,648 to 2,147,483,647 (i.e., -2G < [memory size] < 2G), I think. If so, the issue is very simple. Could you fix this issue as soon as possible?

Thanks, regards.