dataflow-video-analytics icon indicating copy to clipboard operation
dataflow-video-analytics copied to clipboard

"Error occurred in the launcher container: Template launch failed. See console logs."

Open kgrynko opened this issue 4 years ago • 2 comments

Hi all!

I get an error when trying to run this piece of code in Cloud Shell:

gcloud beta dataflow flex-template run "video-object-tracking" \
--project=${PROJECT} \
--region=${REGION} \
--template-file-gcs-location=gs://${DATAFLOW_TEMPLATE_BUCKET}/dynamic_template_video_analytics.json \
--parameters=<<'EOF'
^~^autoscalingAlgorithm="NONE"~numWorkers=5~maxNumWorkers=5~workerMachineType=n1-highmem-4
  ~inputNotificationSubscription=projects/${PROJECT}/subscriptions/${GCS_NOTIFICATION_SUBSCRIPTION}
  ~outputTopic=projects/${PROJECT}/topics/${OBJECT_DETECTION_TOPIC}
  ~errorTopic=projects/${PROJECT}/topics/${ERROR_TOPIC}
  ~features=OBJECT_TRACKING~entities=window,person~confidenceThreshold=0.9~windowInterval=1
  ~tableReference=${PROJECT}:${BIGQUERY_DATASET}.object_tracking_analysis
  ~streaming=true
EOF

The error in Dataflow:

Error occurred in the launcher container: Template launch failed. See console logs

The error in console logs: "message":"java failed with exit status 1"

Any ideas where t come from?

Thank you!

kgrynko avatar Dec 22 '21 22:12 kgrynko

Dataflow logs should have a line like this: Console log from launcher will be available at gs://<your temp gcs storage bucket>/tmp/template_launches/2021-12-16_09_02_11-1572174414494443259/console_logs. That should be the output of the launcher process which runs main() of the pipeline and should have at least the stack trace. is there anything of interest in that log?

slilichenko avatar Dec 22 '21 22:12 slilichenko

Yes, this message : "message":"java failed with exit status 1"

kgrynko avatar Dec 22 '21 23:12 kgrynko