Stuck deploy

Hi, I am not able to deploy right now. I had a shopify extension in testing on my dev site, but removed it to put live another simple change. But the deploy is hanging at the "building production assets". Can someone help please? App is https://welove-core.gadget.app/
30 Replies
Chocci_Milk
Chocci_Milk5w ago
Hello, Could you please share the traceId of the deployment?
tonegolf71
tonegolf71OP5w ago
88c0af5ea6ce55d99ee081613119f412
Chocci_Milk
Chocci_Milk5w ago
Hmmm, I can't seem to find that log. Do you mind sharing the application name? I'll be able to find the deployment that way
Chocci_Milk
Chocci_Milk5w ago
Oups! Just realized it was in the first message! :facepalm: Interesting. I can't find a workflow for the deployment. Let me dig a little more
tonegolf71
tonegolf71OP5w ago
Ok, thanks. (i did it via the gui btw, and it does show in my logs)
Chocci_Milk
Chocci_Milk5w ago
How long ago did you run the deployment?
tonegolf71
tonegolf71OP5w ago
24 mins ago oh, hang on... That's weird, I didn't look at the date, that is from months ago 🤨
Chocci_Milk
Chocci_Milk5w ago
Explains why I can't find it 😛 Let me see if I can find it in other means
tonegolf71
tonegolf71OP5w ago
Ok, I had clicked the show me logs from the deploy dropdown, I just assumed it was right 😄
Chocci_Milk
Chocci_Milk5w ago
Funny, I don't even see your application as deploying at the moment Is it possible that the deployment just didn't run?
tonegolf71
tonegolf71OP5w ago
I did try it twice. Let me try again, or would it be better to try command line?
Chocci_Milk
Chocci_Milk5w ago
I'm not sure if the outcome would be different but not a bad thing to try This is a complete side note but I see a ton of import errors in your problems drawer. I would recommend clearing them. For example, these: '"gadget-server"' has no exported member named 'UpdateShopifyCostsGlobalActionContext'. Did you mean 'UpdateShopifyShopActionContext'? You can remove the line and instead use ActionRun in your multiline comments
tonegolf71
tonegolf71OP4w ago
I will check that, where can I see those errors if there are more? The error looks to be something with the shopify.app.toml. I didn't have this before, and add it as I was experimenting with adding a shopify extension. I have removed that though now and when I removed the toml it wouldn't let me deploy as it was required. It also then said it was misconfigured and the ai helper said it was due to missing scopes, so I added those and that produced and error with the deploy via the commandline.. tomlConfig.access_scopes.scopes.split is not a function
Chocci_Milk
Chocci_Milk4w ago
I think that you would be able to see them in debug and if not I can find them I don't see what could be considered misconfigured in the toml file. It might be the names of the applications? I'm not sure
tonegolf71
tonegolf71OP4w ago
Is there a way to get what would be the default toml file if the app was newly generated? I've taken the scopes bit out, but I have a "Shopify connection: misconfigured production Shopify TOML config" message now. I will double check the naming
Chocci_Milk
Chocci_Milk4w ago
I don't see why it would be giving you that error but you can definitely ignore it. It wouldn't stop deployment Has your deployment went through now?
tonegolf71
tonegolf71OP4w ago
It works with a "force"
Chocci_Milk
Chocci_Milk4w ago
That would make sense Does that mean that you're now unstuck?
tonegolf71
tonegolf71OP4w ago
Indeed. Thanks.
Chocci_Milk
Chocci_Milk4w ago
No problem! Since you're unstuck, I'm going to mark this thread as closed. Feel free to reopen this if something changes!
tonegolf71
tonegolf71OP4w ago
👍 🍻
tonegolf71
tonegolf71OP4w ago
Just on this, I don't seem to see anything with debug enabled in the logs...
No description
Chocci_Milk
Chocci_Milk4w ago
Yeah, I thought there would be some more information but turns out that I'm wrong. I've made a ticket internally to add more information during deployments
tonegolf71
tonegolf71OP4w ago
Ahh, ok cool. I'll try and clear those things up anyway. All my global actions are structured in the same way with that "import" and @param comment. So you are saying to remove the import, and change the comment from: /** * @param { UpdateShopifyCostsGlobalActionContext } context */ to: /** @type { actionRun } */ ?
Chocci_Milk
Chocci_Milk4w ago
Exactly!
tonegolf71
tonegolf71OP4w ago
Ok, I'll give that a whirl. I've changed all those now, can you check if you see any more appearing in the last 30mins please?
Chocci_Milk
Chocci_Milk4w ago
The issues would have been in the problems drawer. I'm not sure that they would have affected the runtime of your code though
tonegolf71
tonegolf71OP4w ago
I don't think they were affecting it, it seems to be runnign fine after the change too, I just want to make sure I'm not polluting logs somewhere.
Chocci_Milk
Chocci_Milk4w ago
You should be ok. I don't think that you would ever get a log for that

Did you find this page helpful?