How to get the vm which an app is deployed on?

52 views
Skip to first unread message

hai wang

unread,
Oct 24, 2014, 4:40:48 AM10/24/14
to vcap...@cloudfoundry.org
I got a failure when push an app, and I want to logon to the vm and check the logs. But I don't know which vm to logon.

---
Thanks
Jamee

Noburou Taniguchi

unread,
Oct 27, 2014, 9:03:04 AM10/27/14
to vcap...@cloudfoundry.org
More information is required to answer your question.

Please push the app with CF_TRACE=true:

CF_TRACE=true cf push <YOUR APP NAME> ...

and post the log to this thread.

It is also helpful to tail logs from your app while pushing the app, by:

cf logs <YOUR APP NAME>

It is recommended to tail the logs from another terminal (other than the terminal where you are pushing the app, I mean).

2014年10月24日金曜日 17時40分48秒 UTC+9 hai wang:

jbayer

unread,
Oct 27, 2014, 6:43:40 PM10/27/14
to vcap...@cloudfoundry.org
if you have more than 1 DEA, then you'll need to look at the cloud controller logs to see which DEA was selected for staging. then you can go to that DEA VM and check it's logs. if the app is running and you want to troubleshoot, the /v2/apps/GUID/stats endpoint shows which host (DEA) you are running on via the IP address.

hai wang

unread,
Nov 3, 2014, 2:20:13 AM11/3/14
to vcap...@cloudfoundry.org
Thanks, I checked the logs, and I found

在 2014年10月28日星期二UTC+8上午6时43分40秒,jbayer写道:
Reply all
Reply to author
Forward
0 new messages