n8n Cloud workflow stuck on “Publishing…

Describe the problem/error/question

Hello,
I am using n8n Cloud and my workflow is stuck on “Publishing…” and never finishes.
My workflow uses:
Email Trigger (IMAP) connected to GMX
AI Agent
OpenAI Chat Model
Gmail “Send a message”
The IMAP trigger works correctly in test mode and successfully receives new emails from GMX.
The workflow also worked successfully before in production.
However, now when I try to publish the workflow, the status stays on “Publishing…” indefinitely.
I have already tried:
Refreshing the browser
Unpublishing and publishing again
Signing back into my n8n Cloud workspace
Duplicating the workflow and publishing the duplicate
Testing the IMAP trigger separately
The duplicated workflow has exactly the same problem.
At one point, the workspace also showed as offline, but I signed back in successfully.
Could you please help me check whether there is a problem with my n8n Cloud workspace or with the publishing service?
Thank you.

What is the error message (if any)?

Please share your workflow

Publishing

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @mahnam_2026, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Nalin_Krishnan, @Gallo_AIA, @Marc_Skipp - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

@mahnam_2026

Please reach out to help@n8n.io

Two things that are easy to mix up here, from our own testing (self-hosted 2.31.5 / 2.32.6 — we have no Cloud measurements, so treat this as a way to narrow it down rather than a diagnosis):

Test mode passing does not tell you activation will pass. They are different gates. Running a workflow manually executes the nodes; publishing runs a separate static validation (validateForActivation on the server since 2.8.0). A workflow can execute perfectly in test mode and still be refused at publish.

What that validation trips on most often: a sub-node’s credential, not the main node’s. Your AI Agent’s OpenAI Chat Model is a separate node on the ai_languageModel connection, and it declares its credential as required: true with no display conditions — so as long as it is enabled and connected, it is an issue until a credential is attached, even if you never actually call it. The same applies to the IMAP trigger and the Gmail node independently.

Two cheap checks before you write to support:

  1. Open every node once, including the sub-nodes hanging off the AI Agent. In a single-credential environment, simply opening the node panel is what attaches the credential — a node you never opened can still be missing one while the canvas looks fine. Then look at the publish button area for an “N nodes have issues” message.
  2. If you want to confirm which node it is, temporarily disable the AI Agent’s model node (select it, press D). Disabled nodes are excluded from the activation validation entirely — so if publish suddenly succeeds, you have found the node. (Do not ship it disabled: a disabled node passes its input straight through, silently, with no error — that is a much worse failure mode in production than a blocked publish.)

If publish is genuinely hanging with no message at all, that is a different problem from the one above and support is the right call — but it is worth ruling this one out first, because it costs a minute and it is the common one.

Hi @mahnam_2026 Welcome to the n8n community !!

You can force the restart yourself instead of waiting on support.
A publish that spins forever with no error means the workspace’s activation path is hung, and your duplicate failing the exact same way points at the instance, not the workflow. Open https://app.n8n.cloud/manage, go to Manage, then Workspace, pick a different version in the n8n version dropdown and hit Change version. That forces a 1 to 2 minute restart, and publishing goes through once it comes back.

Same symptom here, and the restart sorted it:

Pick the newest version while you’re in that dropdown.

If it still hangs after the restart, that’s one for help@n8n.io with your workspace URL.

Let me know if this helps or not.