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

[Bug]: Deployment crashes when using static folder and the project awakes #689

Closed
1 task done
robertohuertasm opened this issue Mar 7, 2023 · 2 comments
Closed
1 task done
Labels
T-Bug Something isn't working

Comments

@robertohuertasm
Copy link

What happened?

This has been already reported in Discord over here and here.

After the introduction of cargo-shuttle 0.11.2, with the idle-to-sleep changes, I've seen that all my projects that have a dependency of shuttle-static-folder will crash when they try to recover from sleep.

The error I'm getting is this one: 2023-03-06T16:48:13.792356279Z ERROR {error="Run error: Custom error: failed to provision shuttle_static_folder :: StaticFolder"} shuttle_deployer::deployment::run: service startup encountered an error.

For now, the only alternative is to redeploy everything with --idle-minutes 0 flag.

Version

v0.11.2

Which operating systems are you seeing the problem on?

Linux

Which CPU architectures are you seeing the problem on?

x86_64

Relevant log output

No response

Duplicate declaration

  • I have searched the issues and there are none like this.
@robertohuertasm robertohuertasm added the T-Bug Something isn't working label Mar 7, 2023
@oddgrd
Copy link
Contributor

oddgrd commented Mar 8, 2023

This was fixed in #692 and the fix has been released. An announcement will also be posted in Discord soon.

For your deployer to use the fixed version you'll need to first run cargo shuttle project new and then cargo shuttle project rm. Then you need to bump your dependency on shuttle-static-folder to 0.11.3, before re-deploying. You do not need to upgrade your cargo-shuttle cli or other dependencies.

@oddgrd oddgrd closed this as completed Mar 8, 2023
@robertohuertasm
Copy link
Author

That was quick! Thanks to the team for the fast fix! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants