{"record":{"id":"0ca7923b082c62b6","repo":"vxcontrol/pentagi","slug":"flowfiles-containernotrunning","errorCode":"FlowFiles.ContainerNotRunning","errorMessage":"container '%s' is not running; start the flow before pulling files","messagePattern":"container '(.+?)' is not running; start the flow before pulling files","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"backend/pkg/server/services/flow_files.go","lineNumber":741,"sourceCode":"\tif s.dockerClient == nil {\n\t\terr = errors.New(\"docker client not configured on this server\")\n\t\tlogger.FromContext(c).WithError(err).WithField(\"flow_id\", flowID).Error(\"docker client unavailable for pull\")\n\t\tresponse.Error(c, response.ErrInternal, err)\n\t\treturn\n\t}\n\n\tcontainerName := primaryContainerName(s.tenantPrefix, flowID)\n\trunning, err := s.dockerClient.IsContainerRunning(c.Request.Context(), containerName)\n\tif err != nil {\n\t\tlogger.FromContext(c).WithError(err).WithFields(map[string]any{\n\t\t\t\"flow_id\":        flowID,\n\t\t\t\"container_name\": containerName,\n\t\t}).Error(\"error checking container status for pull\")\n\t\tresponse.Error(c, response.ErrInternal, err)\n\t\treturn\n\t}\n\tif !running {\n\t\terr = fmt.Errorf(\"container '%s' is not running; start the flow before pulling files\", containerName)\n\t\tlogger.FromContext(c).WithError(err).WithField(\"flow_id\", flowID).Error(\"container not running for pull\")\n\t\tresponse.Error(c, response.ErrFlowFilesContainerNotRunning, err)\n\t\treturn\n\t}\n\n\t// ── Phase 2: pull each validated entry from the container ─────────────────\n\tsyncedFiles := make([]models.FlowFile, 0, len(entries))\n\taddedFiles := make([]models.FlowFile, 0, len(entries))\n\tupdatedFiles := make([]models.FlowFile, 0)\n\n\tfor _, entry := range entries {\n\t\treader, _, err := s.dockerClient.CopyFromContainer(c.Request.Context(), containerName, entry.containerPath)\n\t\tif err != nil {\n\t\t\tlogger.FromContext(c).WithError(err).WithFields(map[string]any{\n\t\t\t\t\"flow_id\":        flowID,\n\t\t\t\t\"container_path\": entry.containerPath,\n\t\t\t}).Error(\"error copying from container\")\n\t\t\tresponse.Error(c, response.ErrInternal, err)","sourceCodeStart":723,"sourceCodeEnd":759,"githubUrl":"https://github.com/vxcontrol/pentagi/blob/ea665308baaff015b226f308438a68d929d0f29b/backend/pkg/server/services/flow_files.go#L723-L759","documentation":"Error \"container '%s' is not running; start the flow before pulling files\" thrown in vxcontrol/pentagi.","triggerScenarios":"Thrown at backend/pkg/server/services/flow_files.go:741 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ea665308baaff015b226f308438a68d929d0f29b","analyzedAt":"2026-09-01T14:16:31.421Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}