# Help Needed: n8n is not saving workflows to Postgres on Render

**URL:** <https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055>\
**Category:** Questions\
**Created:** [June 15, 2025, 6:49pm UTC](https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055 "2025-06-15T18:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoveCurrency](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lovecurrency/32/60483_2.png) [@LoveCurrency](https://community.n8n.io/u/LoveCurrency)\
**Post date:** [June 15, 2025, 6:49pm UTC](https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055/1 "2025-06-15T18:49:01Z")

</div>

🚨 Help Needed: n8n is not saving workflows to Postgres on Render

Hi all, I’m trying to self-host n8n on [Render.com](http://Render.com), and I’ve set up a Postgres database, but workflows are still not saving to it. After every restart, everything is lost.

Here’s what I’ve done:

✅ Configured render.yaml with these environment variables (scrubbed passwords):

services:

- type: web  
name: n8n  
runtime: docker  
env: docker  
plan: free  
envVars:
  - key: N8N\_BASIC\_AUTH\_ACTIVE  
value: true
  - key: N8N\_BASIC\_AUTH\_USER  
value: \<REDACTED\_EMAIL\>
  - key: N8N\_BASIC\_AUTH\_PASSWORD  
value: \<REDACTED\_PASSWORD\>
  - key: DB\_TYPE  
value: postgresdb
  - key: DB\_POSTGRESDB\_DATABASE  
value: n8n\_vlsv
  - key: DB\_POSTGRESDB\_HOST  
value: \<REDACTED\_HOST\>
  - key: DB\_POSTGRESDB\_PORT  
value: 5432
  - key: DB\_POSTGRESDB\_USER  
value: \<REDACTED\_DB\_USER\>
  - key: DB\_POSTGRESDB\_PASSWORD  
value: \<REDACTED\_DB\_PASSWORD\>
  - key: DB\_POSTGRESDB\_SCHEMA  
value: public
  - key: N8N\_RUNNERS\_ENABLED  
value: true
  - key: N8N\_ENFORCE\_SETTINGS\_FILE\_PERMISSIONS  
value: true

✅ I redeployed the service  
✅ Logs show Postgres accepts connections  
✅ I created workflows in the UI  
❌ But when I check via psql, I get:

ERROR: relation “workflow\_entity” does not exist

I suspect n8n is silently falling back to SQLite, but I can’t figure out what’s wrong. Any guidance or known fixes?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Sudhanshu\_Sharma](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sudhanshu_sharma/32/42557_2.png) [@Sudhanshu\_Sharma](https://community.n8n.io/u/Sudhanshu_Sharma)\
**Post date:** [June 15, 2025, 7:17pm UTC](https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055/2 "2025-06-15T19:17:30Z")

</div>

Hey @LoveCurrency,

I see that you mentioned you’re using the free instance of Render.

- Render’s free instance always shuts down after 15 minutes of inactivity.
- That’s why, when you restart the server, it starts fresh and doesn’t retain any saved workflows.

For this use case, I recommend using an external Postgres database instead of the one provided by Render itself.

**Why?**

- Because in this case, even if your instance becomes inactive, when you restart the server, it will reconnect to the same external database with all your saved data.

**How to do this?**

- The easiest and free way is by using Supabase. Create a database there and get the credentials.

> 💡 Pro tip: Set the Supabase project’s region to the same region where you’ve deployed n8n on Render for better performance.

- Next, just replace the Postgres database-related environment variables with the ones you get from Supabase.

That’s it…hope it helps!

Still, if you need any help or would like a detailed guide on setting up n8n on Render, let me know. I’ll write up a step-by-step document and share it here.

–[Sudhanshu](https://linkedin.com/in/sudhanshu934)

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [June 27, 2025, 3:05pm UTC](https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055/3 "2025-06-27T15:05:07Z")

</div>

For anyone else who finds this post/thread re: `render.com`’s free/hobby tier services, also be aware that Render will **expire** the postgres instance after 30 days, and then hold your n8n instance data hostage, only allowing you to get the data back in exchange for an upgrade to a paid plan. You have to dig a bit (scroll down, expand the detailed info, and notice the subtle parenthetical note - screenshot below) to find the “30 day limit” on their pricing page. IMO, this database instance “expiration” is an even more compelling reason to configure n8n’s database somewhere NOT on Render if what you want is a free/experimental hosted instance. Given how buried this information is regarding the significant “gotcha” limitation on the “free” service, (i.e. [drug-sample](https://journalofethics.ama-assn.org/article/drug-samples-why-not/2014-04) tactic), I would be reluctant to use Render at all.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/a/7aada62199ed3f7caa049e113b53af2c670e8fa5.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 25, 2025, 3:05pm UTC](https://community.n8n.io/t/help-needed-n8n-is-not-saving-workflows-to-postgres-on-render/133055/4 "2025-09-25T15:05:44Z")

</div>

Closed on September 25, 2025, 3:05pm UTC

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