Search code examples
cloud-foundryvmc

how to read vmc push log


when i use vmc push project to micro cloudfoundry,start application error, smart tips is below. but i can't find log is my project path.

Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (206K): OK   
Push Status: OK
Stopping Application: OK
Staging Application: OK                                                         
Starting Application: ..........................Error 306: Error retrieving file 'logs/startup.log'

where can found the log?


Solution

  • You ran vmc push to deploy the app. You should be able to run vmc logs myapp to see the logs.

    But I have never seen a 306 error like that. I fear that vmc logs myapp might fail for the same underlying reason you got during push.

    You should be able to ssh to the Micro Cloud Foundry instance and then track down the logs. They'll be here:

    /var/vcap/data/dea/apps/myapp-a-bunch-of-other-letters-and-digits/tomcat