# Serverless deploy failing when run from CircleCI

**URL:** <https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184>\
**Category:** Serverless Framework\
**Tags:** aws, release, cicd\
**Created:** [May 21, 2024, 6:46pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184 "2024-05-21T18:46:46Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![atharrison](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/atharrison/32/7908_2.png) [@atharrison](https://forum.serverless.com/u/atharrison)\
**Post date:** [May 21, 2024, 6:46pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/1 "2024-05-21T18:46:46Z")

</div>

We use CircleCI to deploy to AWS, and suddenly today our deploy pipeline has started failing.

The deploy step is configured as:

```auto
  deploy-prod:
    executor: serverless-framework/default
    steps:
      - attach_workspace:
          at: .
      - aws-cli/setup
      - serverless-framework/setup
      - run:
          command: serverless deploy --stage prod --verbose
          name: deploy

```

The `aws-cil/setup` step completes, and then the “Install Serverless CLI” step, `serverless-framework/setup` fails with a 404.

 ![Screenshot 2024-05-21 at 1.43.31 PM](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/3/372a04e86c7828c0580be010452c1574ba119efc.png)

This is happening for multiple projects/pipelines for us today.

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 21, 2024, 6:53pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/2 "2024-05-21T18:53:28Z")

</div>

@atharrison Can you confirm what command CircleCI uses to install Serverless Framework? Serverless Framework V4 Beta just released today so it is possible there needs to be some changes made to the way CircleCI attempts to install the framework.

---

<div class="post-metadata">

**Author:** ![atharrison](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/atharrison/32/7908_2.png) [@atharrison](https://forum.serverless.com/u/atharrison)\
**Post date:** [May 21, 2024, 6:59pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/3 "2024-05-21T18:59:15Z")

</div>

We’re following CircleCI’s guide, here: [CircleCI Developer Hub - circleci/serverless-framework](https://circleci.com/developer/orbs/orb/circleci/serverless-framework)

We’re using this orb:

```auto
orbs:
  serverless-framework: circleci/serverless-framework@2.0.1

```

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 21, 2024, 7:01pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/4 "2024-05-21T19:01:33Z")

</div>

If CircleCI is installing that specific version of Serverless Framework there should be no issue since the NPM versions are all still there. You may need to get in touch with CircleCI support.

---

<div class="post-metadata">

**Author:** ![atharrison](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/atharrison/32/7908_2.png) [@atharrison](https://forum.serverless.com/u/atharrison)\
**Post date:** [May 21, 2024, 7:33pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/5 "2024-05-21T19:33:45Z")

</div>

Reported the issue on CircleCI’s forum, here: [Serverless deploy not working today - Deployments - CircleCI Discuss](https://discuss.circleci.com/t/serverless-deploy-not-working-today/50934)

---

<div class="post-metadata">

**Author:** ![elliottc\_rib](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@elliottc\_rib](https://forum.serverless.com/u/elliottc_rib)\
**Post date:** [May 21, 2024, 7:43pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/6 "2024-05-21T19:43:02Z")

</div>

@garethmcc it actually looks like maybe there is a URL that is being used by the CircleCI Orb that is out of date. If you could help confirm what this changed to, I will go make the change and submit the PR.

> <https://github.com/CircleCI-Public/serverless-framework-orb/blob/master/src/scripts/install.sh#L7C13-L7C36>

---

<div class="post-metadata">

**Author:** ![elliottc\_rib](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@elliottc\_rib](https://forum.serverless.com/u/elliottc_rib)\
**Post date:** [May 21, 2024, 7:48pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/7 "2024-05-21T19:48:05Z")

</div>

Sorry and I am being a bit presumptious that you own that domain. I see an issue they have where they potentially are showing me a bit more into who owns that short link. Not sure if that is y’all or not. [Running into timeout issues when downloading Serverless cli · Issue #15 · CircleCI-Public/serverless-framework-orb · GitHub](https://github.com/CircleCI-Public/serverless-framework-orb/issues/15).

We will reach out to Circle but likely they are not going to be able to help either. Let me know if this all makes sense and/or you have a solve for me. Otherwise the hunt will continue.

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 21, 2024, 7:54pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/8 "2024-05-21T19:54:54Z")

</div>

We do own that domain, however, it would be better to install Serverless Framework using NPM instead of the [slss.io](http://slss.io) domain. `npm --save-dev serverless@2.0.1`

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 21, 2024, 7:59pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/9 "2024-05-21T19:59:37Z")

</div>

Alternatively, they can change it to download directly from GitHub: [serverless/scripts/pkg/install.sh at v2 · serverless/serverless · GitHub](https://github.com/serverless/serverless/blob/v2/scripts/pkg/install.sh)

---

<div class="post-metadata">

**Author:** ![elliottc\_rib](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@elliottc\_rib](https://forum.serverless.com/u/elliottc_rib)\
**Post date:** [May 21, 2024, 8:00pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/10 "2024-05-21T20:00:49Z")

</div>

Thanks for the fast response @garethmcc.

Appreciate you giving us a work around for the time being. I am not a maintainer so I am not certain as to why they decided that, I will happily open a ticket and see if there is something we can help with.

I will try using the provided URL and help to get them to move off of that. Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 21, 2024, 8:02pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/11 "2024-05-21T20:02:22Z")

</div>

It might just work again as it is. We updated the URL to point to the right spot in the right branch

---

<div class="post-metadata">

**Author:** ![elliottc\_rib](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@elliottc\_rib](https://forum.serverless.com/u/elliottc_rib)\
**Post date:** [May 21, 2024, 9:02pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/12 "2024-05-21T21:02:33Z")

</div>

That would be awesome if that were the case. I just retested and it isn’t working again yet but maybe y’all aren’t finished making update yet?

---

<div class="post-metadata">

**Author:** ![elliottc\_rib](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@elliottc\_rib](https://forum.serverless.com/u/elliottc_rib)\
**Post date:** [May 21, 2024, 10:10pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/13 "2024-05-21T22:10:37Z")

</div>

Hate to be a pain here @garethmcc but this is blocking our ability to release to production. Also the people who own the plugin for CircleCI haven’t responded to me yet. Do you have an ETA on when you think you will have the short URL pointed to the right place?

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 22, 2024, 10:11am UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/14 "2024-05-22T10:11:27Z")

</div>

Hello again. We are working on restoring the link. In the meantime, can you use the link directly instead of the shortened version that points at: [https://raw.githubusercontent.com/serverless/serverless/v3/scripts/pkg/install.sh](https://raw.githubusercontent.com/serverless/serverless/v3/scripts/pkg/install.sh)

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [May 22, 2024, 3:55pm UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/15 "2024-05-22T15:55:02Z")

</div>

The link is working again now. Apologies for the interruption

---

<div class="post-metadata">

**Author:** ![atharrison](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/atharrison/32/7908_2.png) [@atharrison](https://forum.serverless.com/u/atharrison)\
**Post date:** [May 23, 2024, 12:45am UTC](https://forum.serverless.com/t/serverless-deploy-failing-when-run-from-circleci/20184/16 "2024-05-23T00:45:17Z")

</div>

Thank you! We’re back up and running. Appreciate your quick turnaround, especially considering timezone differences.
