# Hab origin secret upload results in 500 error

**URL:** <https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214>\
**Category:** Habitat Help\
**Created:** [November 5, 2018, 8:34pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214 "2018-11-05T20:34:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsalright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tsalright/32/2782_2.png) [@tsalright](https://discourse.chef.io/u/tsalright)\
**Post date:** [November 5, 2018, 8:34pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/1 "2018-11-05T20:34:20Z")

</div>

We are trying to upload some origin secrets in our private builder.  
I have tried with the environment variables set (HAB\_ORIGIN and HAB\_AUTH\_TOKEN) and with the CLI arguments (–origin and --auth).

**hab origin secret upload TEST test** returns that it successfully created it.  
When I go to builder, I do not see it listed in our origin.  
When I execute **hab origin secrets list** , I get a 500 error.  
If I delete the secret with **hab origin secrets delete TEST** and go to list them again, the 500 error is gone.

Any ideas why this is happening? @Defilan and I have had this happen from both of our machines today.

---

<div class="post-metadata">

**Author:** ![Salim\_Alam](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Salim\_Alam](https://discourse.chef.io/u/Salim_Alam)\
**Post date:** [November 6, 2018, 12:10am UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/2 "2018-11-06T00:10:43Z")

</div>

Thanks for the report - the problem has been identified - it is a code issue, and a fix has been completed and will be deployed to the production builder shortly, and then will be promoted for the on-premise depot. Once that is done, upgrading the on-prem depot should fix the issue for your local users. Apologies for any inconvenience.

---

<div class="post-metadata">

**Author:** ![tsalright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tsalright/32/2782_2.png) [@tsalright](https://discourse.chef.io/u/tsalright)\
**Post date:** [November 6, 2018, 4:33pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/3 "2018-11-06T16:33:02Z")

</div>

Thanks for the update. When should we be seeing the fix?

---

<div class="post-metadata">

**Author:** ![Salim\_Alam](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Salim\_Alam](https://discourse.chef.io/u/Salim_Alam)\
**Post date:** [November 6, 2018, 5:45pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/4 "2018-11-06T17:45:20Z")

</div>

The fix has been promoted to prod, and should be in the on-prem-stable channel later today

---

<div class="post-metadata">

**Author:** ![tsalright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tsalright/32/2782_2.png) [@tsalright](https://discourse.chef.io/u/tsalright)\
**Post date:** [November 6, 2018, 5:54pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/5 "2018-11-06T17:54:51Z")

</div>

We are not using the On-Prem builder. We are using a hosted private repo at [https://bldr.habitat.sh](https://bldr.habitat.sh). I just tried to upload a secret to our origin and it doesn’t seem to be fixed.

---

<div class="post-metadata">

**Author:** ![Salim\_Alam](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Salim\_Alam](https://discourse.chef.io/u/Salim_Alam)\
**Post date:** [November 6, 2018, 7:06pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/6 "2018-11-06T19:06:39Z")

</div>

Ok, could you please post the error you are getting on upload? Is it still 500?  
If you could do the upload with “RUST\_LOG=debug …” prefix and post the log that would be helpful as well (but please remove the auth token that might make it into the debug log), Thanks.

---

<div class="post-metadata">

**Author:** ![tsalright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tsalright/32/2782_2.png) [@tsalright](https://discourse.chef.io/u/tsalright)\
**Post date:** [November 6, 2018, 8:19pm UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/7 "2018-11-06T20:19:36Z")

</div>

Well… Now it seems to be working. I checked on multiple machines with different version of Habitat installed and it is working. I had recently (this morning) upgraded to 0.67 habitat but hadn’t tried the secret upload since then so I tried on a different machine that was on an older one and it is working there too.

I have the logs, but since it is working I don’t think they will be much value now.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Salim\_Alam](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Salim\_Alam](https://discourse.chef.io/u/Salim_Alam)\
**Post date:** [November 7, 2018, 5:54am UTC](https://discourse.chef.io/t/hab-origin-secret-upload-results-in-500-error/18214/8 "2018-11-07T05:54:55Z")

</div>

Ok great, thanks for the update.
