N8n on Railway — how to import credentials?

Describe the problem/error/question

Hi,

I’m deploying n8n 1.113.3 to Railway (Docker) with two services: Primary for the web UI and Worker for background jobs. I’m trying to seed the instance with an exported credentials file, but I’m stuck. I’d appreciate guidance on a supported way to import credentials on first boot on Railway.

What I’m trying to do: import a credentials export (JSON array) of ~40,917 characters, generated from a locally installed Windows instance. Both instances use the same N8N_ENCRYPTION_KEY.

I believe there should be an easy way to do this, but I’ve already spent many hours and still can’t get it working.

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: 1.113.3
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Railway
  • Operating system:

hello @Federico_Acerenza

You can put the file into the n8n’s Docker container, or put it somewhere like Google/MS Drive and download it via the corresponding node, then use a write file node to put it inside the Docker, and finally use the execute command node to perform a CLI command for importing

1 Like

I’ll give it a try. It seems a little bit technical for me (I’m not a developer), and I’ve been trying similar approaches with AI but without results yet. Thanks.

Well.. for easy development, there is an option to use a cloud n8n instance. You don’t have to configure anything on the back side.

Other options require you to be a technical guy :slight_smile:

I know, I use n8n to automate my business (an accounting firm), and I’ve hit the technical wall several times. Luckily, I was able to import my credentials, and everything is working in my new instance now. Thanks for the help!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.