Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading from 2.44.3 to 2.45.0 causes deployment failure #32

Closed
leanderiversen opened this issue Jan 18, 2025 · 7 comments · Fixed by #34
Closed

Upgrading from 2.44.3 to 2.45.0 causes deployment failure #32

leanderiversen opened this issue Jan 18, 2025 · 7 comments · Fixed by #34
Assignees

Comments

@leanderiversen
Copy link
Contributor

Hi,

We are currently running our website using SST 2.44.3 and OpenNext 3.1.3 , and would like to upgrade to the latest V2 version of SST. After debugging this as best as I can, I have found that the upgrade from 2.44.3 to 2.45.0 or above causes UPDATE_FAILED Received response status [FAILED] from custom resource. Message returned: socket hang up for site/defaultServerFunction/AssetReplacer Custom::AssetReplacer and site/RevalidationProvider/framework-onEvent AWS::Lambda::Function.

We have also tried a combination of the latest V2 versions of SST and OpenNext to see if would play nice, but it does not seem like the case.

Do you have any ideas as to why this is happening?

Thank you!

@brentrager
Copy link

@leanderiversen I ran into this and tracked down the issue.

The problem arises from cthackers/adm-zip#548. I was able to fork this repo, pin adm-zip at 0.5.14, build sst, and patch my repo's version of sst 2.47.0 with the rebuilt version of support/custom-resources/index.mjs. A little complicated but it does fix the problem! If I have some more time I'll put up a PR.

@Gr33nLight
Copy link

Hello,
running into this issue as well, I'm on sst 2.47.0, is there a workaround that doesn't involve rebuilding and patching sst 😅 ?
Thank you!

@brentrager

@brentrager
Copy link

brentrager commented Jan 25, 2025

@Gr33nLight I do not know of another solution besides what I described yet, no.

https://github.com/SmooAI/sst-v2

There is my fork for the record.

There's an open PR that should fix it if the SST team merges and releases - #34

@Gr33nLight
Copy link

Thanks, I can't use a forked version of sst at the moment but I'm hoping it gets merged soon.

@fwang fwang closed this as completed in #34 Jan 29, 2025
@fwang
Copy link
Contributor

fwang commented Jan 29, 2025

Released in v2.47.1

@TobiasMaehl-pIX
Copy link

TobiasMaehl-pIX commented Feb 3, 2025

Still getting the same error with v2.47.1

Looks like this from @brentrager's fork could be the fix?

@leanderiversen
Copy link
Contributor Author

I have not had this specific issue happen since 2.47.1, but it could be that another dependency is installing a newer version, which is the one being used. I'm not sure though, but I can't say that this has happened since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants