Problem in the start docker

    Did you mean 'stat'?

If you believe you received this message in error, try re-running with 'hab sup -- start'

USAGE:
    hab sup [SUBCOMMAND]

For more information try --help```

I'm using jenkins to build the images. Then i use  the openshift to run the images in docker format. It is happening in the init execution docker image. 
The command ```hab --version``` return v0.55.0. But i  install the version 0.56.0.

Can you show the command that you ran to get that output?

To try to make sure you’re on the right version, show what happens when you run

curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash

And after that what output you get for

which hab
                                 Dload  Upload   Total   Spent    Left  Speed
100  9492  100  9492    0     0  18459      0 --:--:-- --:--:-- --:--:-- 18539
--> hab-install: Installing Habitat 'hab' program
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum?bt_package=hab-x86_64-linux
--> hab-install: Renaming downloaded archive files
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz’
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz.sha256sum’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz.sha256sum’
--> hab-install: GnuPG tooling found, verifying the shasum digest is properly signed
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum.asc?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://bintray.com/user/downloadSubjectPublicKey?username=habitat
gpg: Signature made Thu 31 May 2018 12:19:00 AM UTC using RSA key ID 7F61CCE7
gpg: Good signature from "Habitat Packages <packages@habitat.sh>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 49EB C7FF 577F 0B15 A930  821C F27D 6DD6 7F61 CCE7
--> hab-install: Verifying the shasum digest matches the downloaded archive
hab-0.56.0-20180530234036-x86_64-linux.tar.gz: OK
--> hab-install: Extracting /var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz
--> hab-install: Installing Habitat package using temporarily downloaded hab
» Installing core/hab
☁ Determining latest version of core/hab in the 'stable' channel
→ Using core/hab/0.56.0/20180530234036
★ Install of core/hab/0.56.0/20180530234036 complete with 0 new packages installed.
» Binlinking hab from core/hab into /bin
★ Binlinked hab from core/hab/0.56.0/20180530234036 to /bin/hab
--> hab-install: Checking installed hab version
hab 0.56.0/20180530234036
--> hab-install: Installation of Habitat 'hab' program complete. % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9492  100  9492    0     0  18459      0 --:--:-- --:--:-- --:--:-- 18539
--> hab-install: Installing Habitat 'hab' program
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum?bt_package=hab-x86_64-linux
--> hab-install: Renaming downloaded archive files
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz’
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz.sha256sum’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz.sha256sum’
--> hab-install: GnuPG tooling found, verifying the shasum digest is properly signed
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum.asc?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://bintray.com/user/downloadSubjectPublicKey?username=habitat
gpg: Signature made Thu 31 May 2018 12:19:00 AM UTC using RSA key ID 7F61CCE7
gpg: Good signature from "Habitat Packages <packages@habitat.sh>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 49EB C7FF 577F 0B15 A930  821C F27D 6DD6 7F61 CCE7
--> hab-install: Verifying the shasum digest matches the downloaded archive
hab-0.56.0-20180530234036-x86_64-linux.tar.gz: OK
--> hab-install: Extracting /var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz
--> hab-install: Installing Habitat package using temporarily downloaded hab
» Installing core/hab
☁ Determining latest version of core/hab in the 'stable' channel
→ Using core/hab/0.56.0/20180530234036
★ Install of core/hab/0.56.0/20180530234036 complete with 0 new packages installed.
» Binlinking hab from core/hab into /bin
★ Binlinked hab from core/hab/0.56.0/20180530234036 to /bin/hab
--> hab-install: Checking installed hab version
hab 0.56.0/20180530234036
--> hab-install: Installation of Habitat 'hab' program complete. % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9492  100  9492    0     0  18459      0 --:--:-- --:--:-- --:--:-- 18539
--> hab-install: Installing Habitat 'hab' program
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum?bt_package=hab-x86_64-linux
--> hab-install: Renaming downloaded archive files
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz’
‘/var/tmp/tmp.lFVLNNFeyw/hab-latest.tar.gz.sha256sum’ -> ‘/var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz.sha256sum’
--> hab-install: GnuPG tooling found, verifying the shasum digest is properly signed
--> hab-install: Downloading via wget: https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-%24latest-x86_64-linux.tar.gz.sha256sum.asc?bt_package=hab-x86_64-linux
--> hab-install: Downloading via wget: https://bintray.com/user/downloadSubjectPublicKey?username=habitat
gpg: Signature made Thu 31 May 2018 12:19:00 AM UTC using RSA key ID 7F61CCE7
gpg: Good signature from "Habitat Packages <packages@habitat.sh>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 49EB C7FF 577F 0B15 A930  821C F27D 6DD6 7F61 CCE7
--> hab-install: Verifying the shasum digest matches the downloaded archive
hab-0.56.0-20180530234036-x86_64-linux.tar.gz: OK
--> hab-install: Extracting /var/tmp/tmp.lFVLNNFeyw/hab-0.56.0-20180530234036-x86_64-linux.tar.gz
--> hab-install: Installing Habitat package using temporarily downloaded hab
» Installing core/hab
☁ Determining latest version of core/hab in the 'stable' channel
→ Using core/hab/0.56.0/20180530234036
★ Install of core/hab/0.56.0/20180530234036 complete with 0 new packages installed.
» Binlinking hab from core/hab into /bin
★ Binlinked hab from core/hab/0.56.0/20180530234036 to /bin/hab
--> hab-install: Checking installed hab version
hab 0.56.0/20180530234036
--> hab-install: Installation of Habitat 'hab' program complete.```

I’ve seen this a bunch, it happens when you haven’t updated your local hab binary to the latest release. Version 0.56.0 had significant changes from v0.55.0 and our exporters are currently tightly coupled to the supervisor version. If you install hab v0.56.0, then attempt a fresh export of your package the container should work!

By the way, this forum doesn't use ``` for code blocks. Instead, indent preformatted text by 4 spaces. There's also a handy button to indent code you've already entered:

04%20PM

It looks like hab v0.56.0 installed correctly. What do you see when you run

which hab

?

what about

/bin/hab --version

?

I used the command:hab --version. I go try
I’ll try to run export again and put the result here

Maybe I’m being unclear. The output you got for running

curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash

looks correct to me. After I run the command, here’s how I check that the correct hab binary is being executed:

jbauman@ubuntu:~$ which hab
/bin/hab
jbauman@ubuntu:~$ hab --version
hab 0.56.0/20180530234036

What do you see on your system?

1 Like