Error response from daemon: {"message":"No command specified"} , when deploying a MYSQL POD
Issue
Error while deploying OpenShift MySQL pod.
# oc get events
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
2m 2m 1 mysqldb-2-deploy Pod Normal Scheduled default-scheduler Successfully assigned mysqldb-2-deploy to node1.example.com
2m 2m 1 mysqldb-2-deploy Pod spec.containers{deployment} Normal Pulled kubelet, node1.example.com Container image "openshift/origin-deployer:v3.6.0" already present on machine
2m 2m 1 mysqldb-2-deploy Pod spec.containers{deployment} Normal Created kubelet, node1.example.com Created container
2m 2m 1 mysqldb-2-deploy Pod spec.containers{deployment} Normal Started kubelet, node1.example.com Started container
2m 2m 1 mysqldb-2-stbv6 Pod Normal Scheduled default-scheduler Successfully assigned mysqldb-2-stbv6 to node1.example.com
1m 2m 7 mysqldb-2-stbv6 Pod spec.containers{mysql} Normal Pulling kubelet, node1.example.com pulling image "registry.example.com/asubbia/mysql-pxc:latest"
1m 2m 6 mysqldb-2-stbv6 Pod spec.containers{mysql} Normal Pulled kubelet, node1.examlpe.com Successfully pulled image "registry.example.com/asubbia/mysql-pxc:latest"
1m 2m 6 mysqldb-2-stbv6 Pod spec.containers{mysql} Warning Failed kubelet, node1.example.com Error: Error response from daemon: {"message":"No command specified"}
1m 2m 6 mysqldb-2-stbv6 Pod Warning FailedSync kubelet, node1.example.com Error syncing pod
2m 2m 1 mysqldb-2 ReplicationController Normal SuccessfulCreate replication-controller Created pod: mysqldb-2-stbv6
2m 2m 1 mysqldb DeploymentConfig Normal DeploymentCreated deploymentconfig-controller Created new replication controller "mysqldb-2" for version 2
# oc get pods
NAME READY STATUS RESTARTS AGE
mysqldb-2-deploy 1/1 Running 0 2m
mysqldb-2-stbv6 0/1 CreateContainerError 0 2m
# oc rsh mysqldb-2-stbv6
error: unable to upgrade connection: container not found ("mysql")
# oc debug mysqldb-2-stbv6
Debugging with pod/mysqldb-2-stbv6-debug, original command: <image entrypoint>
Waiting for pod to start ...
failed to open log file "/var/log/pods/29450756-d5f8-11e7-b4d8-0050569c0252/mysql_0.log": open /var/log/pods/29450756-d5f8-11e7-b4d8-0050569c0252/mysql_0.log: no such file or directory
Removing debug pod ...
Environment
OpenShift 3.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
