Error uploading application when pushing application


Jim Lin <jimlintw922@...>
 

CF Version: 215

Description: My push command is `cf push myapp -p myapp.war -m 512m -t 120` and I got the error message "Error uploading application". The detail trace log is as following:

============== Start of Log ==============
REQUEST: [2015-10-23T16:12:49+08:00]
GET /v2/jobs/a4866929-aff5-41bb-8891-0540ba45e97c HTTP/1.1
Host: api.140.92.27.254.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.12.0-8c65bbd / linux



RESPONSE: [2015-10-23T16:12:49+08:00]
HTTP/1.1 200 OK
Content-Length: 491
Content-Type: application/json;charset=utf-8
Date: Fri, 23 Oct 2015 08:14:56 GMT
Server: nginx
X-Cf-Requestid: 7cea1ef8-d14a-4260-4b3c-dcc387684911
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 244f6491-caae-43b4-69c8-9e80f4a61c83::38d83968-cd06-4ede-8531-1356d08cf38d

{
"metadata": {
"guid": "a4866929-aff5-41bb-8891-0540ba45e97c",
"created_at": "2015-10-23T08:14:51Z",
"url": "/v2/jobs/a4866929-aff5-41bb-8891-0540ba45e97c"
},
"entity": {
"guid": "a4866929-aff5-41bb-8891-0540ba45e97c",
"status": "failed",
"error": "Use of entity>error is deprecated in favor of entity>error_details.",
"error_details": {
"error_code": "UnknownError",
"description": "An unknown error occurred.",
"code": 10001
}
}
}
FAILED
Error uploading application.
An unknown error occurred.
FAILED
Error uploading application.
An unknown error occurred.

============== End of Log ==============

How to I do diagnosis to find out the root cause?

Thanks all.

Sincerely,
Jim


Daniel Mikusa
 

Jim,

When you're sending requests to `api.system-domain`, you're talking to the
Cloud Controller. I'd suggest you start by taking a look at the Cloud
Controller logs. You can grab them with `bosh logs` or by SSH'ing to the
VM and cd'ing to /var/vcap/sys/log. Hopefully that'll show you an error or
stack trace.

Dan

On Fri, Oct 23, 2015 at 4:32 AM, Jim Lin <jimlintw922(a)gmail.com> wrote:

CF Version: 215

Description: My push command is `cf push myapp -p myapp.war -m 512m -t
120` and I got the error message "Error uploading application". The detail
trace log is as following:

============== Start of Log ==============
REQUEST: [2015-10-23T16:12:49+08:00]
GET /v2/jobs/a4866929-aff5-41bb-8891-0540ba45e97c HTTP/1.1
Host: api.140.92.27.254.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.12.0-8c65bbd / linux



RESPONSE: [2015-10-23T16:12:49+08:00]
HTTP/1.1 200 OK
Content-Length: 491
Content-Type: application/json;charset=utf-8
Date: Fri, 23 Oct 2015 08:14:56 GMT
Server: nginx
X-Cf-Requestid: 7cea1ef8-d14a-4260-4b3c-dcc387684911
X-Content-Type-Options: nosniff
X-Vcap-Request-Id:
244f6491-caae-43b4-69c8-9e80f4a61c83::38d83968-cd06-4ede-8531-1356d08cf38d

{
"metadata": {
"guid": "a4866929-aff5-41bb-8891-0540ba45e97c",
"created_at": "2015-10-23T08:14:51Z",
"url": "/v2/jobs/a4866929-aff5-41bb-8891-0540ba45e97c"
},
"entity": {
"guid": "a4866929-aff5-41bb-8891-0540ba45e97c",
"status": "failed",
"error": "Use of entity>error is deprecated in favor of
entity>error_details.",
"error_details": {
"error_code": "UnknownError",
"description": "An unknown error occurred.",
"code": 10001
}
}
}
FAILED
Error uploading application.
An unknown error occurred.
FAILED
Error uploading application.
An unknown error occurred.

============== End of Log ==============

How to I do diagnosis to find out the root cause?

Thanks all.

Sincerely,
Jim