Error while pushing app to cloud foundry: FAILED Error processing app file: The directory is not empty

Viewed 1608

I am facing this error while pushing the spring app to the cloud foundry with the cf push command. Earlier it was being deployed just fine.

D:\Documents\PredixApps\locomotive\locomotive-ingestion>cf push Using manifest file D:\Documents\PredixApps\locomotive\locomotive-ingestion\manifest.yml

Updating app ehsan-locomotive-dataingestion-service in org username / space dev as username... OK

Uploading ehsan-locomotive-dataingestion-service... Uploading app files from: C:\Users\EHSAN~1.WAR\AppData\Local\Temp\unzipped-app070592951 Uploading 878K, 143 files Done uploading OK FAILED Error processing app files: remove C:\Users\EHSAN~1.WAR\AppData\Local\Temp\unzipped-app070592951\lib: The directory is not empty.

2 Answers

I have encountered this same problem and fixed this by upgrading my CloudFoundry CLI from version 6.25.0 to version 6.32.0.

It was a bug with CloudFoundry CLI versions less than 6.32.0 per this reference https://github.com/cloudfoundry/cli/issues/1223

Related