Introduction
Configuration
Resources
- Overview
- Databases
- LLMs ✨
- Secrets
- Metadata
- Custom Resources
Migration
Support
Community
Troubleshooting
This section is aimed at collecting common issues users have to provide quick debug solutions.
Make sure to follow all of the upgrading steps.
This is most likely to happen if you’re using one of our shared database annotations. To prevent this from happening, ensure that Docker is running.
If you’ve installed Docker via Docker Desktop, you must ensure that Docker Desktop is running. If you are using Podman, ensure Podman is running (and that your Docker socket has been set up correctly).
This is likely because you are a using a different version of the dependency than the Shuttle crate, causing a dependency mismatch.
To fix this, there’s a couple of options:
- Switch the version of your crate over to the dependency. You can find the correct one either from the error itself, or going to Crates.io and checking the dependencies of the latest Shuttle crate version.
- If you are unable to do the above because of nested dependencies, you can typically fork the crate’s repo then upgrade the dependency yourself. However, depending on breaking changes this may be a non-trivial amount of work.
This is most likely to happen if your project panics and crashes. Proper error handling should mitigate this, as well as logging to understand where your application is going wrong..
Instrumenting your application is a great way to get insight into panics/crashes. We also have an article on using the Tracing libraries.
Try logging out and logging back in. If this still doesn’t work, feel free to shoot us a message on our Discord server!
CustomError is an alias for anyhow::Error
, the simplest way to output a relevant message here is by using anyhow::Context
like this:
use anyhow::Context;
pool.execute(include_str!("../schema.sql"))
.await
.context("failed to run migrations")?;
Other issues?
Hop on over to our Discord server, we are very responsive!
Was this page helpful?