CF CLI intermittently fails with: Error writing config: ... .cf/config.json: no such file or directory
search cancel

CF CLI intermittently fails with: Error writing config: ... .cf/config.json: no such file or directory

book

Article ID: 298384

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

When running CF CLI commands, the following error has been observed:
 
Error writing config: rename /home/<directory>/.cf/temp-configxxxxx /home/<directory>/.cf/config.json: no such file or directory

This seems to be most frequent when running multiple CF CLI commands in parallel. The command will often work again on the next attempt.

Environment

Product Version: 2.12

Resolution

This is a known issue with CF CLI, which is currently unresolved.

An issue has been opened for tracking this issue. Future updates can be found here:

https://github.com/cloudfoundry/cli/issues/2232