Ask Your Question

Revision history [back]

Cannot change state from RUNNING to STARTING means that you are trying to start a pipeline that is already running. You can check the state of the pipeline with GET /rest/v1/pipeline/{pipelineId}/status.

e.g.

% curl -u admin:admin -H "X-Requested-By:sdc" http://localhost:18630/rest/v1/pipeline/SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe/status
{
  "pipelineId" : "SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe",
  "rev" : "0",
  "user" : "admin",
  "status" : "RUNNING",
  "message" : null,
  "timeStamp" : 1582564847836,
  "attributes" : {
    "IS_REMOTE_PIPELINE" : false,
    "RUNTIME_PARAMETERS" : null,
    "INTERCEPTOR_CONFIGS" : [ ]
  },
  "executionMode" : "STANDALONE",
  "metrics" : null,
  "retryAttempt" : 0,
  "nextRetryTimeStamp" : 0,
  "name" : "SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe"
}

If I try to start it, I'll get the same error as you:

% curl -u admin:admin -H "X-Requested-By:sdc" http://localhost:18630/rest/v1/pipeline/SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe/start -X POST
{
  "RemoteException" : {
    "message" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException: CONTAINER_0102 - Cannot change state from RUNNING to STARTING",
    "errorCode" : "CONTAINER_0102",
    "localizedMessage" : "CONTAINER_0102 - Cannot change state from RUNNING to STARTING",
    "exception" : "PipelineRunnerException",
    "javaClassName" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException",
    "antennaDoctorMessages" : [ ],
    "stackTrace" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException: CONTAINER_0102 - Cannot change state from RUNNING to STARTING\n\tat com.streamsets.datacollector.execution.runner.standalone.StandaloneRunner.checkState(StandaloneRunner.java:682)\n\tat ..."
  }
}