https://linen.dev logo
Error: Database error
# help
b
I tried to update my toy project to shuttle 0.8.0 and I now get an error saying Error: Database error: I don't use a database. I could reproduce the error using the hello world example. To reproduce it: mkdir foo cd foo cargo shuttle init --rocket cargo shuttle run In case it helps, I'm using debian linux on an x86_64 machine. rustc --version says rustc 1.66.1 (90743e729 2023-01-10)
k
Hey @mammoth-carpenter-16936 ! 👋
So we have seen some actix segfaults that we haven't gotten to the bottom of yet, but this is new.
I'm not able to reproduce it either on x86 ubuntu with rustc 1.66.1, but the fact that you get this completely unrelated error leads me to believe this is also memory issue.
Which unfortunately means I don't have a solution for you at the moment, but we are working on this issue. Are deployments working?
m
I didn't try to deploy it yet. The current live version of my toy project works and the newer version only improves the loading time. And since this is only a toy project, ... I'm not in a rush to fix things. Interesting you mention the segfaults because I was having them too, but that was when I was using the nightly rust toolchain. I got the "database error" when moving to the rust stable toolchain. Note, my segfaults are with the rocket server. I didn't try actix.
These errors are 100% reproducible for me on my machine. Let me know if you want me to try out something for you. I'm sorry I won't be able to do extensive testing before Sunday evening though.
FWIW, I just tried the hello world example on a mac M1, and there is no error there.
k
Thanks for the report and the info! I believe the issue is related to the segfaults, and it seems to happen only on certain systems. But the more reports we get, the easier it will be to see the pattern.
Thanks for checking! We do have consistent segfaults for
run
with actix on M1, so that's good to know.
I'll update you here when I have more information/solutions to try.
m
to be clear, I tried the rocket hello world on the M1, not the actix one.
5 Views