Thanks Eric, that makes a lot of sense. Looking at the worker jobs, nothing seems to stick out, these are the two items in the log
After Push:
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7558)] Job VCAP::CloudController::Jobs::ExceptionCatchingJob (id=6) RUNNING
{"timestamp":1394139455.7768395,"message":"blobstore.cp-start","log_level":"info","source":"cc.blobstore","data":{"destination_key":"b7998ccb-0966-4eed-9a82-1cf3542a5395","source_path":"/var/vcap/data/cloud_controller_ng/tmp/safezipper20140306-7558-1q11q5/package.zip","bucket":"cc-packages"},"thread_id":16010940,"fiber_id":39815220,"process_id":7558,"file":"/var/vcap/data/packages/cloud_controller_ng/41.1/cloud_controller_ng/lib/cloud_controller/blobstore/client.rb","lineno":47,"method":"cp_to_blobstore"}
{"timestamp":1394139455.8918765,"message":"blobstore.cp-finish","log_level":"info","source":"cc.blobstore","data":{"destination_key":"b7998ccb-0966-4eed-9a82-1cf3542a5395","duration_seconds":0.115279247,"size":903},"thread_id":16010940,"fiber_id":39815220,"process_id":7558,"file":"/var/vcap/data/packages/cloud_controller_ng/41.1/cloud_controller_ng/lib/cloud_controller/blobstore/client.rb","lineno":60,"method":"cp_to_blobstore"}
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7558)] Job VCAP::CloudController::Jobs::ExceptionCatchingJob (id=6) COMPLETED after 0.2888
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7558)] 1 jobs processed at 3.3084 j/s, 0 failed
After Staging:
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7627)] Job VCAP::CloudController::Jobs::ExceptionCatchingJob (id=7) RUNNING
{"timestamp":1394139479.8246639,"message":"blobstore.cp-start","log_level":"info","source":"cc.blobstore","data":{"destination_key":"b7998ccb-0966-4eed-9a82-1cf3542a5395/b222524b022b1eba5dc83ef669a638cdcd29714b","source_path":"/var/vcap/data/cloud_controller_ng/tmp/staged_droplet_uploads/0000000004","bucket":"cc-droplets"},"thread_id":8611500,"fiber_id":33206960,"process_id":7627,"file":"/var/vcap/data/packages/cloud_controller_ng/41.1/cloud_controller_ng/lib/cloud_controller/blobstore/client.rb","lineno":47,"method":"cp_to_blobstore"}
{"timestamp":1394139481.5314448,"message":"blobstore.cp-finish","log_level":"info","source":"cc.blobstore","data":{"destination_key":"b7998ccb-0966-4eed-9a82-1cf3542a5395/b222524b022b1eba5dc83ef669a638cdcd29714b","duration_seconds":1.706629006,"size":23388778},"thread_id":8611500,"fiber_id":33206960,"process_id":7627,"file":"/var/vcap/data/packages/cloud_controller_ng/41.1/cloud_controller_ng/lib/cloud_controller/blobstore/client.rb","lineno":60,"method":"cp_to_blobstore"}
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7627)] Job VCAP::CloudController::Jobs::ExceptionCatchingJob (id=7) COMPLETED after 1.8844
[Worker(host:2f179f27-a031-43ca-adad-782ea70197d0 pid:7627)] 1 jobs processed at 0.5188 j/s, 0 failed
It's a bit tough to catch the job ID in time, but if I turn on tracing from the cf client, I see this in both the response from the server, as well as the Cloud Controller logs:
{"timestamp":1394139700.879901,"message":"Encountered error on stager with id 1-6a33b83af1a54ad5a94bd299df081bd1: Staging error: failed to stage application:\nError uploading: http://api.cfv2.mydomain.com/v2/jobs/2581e044-6ce6-4652-84e0-20657e35a359 (Polling status: 303 - )\n\n/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/app_stager_task.rb:162:in `check_staging_error!'Which bring me back to the original error. The response to the client includes the full stacktrace, is this expected?
I've also upgraded to 161 to see if it happened to be a weird one-off bug I was seeing, but I'm still seeing the same behavior, so I'm thinking it's a config issue. Mark's comment got me curious, from my Cloud Foundry manifest, I've specified only the following
ccng:
resource_pool:
resource_directory_key: cc-resources
I wasn't sure if the fog_connection defaulted to the local provider or not, but it seems explicitly defining this doesn't resolve the issue either:
ccng:
resource_pool:
resource_directory_key: cc-resources
fog_connection:
provider: Local
local_root: /var/vcap/nfs/store
- Brian