Deployment stuck at "Setting up database"

Trace id: df828c073ef18cfb342423aa1482943c https://declare-pdf-av86.gadget.app/edit/development/logs?logql=%7Benvironment_id%3D%22536707%22%7D%20%7C%20json%20%7C%20level%3D~%22info%7Cwarn%7Cerror%22&timeRange%5Binput%5D=Since%202025-09-29T13%3A32%3A32.490Z This is the second time i try it. First time, I left it and came back to that it had an error icon. It says in those logs: "✘ [ERROR] The build was canceled" Trace id: 96d7c05190d901f31d4e143630fa557a Now while writing this, after around an hour and 3 minutes that deploy timed out.. "failed to create index for field model: templateField canceling statement due to statement timeout QueryFailedError: canceling statement due to statement timeout..." Just to note, that the only change I made was adding one boolean field called "hidden" on TemplateField I will remove that field for now to try to get it deployed without.
No description
12 Replies
thore cardel
thore cardelOP5d ago
It's still stuck at this with the current deploy, and I'm guessing it's gonna time out in an hour or so.
thore cardel
thore cardelOP5d ago
After removing the field it just says that 1/1 is set up and continues like this. if you can please cancel the deployment manually it would be nice!
No description
thore cardel
thore cardelOP5d ago
I've deleted production on that app and made another, since it's urgent. It's just for custom app distribution.
[Gadget] yandu
Do you have a trace of the deploy failures?
Chocci_Milk
Chocci_Milk5d ago
I think that this is it here: 96d7c05190d901f31d4e143630fa557a
thore cardel
thore cardelOP5d ago
Yes that’s the one
Chocci_Milk
Chocci_Milk5d ago
For some reason there was a cancellation of the deployment. I think that we haven't properly handled this case (displaying the errored deployment in the UI)
thore cardel
thore cardelOP4d ago
Strange. Also that it took over an hour to cancel 🤔
Chocci_Milk
Chocci_Milk4d ago
Yeah, I'm seeing other deployments hitting the same error. Gonna have the team look into this asap Mind trying to deploy again to see if it works? Someone else with your same issue says that it worked for him
thore cardel
thore cardelOP4d ago
I made a new fork of the app and will not be deploying again. But great if you found a way to fix it
Chocci_Milk
Chocci_Milk21h ago
I'm going to mark this thread as closed. Please feel free to reopen it if you see another issue
Gizmo
Gizmo21h ago
Do you like this answer? ​

Did you find this page helpful?