# Node Red crashed and I am not able to restart

**URL:** https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986
**Category:** General
**Created:** [28 February 2024 05:55 UTC](https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986 "2024-02-28T05:55:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![StevieG](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@StevieG](https://discourse.nodered.org/u/StevieG)
#### Post date: [28 February 2024 05:55 UTC](https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986/1 "2024-02-28T05:55:52Z")

</div>

Hi,  
I am running NodeRed on a Raspbery Pi Zero, and to day it has crashed while I was changing MQTT sub information. I would be really grateful if anyone has a solution.  
I have stopped and re-started node red in safe mode, I have attached what i am seeing

```auto
sg@raspberrypi:~ $ node-red --safe
/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/credentials.js:389
                const newCredentialKeys = Object.keys(newCreds?.map || [])
                                                               ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js:24:19)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

```

I am unsure how to apply the backup file, if that is possible I am unsure.

Any help would be really appreciated. Thanks

Steve

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [28 February 2024 06:47 UTC](https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986/2 "2024-02-28T06:47:43Z")

</div>

> [@StevieG](#):
>
> I am unsure how to apply the backup file,

What backup file is that?

You could try renaming your flows credentials file in case it is corrupt.

```auto
cd ~/.node-red
mv flows_cred.json flows_cred.json.broken

```

If that allows Node-red to start you will have to set up again any credential nodes such as MQTT brokers, email accounts etc.

If it's still broken, re-run the Node-red installation script.

---

<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: [28 February 2024 09:18 UTC](https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986/3 "2024-02-28T09:18:10Z")

</div>

Node-red should not crash because of misconfiguration of a core node. I suspect something else is amiss.

What version of node and node-red do you have installed?

From the command line, run

```auto
node -v
node-red --help

```

---

<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: [28 May 2024 09:18 UTC](https://discourse.nodered.org/t/node-red-crashed-and-i-am-not-able-to-restart/85986/4 "2024-05-28T09:18:45Z")

</div>

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