minishift: Error: could not start OpenShift container "origin"

When I stop and start minishift, then it crashes with this error

Version used : minishift 1.0.0.Beta2

minishift start --openshift-version v1.4.0-rc1 --memory 4000 --vm-driver virtualbox
minishift stop
Stopping local OpenShift cluster...
Machine stopped.

minishift start --vm-driver virtualbox
Starting local OpenShift instance using 'virtualbox' hypervisor...
Provisioning OpenShift via '/Users/chmoulli/.minishift/cache/oc/v1.3.1/oc [cluster up --use-existing-config --host-config-dir /var/lib/minishift/openshift.local.config --host-data-dir /var/lib/minishift/hostdata]'
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... 
   Deleted existing OpenShift container
-- Checking for openshift/origin:v1.3.1 image ... 
   Pulling image openshift/origin:v1.3.1
   Pulled 0/3 layers, 3% complete
   Pulled 1/3 layers, 65% complete
   Pulled 2/3 layers, 90% complete
   Pulled 3/3 layers, 100% complete
   Extracting
   Image pull complete
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ... 
   Using Docker shared volumes for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ... 
   Using 192.168.99.101 as the server IP
-- Starting OpenShift container ... 
   Starting OpenShift using container 'origin'
FAIL
   Error: could not start OpenShift container "origin"
   Details:
     Last 10 lines of "origin" container log:
     github.com/openshift/origin/pkg/cmd/server/start.NewCommandStartAllInOne.func1(0xc82063efc0, 0xc8207fc420, 0x0, 0x2)
        /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/cmd/server/start/start_allinone.go:78 +0x104
     github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).execute(0xc82063efc0, 0xc8207fc240, 0x2, 0x2, 0x0, 0x0)
        /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:603 +0x896
     github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc82063ed80, 0xc82063efc0, 0x0, 0x0)
        /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:689 +0x55c
     github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc82063ed80, 0x0, 0x0)
        /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:648 +0x2d
     main.main()
        /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/openshift/openshift.go:33 +0x199

E0124 14:09:34.915761    8562 start.go:246] Error starting 'cluster up':  exit status 1

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (13 by maintainers)

Most upvoted comments

@cmoulliard Issue you are facing because when you restart minishift you have to use same parameters which you used for first time start you will not hit this issue if you execute below. Also you will not see pulling image during restart.

$ minishift start --openshift-version=v1.4.0 --memory=4000 --vm-driver=virtualbox
$ minishift stop
$ minishift start --openshift-version=v1.4.0 --memory=4000 --vm-driver=virtualbox

Done a new test using OpenShift 1.4.1 and now we config is not lost when we stop/start again minishift 😉