# How to I reinstall software without loosing my data?

**URL:** <https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071>\
**Category:** Troubleshooting\
**Created:** [13 June 2023 07:41 UTC](https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071 "2023-06-13T07:41:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spawnreaper](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@spawnreaper](https://dietpi.com/forum/u/spawnreaper)\
**Post date:** [13 June 2023 07:41 UTC](https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071/1 "2023-06-13T07:41:29Z")

</div>

### Creating a bug report/issue

#### Required Information

- DietPi version | `8.18.2`
- Distro version | `bullseye 1`
- Kernel version | `6.1.21+ #1642`
- Architecture | `armhf`
- SBC model | RPi Zero W (armv6l)
- Power supply used | 5V 1A
- SD card used | (Kinston 32gb)

#### Additional Information (if applicable)

- Software title | (node-red)
- Was the software title installed freshly or updated/migrated? freshly
- Can this issue be replicated on a fresh installation of DietPi? no idea  
 ← If you sent a “dietpi-bugreport”, please paste the ID here → 
- Bug report ID | `60e141c6-70f5-4ffb-a9aa-ed189724a588`

#### Steps to reproduce

1. I just worked in node red, suddenly the node-red page became unavailable. Tried rebooting.  
“node-red-start: command not found”

#### Expected behaviour

node red should have started

- …

#### Actual behaviour

node-red-start: command not found

#### Extra details

DietPi-Services  
─────────────────────────────────────────────────────  
Mode: status node-red

```auto
[FAILED] DietPi-Services | ● node-red.service - Node-RED (DietPi)
     Loaded: loaded (/etc/systemd/system/node-red.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-06-13 09:44:34 CEST; 8s ago
    Process: 916 ExecStart=/mnt/dietpi_userdata/node-red/node_modules/.bin/node-red -u /mnt/dietpi_userdata/node-red (code=exited, status=1/FAILURE)
   Main PID: 916 (code=exited, status=1/FAILURE)
        CPU: 42.357s

Jun 13 09:44:33 MonitorPi node-red[916]: at Object.watch (node:fs:2427:36)
Jun 13 09:44:33 MonitorPi node-red[916]: at /mnt/dietpi_userdata/node-red/node_modules/node-watch/lib/watch.js:398:22
Jun 13 09:44:33 MonitorPi node-red[916]: at /mnt/dietpi_userdata/node-red/node_modules/node-watch/lib/has-native-recursive.js:101:7
Jun 13 09:44:33 MonitorPi node-red[916]: at TempStack.cleanup (/mnt/dietpi_userdata/node-red/node_modules/node-watch/lib/has-native-recursive.js:49:24)
Jun 13 09:44:33 MonitorPi node-red[916]: at Timeout._onTimeout (/mnt/dietpi_userdata/node-red/node_modules/node-watch/lib/has-native-recursive.js:100:11)
Jun 13 09:44:33 MonitorPi node-red[916]: at listOnTimeout (node:internal/timers:573:17)
Jun 13 09:44:33 MonitorPi node-red[916]: at process.processTimers (node:internal/timers:514:7)
Jun 13 09:44:33 MonitorPi systemd[1]: node-red.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 09:44:34 MonitorPi systemd[1]: node-red.service: Failed with result 'exit-code'.
Jun 13 09:44:34 MonitorPi systemd[1]: node-red.service: Consumed 42.357s CPU time.

```

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [13 June 2023 08:09 UTC](https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071/2 "2023-06-13T08:09:04Z")

</div>

[The docs say:](https://dietpi.com/docs/software/hardware_projects/#node-red)

```auto
systemctl stop node-red
cd /mnt/dietpi_userdata/node-red
sudo -u nodered npm up --no-audit node-red
systemctl start node-red

```

So sounds like no data is lost, when updating/reinstalling.  
To play it safe I recommend doing a backup beforehand, with `dietpi-backup`.

But it’s very odd, that it became suddenly unavailable. Sounds like data corruption to me. Maybe a further look into your system would be advisable, to find the cause of this problem.

---

<div class="post-metadata">

**Author:** ![spawnreaper](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@spawnreaper](https://dietpi.com/forum/u/spawnreaper)\
**Post date:** [13 June 2023 08:36 UTC](https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071/3 "2023-06-13T08:36:26Z")

</div>

doing a reinstall at the moment. The last thing I remember doing is trying to install the filesystem node in code red. It failed and I was trying to figure out why. Maybe that node was bad.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [13 June 2023 12:23 UTC](https://dietpi.com/forum/t/how-to-i-reinstall-software-without-loosing-my-data/17071/4 "2023-06-13T12:23:07Z")

</div>

Usually a reinstall should be possible by running

```auto
dietpi-software reinstall 122

```
