# Bootstrap core packages

**URL:** <https://discourse.chef.io/t/bootstrap-core-packages/18679>\
**Category:** Habitat Help\
**Created:** [February 5, 2020, 10:11am UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679 "2020-02-05T10:11:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashi89](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@prashi89](https://discourse.chef.io/u/prashi89)\
**Post date:** [February 5, 2020, 10:11am UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/1 "2020-02-05T10:11:41Z")

</div>

i am trying to bootstrap core packages , but getting below errors . tried in multiple ways . but still no luck  
why we need core packages first of all ?

bulkupload method"  
on-prem-builder-master]# hab pkg bulkupload --url https://{on-prem-builder}/ --channel stable builder\_bootstrap/  
» Preparing to upload artifacts to the 'stable' channel on https://{on-prem-builder}/  
→ Using builder\_bootstrap/artifacts for artifacts and builder\_bootstrap/keys for signing keys  
→ Found 46 artifact(s) for upload.  
☁ Discovering origin names from local artifact cache  
✓ Origin 'chef' already exists  
✓ Origin 'core' already exists  
✓ Origin 'effortless' already exists  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.88 MB/s  
✗✗✗  
✗✗✗ [405 Method Not Allowed]   
✗✗✗ 405 Not Allowed  
✗✗✗   
✗✗✗

# 405 Not Allowed
  
✗✗✗ 
* * *
nginx  
✗✗✗   
✗✗✗   
✗✗✗

sync packages:

scripts]# ./on-prem-archive.sh sync-packages https://{on-prem-builder-ip} base-plans  
Installing git from Habitat package.  
» Installing core/git  
☁ Determining latest version of core/git in the 'stable' channel  
→ Using core/git/2.23.0/20191203153351  
★ Install of core/git/2.23.0/20191203153351 complete with 0 new packages installed.  
Installing curl from Habitat package.  
» Installing core/curl  
☁ Determining latest version of core/curl in the 'stable' channel  
→ Using core/curl/7.67.0/20191203153051  
★ Install of core/curl/7.67.0/20191203153051 complete with 0 new packages installed.  
Installing jq from Habitat package.  
» Installing core/jq-static  
☁ Determining latest version of core/jq-static in the 'stable' channel  
→ Using core/jq-static/1.6/20190703002933  
★ Install of core/jq-static/1.6/20190703002933 complete with 0 new packages installed.  
Installing b2sum from Habitat package.  
» Installing core/coreutils  
☁ Determining latest version of core/coreutils in the 'stable' channel  
→ Using core/coreutils/8.30/20190115012313  
★ Install of core/coreutils/8.30/20190115012313 complete with 0 new packages installed.  
Cloning into '/tmp/tmp.WhzrHqIAYS/core-plans'...  
remote: Enumerating objects: 3326, done.  
remote: Counting objects: 100% (3326/3326), done.  
remote: Compressing objects: 100% (2733/2733), done.  
remote: Total 3326 (delta 592), reused 2206 (delta 433), pack-reused 0  
Receiving objects: 100% (3326/3326), 11.14 MiB | 8.84 MiB/s, done.  
Resolving deltas: 100% (592/592), done.  
Cloning into '/tmp/tmp.WhzrHqIAYS/windows-service'...  
remote: Enumerating objects: 17, done.  
remote: Counting objects: 100% (17/17), done.  
remote: Compressing objects: 100% (16/16), done.  
remote: Total 17 (delta 1), reused 8 (delta 1), pack-reused 0  
Unpacking objects: 100% (17/17), done.  
Cloning into '/tmp/tmp.WhzrHqIAYS/habitat'...  
remote: Enumerating objects: 2048, done.  
remote: Counting objects: 100% (2048/2048), done.  
remote: Compressing objects: 100% (1786/1786), done.  
remote: Total 2048 (delta 191), reused 1126 (delta 103), pack-reused 0  
Receiving objects: 100% (2048/2048), 37.80 MiB | 9.16 MiB/s, done.  
Resolving deltas: 100% (191/191), done.

Uploading keys to https://{on-prem-builder}

[1/21] Uploading ./20160612031944.pub  
» Uploading public origin key ./20160612031944.pub  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.18 MB/s  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.36 MB/s  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.38 MB/s  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.59 MB/s  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.45 MB/s  
↑ Uploading ./20160612031944.pub  
75 B / 75 B | [================================================================================================================================] 100.00 % 1.33 MB/s  
✗✗✗  
✗✗✗ Upload failed: We tried 5 times but could not upload core/20160612031944 public origin key. Giving up.  
✗✗✗  
Cleaning up.  
Done.

---

<div class="post-metadata">

**Author:** ![jmiller](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jmiller/32/1344_2.png) [@jmiller](https://discourse.chef.io/u/jmiller)\
**Post date:** [February 5, 2020, 12:24pm UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/2 "2020-02-05T12:24:53Z")

</div>

Hi prashi89,  
`hab pkg bulkupload` is now the preferred way to bootstrap an on-prem Builder instance. The `on-prem-archive.sh` script has been deprecated.

With regard to the HTTP 405 error, I saw in one of your previous posts that you are utilizing a Builder installed via Chef Automate. If that is the case, you will need to append `/bldr/v1` onto the url, ie. `--url https://yourbuilder.instance.com/bldr/v1`. Also, I happened to notice from the cli output that the `hab` version you are using is a little bit older. Our latest versions of hab are more efficient and hence speedier uploading packages.

We are working to make this situation (using a different url for public Builder or Automate installed version) easier for our users and will be releasing something soon. Please stay tuned! 😀

---

<div class="post-metadata">

**Author:** ![prashi89](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@prashi89](https://discourse.chef.io/u/prashi89)\
**Post date:** [February 6, 2020, 6:11am UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/3 "2020-02-06T06:11:04Z")

</div>

Hi Jeremy  
you are correct . i can use the url you mentioned . but i am getting difficulty in using old version of hab, same as you mention . if i use old version of hab and doing bulkupload it is giving below error  
☁ Discovering origin names from local artifact cache  
✗✗✗  
✗✗✗ Unrecognized archive format (libarchive err\_code=84)  
✗✗✗

i try to upgrade the hab cli . but no luck . if i upgrade hab cli , this particular service "chef/deployment-service/0.1.0/20200127203210 " is not able to start.

so any correct process to upgrade hab cli ?

---

<div class="post-metadata">

**Author:** ![jmiller](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jmiller/32/1344_2.png) [@jmiller](https://discourse.chef.io/u/jmiller)\
**Post date:** [February 6, 2020, 12:15pm UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/4 "2020-02-06T12:15:52Z")

</div>

That is an odd development with the older hab version because you were able to get further along with the bulkupload earlier. Now it appears to be unable to decompress one of the .hart files, which it didn’t encounter before. This indicates to me that the builder\_bootstrap directory has somehow become polluted or tainted since the contents were first downloaded. Regardless of which version of hab is in use, you will have to resolve this issue first.

What happens if you remove this directory and start over with a fresh download|bulkupload of a minimal package set such as this one: [https://github.com/habitat-sh/on-prem-builder/blob/master/package\_seed\_lists/effortless\_x86\_64-linux\_stable](https://github.com/habitat-sh/on-prem-builder/blob/master/package_seed_lists/effortless_x86_64-linux_stable)?

---

<div class="post-metadata">

**Author:** ![prashi89](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@prashi89](https://discourse.chef.io/u/prashi89)\
**Post date:** [February 6, 2020, 2:12pm UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/5 "2020-02-06T14:12:56Z")

</div>

Thanks again jeremy , i am able to do download and upload now . I just did redo

But any idea what is the correct process to upgrade hab cli . How can i make deployment service to be up after hab cli upgrade

---

<div class="post-metadata">

**Author:** ![jmiller](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jmiller/32/1344_2.png) [@jmiller](https://discourse.chef.io/u/jmiller)\
**Post date:** [February 6, 2020, 6:56pm UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/6 "2020-02-06T18:56:28Z")

</div>

Glad to hear that your issue is resolved prashi89! 👍

Typically, Automate installation manages its own version of hab and hab-sup for the system(s) on which it is installed. If you wish to utilize different versions for bootstrapping or service management, you would likely need to find alternate system(s) to do that on so that it doesn't interfere with the version(s) required for Automate.

---

<div class="post-metadata">

**Author:** ![prashi89](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@prashi89](https://discourse.chef.io/u/prashi89)\
**Post date:** [February 6, 2020, 8:39pm UTC](https://discourse.chef.io/t/bootstrap-core-packages/18679/7 "2020-02-06T20:39:02Z")

</div>

Thank you so much for help and thanks for right solutions
