# How to update your n8n self hosted n8n instance

**URL:** <https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668>\
**Category:** English 🇬🇧\
**Created:** [November 13, 2024, 12:16pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668 "2024-11-13T12:16:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartv](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bartv/32/156374_2.png) [@bartv](https://community.n8n.io/u/bartv)\
**Post date:** [November 13, 2024, 12:16pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/1 "2024-11-13T12:16:51Z")

</div>

Robm writes:

> Keep your n8n self-hosted instance running smoothly! In this video, we’ll guide you through the process of updating your n8n setup to ensure you have the latest features and security improvements. Whether you’re a seasoned user or just getting started, this tutorial will help you navigate the update process effortlessly. In this video, you’ll learn:
> 
> - The importance of keeping your n8n instance updated. 🔄
> - Step-by-step instructions to update your self-hosted n8n. ⚙
> - How to troubleshoot common issues during the update process. 🛠

[![](https://europe1.discourse-cdn.com/n8n/original/3X/1/c/1c132e01f0ff51771c0ee03c606d42f5cd81e55e.jpeg "How to Update Your Self-Hosted n8n (for non-techies)") ](https://www.youtube.com/watch?v=7pwppn7gr7E)

---

<div class="post-metadata">

**Author:** ![050505](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/050505/32/45489_2.png) [@050505](https://community.n8n.io/u/050505)\
**Post date:** [November 14, 2024, 10:00pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/2 "2024-11-14T22:00:26Z")

</div>

Hi! I run n8n with `npx n8n`, is there something we need to do to update? May be just restart the process? Thanks!

---

<div class="post-metadata">

**Author:** ![bartv](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bartv/32/156374_2.png) [@bartv](https://community.n8n.io/u/bartv)\
**Post date:** [November 15, 2024, 9:16am UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/3 "2024-11-15T09:16:17Z")

</div>

@050505 see our documentation:

> **[Install globally with npm - npm | n8n Docs](https://docs.n8n.io/hosting/installation/npm/#install-globally-with-npm)**
>
> npm is a quick way to get started with n8n on your local machine. You must have Node.js installed. n8n requires a Node.js version between 20.19 and 24.x, inclusive. | Documentation for n8n, a workflow automation platform.

---

<div class="post-metadata">

**Author:** ![mrkidding](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mrkidding/32/55561_2.png) [@mrkidding](https://community.n8n.io/u/mrkidding)\
**Post date:** [January 30, 2025, 5:00pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/4 "2025-01-30T17:00:49Z")

</div>

Hi,

Please make a tutorial for people install n8n via Cyberpanel Docker feature.  
It’s very fast to install. But no tutorial yet for updating. (i tried and failed many times)

Thanks

This is what I got when i try to update the last command

```auto
root@aaa:~/n8n-docker-caddy# docker compose up -d
WARN[0000] /root/n8n-docker-caddy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 1/1
 ✔ Network n8n-docker-caddy_default Created 0.7s 
external volume "n8n_data" not found
root@aaa:~/n8n-docker-caddy#

```

---

<div class="post-metadata">

**Author:** ![satonotdead](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@satonotdead](https://community.n8n.io/u/satonotdead)\
**Post date:** [February 25, 2025, 8:42pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/5 "2025-02-25T20:42:02Z")

</div>

What’s can be wrong if I update and I see this message?

```auto
Webhook node version 1 (Latest version: 2)

```

---

<div class="post-metadata">

**Author:** ![Joshua\_Weg](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/joshua_weg/32/58811_2.png) [@Joshua\_Weg](https://community.n8n.io/u/Joshua_Weg)\
**Post date:** [May 4, 2025, 7:22pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/6 "2025-05-04T19:22:21Z")

</div>

I am self hosting as well and i am wanting upgrade instance to pro, but when attempting to upgrade to pro, a seperate instance is created.

---

<div class="post-metadata">

**Author:** ![cris\_clivi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/cris_clivi/32/78830_2.png) [@cris\_clivi](https://community.n8n.io/u/cris_clivi)\
**Post date:** [May 12, 2025, 6:02pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/7 "2025-05-12T18:02:21Z")

</div>

It works! If someone installed it on digital ocean from market place, you can use this exact same guide.

Just make sure you first use this command

cd …/opt/n8n-docker-caddy/

---

<div class="post-metadata">

**Author:** ![Leonard\_Chin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/leonard_chin/32/82306_2.png) [@Leonard\_Chin](https://community.n8n.io/u/Leonard_Chin)\
**Post date:** [May 19, 2025, 2:32pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/8 "2025-05-19T14:32:31Z")

</div>

Hey, I’m not too sure if this error should fall under this thread but hope someone has an answer. I’m currently stuck at [this step](https://docs.n8n.io/hosting/installation/server-setups/digital-ocean/#configure-caddy:~:text=Start%20n8n%20and%20Caddy%20with%20the%20following%20command%3A) when self hosting n8n via Digital Ocean and got this error message:

```auto
WARN[0000] /home/veraops/n8n-docker-caddy/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
service "n8n" refers to undefined volume home/veraops/n8n-docker-caddy/local_files: invalid compose project

```

Anyone got any fix for this?

---

<div class="post-metadata">

**Author:** ![King\_Samuel\_David](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/king_samuel_david/32/83690_2.png) [@King\_Samuel\_David](https://community.n8n.io/u/King_Samuel_David)\
**Post date:** [May 19, 2025, 5:04pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/9 "2025-05-19T17:04:17Z")

</div>

can u share ure .yml

its likely one of the below

Absolute path

```
volumes:
  - /home/veraops/n8n-docker-caddy/local_files:/local_files

```

Relative path (from the Compose file’s directory)

```
volumes:
  - ./local_files:/local_files

```

just make sre formatted correctly etc depending which way

if you want docker volume

```auto
  volumes:
    - n8n_storage:/home/node/.n8n

##just make sure to include at top of yml file the below declaring the volumes.

volumes:
  db_storage:
  n8n_storage:

```

etc at top of yml

---

<div class="post-metadata">

**Author:** ![Leonard\_Chin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/leonard_chin/32/82306_2.png) [@Leonard\_Chin](https://community.n8n.io/u/Leonard_Chin)\
**Post date:** [May 19, 2025, 11:41pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/10 "2025-05-19T23:41:49Z")

</div>

@King_Samuel_David

Hey, here’s my .yml before implementing any of your solutions:

```auto
services:
  n8n:
    image: docker.n8n.io/n8nio/n8n
    container_name: n8n
    restart: always
    ports:
      - 5678:5678
    environment:
      - N8N_HOST=localhost
      - N8N_PORT=5678
      - WEBHOOK_URL=http://localhost:5678
    volumes:
      - n8n_data:/home/node/.n8n

volumes:
  n8n_data:

```

It doesn’t seem to be working even w/ your solutions. It might be due to how I change the code. Could you show me exactly how to change them?

Btw I’m using MacBook Air M2 and my .yml is currently sitting on one of my Desktop folders (n8n-veraops).

Also, would appreciate if you could provide me w/ more workarounds so I can test them out in case these 3 codes don’t work.

Thanks!

---

<div class="post-metadata">

**Author:** ![matmuleme](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/matmuleme/32/45885_2.png) [@matmuleme](https://community.n8n.io/u/matmuleme)\
**Post date:** [August 10, 2025, 4:04pm UTC](https://community.n8n.io/t/how-to-update-your-n8n-self-hosted-n8n-instance/61668/11 "2025-08-10T16:04:20Z")

</div>

I’ve had n8n self-hosted on [render.com](http://render.com) (.5CPU & 512MB) for several months without issue except for occasionally running out of memory. In the last month or so I’m running out of memory more often so decided to upgrade to 1CPU & 2GB, but all of a sudden, the code will no longer deploy. I get the following build error and can’t roll back:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Any ideas of how to get past this would be appreciated.
