Title: Convert to File fails in n8n Cloud: “Operation not permitted”

Hi, I’m using n8n Cloud version 2.43.7. My workflow generates audio through Gemini, then uses a Convert to File node set to “Move Base64 String to File.” The Base64 input is present, but the node fails with: “Operation not permitted, make sure you have the right permissions.” The following Telegram audio node then cannot run. Is this a Cloud binary storage limitation or a configuration issue? I’ve attached screenshots of the error and node settings.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

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:

Hi @khushikiki, try a tiny conversion test in a separate workflow:

Manual Trigger → Edit Fields → Convert to File

In Edit Fields, add a String field named sample with the value aGVsbG8=.

Configure Convert to File with:

  • Operation: Move Base64 String to File
  • Base64 Input Field: sample, entered as a fixed field name
  • Put Output File in Field: data
  • Options → File Name: test.txt
  • Options → MIME Type: text/plain

The expected result is a Binary data file containing hello. This tests binary creation with known input, independently of the Gemini payload.

If this also produces the permission error, share the minimal workflow and test execution ID with n8n Cloud support.

Could you also paste the original Convert to File parameters and expanded Error Details here? The attached image currently shows the forum category menu.

@khushikiki In n8n Cloud, this “Operation not permitted” error on “Move Base64 String to File” usually occurs when the “Base64 Input Field” parameter contains an expression like {{ $json.my_field }} instead of just the plain field name my_field.

When you pass an expression containing the raw base64 data, n8n tries to treat that string as a file system path or field key, which fails the sandbox permissions in Cloud’s filesystem binary mode. Make sure the Base64 Input Field contains only the unquoted property name, and verify that the Gemini output doesn’t include a data:audio/mp3;base64, URI prefix (strip it with .replace(/^data:audio\/[^;]+;base64,/, '') if present). If you continue hitting permission walls, you can also bypass Convert to File entirely in a Code node using $binary.data = { data: $json.base64_string, mimeType: 'audio/mp3', fileName: 'audio.mp3' }.

I tested this base64 binary assignment on Cloud v2.43.x and it hands off cleanly to Telegram without file system errors. What exact string is currently entered in your Base64 Input Field?

@khushikiki I’d recommend restoring the missing node from the original workflow backup and comparing both JSON files before saving. I’d verify the original node ID, parameters, and both connections, while ensuring all existing nodes and settings remain unchanged. Before applying the repair, I’d create a fresh backup and check for concurrent edits.

I’d also verify n8n 2.30.4’s API behavior before relying on versionId for conflict protection. Finally, I’d test the repaired workflow while keeping it inactive.

@operantsolo, Base64 Input Field is a JSON field path, not a filesystem path. In 2.43.7, an unresolved path throws The value in "..." is not set before binary preparation, so passing the Base64 value there doesn’t by itself explain the reported permission error.

Also, setting mimeType: 'audio/mp3' and fileName: 'audio.mp3' doesn’t convert the audio to MP3. The actual Gemini format still needs checking.

@Anshul_Namdev Good catch on both points — thanks for citing binary.ts. You’re right that sourceKey is evaluated strictly via get() and will throw “The value in … is not set” before any disk write is ever attempted.

Also a fair callout on the Gemini format: Gemini outputs raw PCM/WAV by default, so labeling it as MP3 without transcoding won’t produce playable audio in Telegram. Given that, the EPERM error on Cloud is almost certainly an internal container disk quota or permission issue during the binary manager’s write step.

@khushikiki Did running Anshul’s minimal test with test.txt produce the same EPERM error in your Cloud instance?

Before blaming Cloud, check what the Gemini bytes actually are. Google’s speech docs say unary TTS responses are complete WAV (audio/wav, with a RIFF header, 24 kHz mono 16-bit PCM). Streaming responses are headerless audio/l16 by default (ai.google.dev/gemini-api/docs/speech-generation). Setting mimeType to audio/mp3 in Convert to File doesn’t transcode anything, so a label that doesn’t match the bytes will fail downstream even when the conversion step works.

For the “Operation not permitted” error, run Anshul’s minimal test with test.txt and text/plain. If that also fails, the problem is the Cloud binary step, not the audio. In that case the minimal workflow and the execution ID are what Cloud support needs.

Which Gemini model and which response mode are you using?

This thread has three theories and one missing measurement. The error text itself orders them: “Operation not permitted” (EPERM) is raised at the binary write step — after the base64 has been found and decoded. A wrong Base64 Input Field behaves differently: as noted above from the source, an unresolved field throws “The value in … is not set” before any write is attempted. So the field-name theory predicts an error you are not seeing, and the split worth running is instance vs payload. That test was already proposed in this thread — here is how to read its result when you run it:

1. Minimal test, exactly as proposed above: Manual Trigger → Edit Fields with a field `sample` = `aGVsbG8=` → Convert to File, Move Base64 String to File, input field `sample`, output field `data`, file name `test.txt`, MIME type `text/plain`. Five bytes, no Gemini anywhere.

  • Same “Operation not permitted” → it is not your payload and not the audio. Your Cloud instance’s binary write path is failing, and that layer is not visible to you: send n8n Cloud support the minimal workflow plus that execution ID. Nothing you change in the Gemini or Telegram nodes can move this result.

  • Converts cleanly into a `hello` file → the instance is fine and the fault travels with the Gemini payload. Go to step 2.

2. If it is payload-specific, there are only two ways the Gemini value differs from the test string: size (a spoken paragraph as base64 is orders of magnitude larger than 5 bytes), and shape — check whether the value reaching Convert to File starts with a `data:audio/…;base64,` prefix and strip everything up to the comma if it does. Then retry the real conversion once and read which of the two changed the outcome.

3. One trap waiting downstream, so you don’t debug two failures as one bug: even when Convert to File succeeds, the Telegram audio node can still fail. Gemini’s speech output is PCM/WAV (per Google’s speech docs: complete WAV for unary responses, raw L16 for streaming), and Telegram’s sendAudio only accepts MP3 or M4A. Typing `audio.mp3` as the file name or MIME type in Convert to File relabels the bytes — it does not transcode them. If the Telegram step complains after conversion works, that is this second issue, not the EPERM coming back; sending the file as a document instead is the quick way to confirm the audio itself is intact.

So the deciding question is the cheap one: on your Cloud instance, does the 5-byte test.txt conversion return the same “Operation not permitted”, or a clean file? Everything else follows from that one result.