# How to upgrade NR from 3.0.2 to 3.1.5

**URL:** <https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173>\
**Category:** General\
**Created:** [21 September 2024 22:37 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173 "2024-09-21T22:37:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2024 22:37 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/1 "2024-09-21T22:37:23Z")

</div>

I may need to update NR on my 3 RasPis.

They have NR 3.0.2  
They _need_ 3.1.5 so they are the same version as _this_ machine.

Sorry, how would I do that?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 September 2024 22:45 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/2 "2024-09-21T22:45:10Z")

</div>

> [@Trying\_to\_learn](#):
>
> RasPis

Run the official installer script

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2024 22:46 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/3 "2024-09-21T22:46:46Z")

</div>

But won't that install the latest version?

I don't do this enough to confidently do it.  
Sorry.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 September 2024 22:53 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/4 "2024-09-21T22:53:12Z")

</div>

The script supports parameters one of them being `--nodered-version` e.g `script --nodered-version="3.1.5"`

Although not sure why you wouldn't go with latest (4.0.3) or even the latest 3.x which is 3.1.12!

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2024 22:58 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/5 "2024-09-21T22:58:57Z")

</div>

I agree so much.

But I _fear_ (correctly or otherwise) that incompatibilities will creep in.

I don't want to move stuff between machine and have problems with versions.

And in light of the other thread: I'm not sure I need to update.

But I'll keep it in mind if I do decide to update.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 September 2024 23:10 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/6 "2024-09-21T23:10:55Z")

</div>

> [@Trying\_to\_learn](#):
>
> incompatibilities will creep in

Incompatibilities are often due to leaving it too long.

Neglecting for a minute the security issues and bugs that have been fixed since 3.1.5 was released - if you are going to the efforts of updating, go to the latest. Get ahead of the curve. Don't choose an older version because (tightly out wobbly etc) ....

Remember this: when you update node-red you aren't just updating node-red you are updating hundreds of dependencies. Many of them have security issues and bugs that have been fixed.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 September 2024 23:17 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/7 "2024-09-21T23:17:49Z")

</div>

Yeah, you are right.

And I am (maybe) being stubborn.

Just I have had this code which I _THOUGHT_ worked for years.

For reasons unknown it is starting to _fail_ and I am getting a lot of alerts which are not real.

I am sitting down rewriting a LOT OF CODE on the big machine - testing it.

It looks good but when I move it to the other machine/s it doesn't.

I would like to get this problem resolved - bad/poor programming.  
Hey, I'll cop it. I'll put it down to not really understanding what was happening and my poor testing.

As you see I have a few threads open as I am being blind sided by these ..... _idiosyncratic_ things that I can't see the cause for them failing.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [22 September 2024 22:22 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/8 "2024-09-22T22:22:24Z")

</div>

Not sure where you are at on this Andrew - i think your main machine is a Windows PC ? If so - look at one of the Virtual Machine managers and setup a couple of Virtual Machines on there - then move your code through each virtual machine and test it on different versions of Node Red to see if amything obvious breaks - this is the way i do it.

Clone the existing production machine, Change its IP to something new and disable all Input/Output (so it can not affect any live systems) (i have all my MQTT in/out nodes on a single page linked to everywhere that uses them so i can simply disable that flow and all MQTT traffic is stopped)

I then upgrade that new VM to whatever version of NR i want and check if all the nodes work OK - if not i can remediate until finally ready to test in production.

Craig

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [23 September 2024 05:45 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/9 "2024-09-23T05:45:15Z")

</div>

If you distribute to devices that are running Raspbian, I would also develop on a similar

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [23 September 2024 09:33 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/10 "2024-09-23T09:33:04Z")

</div>

Hey Craig.

No, the main machine is a NUC with Ubuntu 22.04

I once did have a VM on this but disc space kinda killed it. ☹  
500GB only goes so far.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [24 September 2024 01:42 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/11 "2024-09-24T01:42:55Z")

</div>

You really only need 20GB (or Less) for a headless VM for NR

Craig

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 September 2024 01:44 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/12 "2024-09-24T01:44:46Z")

</div>

Ah, 20 gig. 😉

Ok, I have 40G free just now.

But that was after a lot of cleaning up.

Thanks. But....

Just now I am out of my depth with these weird things happening to me.  
(See other threads)  
I won't go on about it, but it is really confusing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 December 2024 01:45 UTC](https://discourse.nodered.org/t/how-to-upgrade-nr-from-3-0-2-to-3-1-5/91173/13 "2024-12-23T01:45:40Z")

</div>

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