# Extensions do build but fail to upload to midas

**URL:** <https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803>\
**Category:** Development\
**Tags:** extensions\
**Created:** [September 22, 2021, 8:32am UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803 "2021-09-22T08:32:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 22, 2021, 8:32am UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/1 "2021-09-22T08:32:53Z")

</div>

Something weird is being happening lately, my extension is succesfully built but not uploaded to midas, see [CDash](https://slicer.cdash.org/viewBuildError.php?type=1&buildid=2408172)

Is this a fake report? Since I can see the extension still available. Perhaps an old version that did not launch any warning to me, but certeinly wrong

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 22, 2021, 7:14pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/2 "2021-09-22T19:14:16Z")

</div>

Midas does not exist anymore. To fix the error, you would need to update the server address and get write permission to the new server, but probably what you want is to package without upload.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [September 22, 2021, 10:30pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/3 "2021-09-22T22:30:04Z")

</div>

Following [43cc41a6b](https://github.com/Slicer/Slicer/commit/43cc41a6b7e18a347b2d722a087e3ff5ff7d39c6#diff-20a23c67898af08340ce4cbe61157f25b882c52abf33e9814d378dec09fefabb), the upload to midas only reports warnings in case of failure. Shortly we will update `SlicerExtensionPackageAndUploadTarget.cmake` to completely remove midas support.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 23, 2021, 6:31am UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/4 "2021-09-23T06:31:24Z")

</div>

Then how do I shall proceed? Is there something I shall change in my extension?

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 23, 2021, 6:36am UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/5 "2021-09-23T06:36:15Z")

</div>

I want to know if this issue affects the package version that is installed inside Slicer or not.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 23, 2021, 12:56pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/6 "2021-09-23T12:56:58Z")

</div>

Normally you just test packaging of your extension locally (and let factory machines build and upload the official packages to the extensions server). Why would you like to upload packages?

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 23, 2021, 1:10pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/7 "2021-09-23T13:10:08Z")

</div>

> [@jcfr](#):
>
> SlicerExtensionPackageAndUploadTarget.cmake

Apparently this file forces extensions to try to upload the packages to midas, is there a way to disable this behaviour?

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 23, 2021, 1:11pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/8 "2021-09-23T13:11:18Z")

</div>

I won’t. It is just the factory machines that tried this. I don’t know how to tell them to disable this

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 23, 2021, 1:31pm UTC](https://discourse.slicer.org/t/extensions-do-build-but-fail-to-upload-to-midas/19803/9 "2021-09-23T13:31:25Z")

</div>

Your extension is successfully uploaded to the [new extensions server](https://slicer-packages.kitware.com/#collection/5f4474d0e1d8c75dfc70547e/folder/614ab807342a877cb3c65229).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/a/ca2675a83224895bb2614dbc9937e0cc1bde57ff.png)

Today the download links work on the [dashboard](https://slicer.cdash.org/index.php?project=SlicerPreview), too (the small yellow boxes are there).

You can ignore any remaining Midas upload warnings/errors - @jcfr will take care of them.
