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.

12 Replies
It's still stuck at this with the current deploy, and I'm guessing it's gonna time out in an hour or so.
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!

I've deleted production on that app and made another, since it's urgent. It's just for custom app distribution.
Do you have a trace of the deploy failures?
I think that this is it here:
96d7c05190d901f31d4e143630fa557a
Yes that’s the one
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)
Strange. Also that it took over an hour to cancel 🤔
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
I made a new fork of the app and will not be deploying again. But great if you found a way to fix it
I'm going to mark this thread as closed. Please feel free to reopen it if you see another issue
Do you like this answer?