# Flows stopped in case of missing nodes influxdb and influxdb.out

**URL:** <https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659>\
**Category:** General\
**Created:** [26 February 2025 09:56 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659 "2025-02-26T09:56:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 09:56 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/1 "2025-02-26T09:56:48Z")

</div>

Hello  
since today morning all works fine with my MQTT, Node-Red, InfluxDB2 and Grafana installation.  
Then I made backup of my RasberryPI and after them rebooting the RasberryPI.  
When I now open Node-Red I get error message that my flows stopped in case of missing nodes influxdb and influxdb.out.  
When I look into the settings of Node-Red into menu Palette then I see an error for node-red-contrib-influxdb " \* SyntaxError: Unexpected token '(' (line:1)".

With node-red-log at terminal I get the messages:  
26 Feb 10:30:12 - [info] Waiting for missing types to be registered:  
26 Feb 10:30:12 - [info] - influxdb  
26 Feb 10:30:12 - [info] - influxdb out

Can somebody tell me what could be the reason and how I can fix without loosing all my flows?  
I´ve nothing changed at the installation of node-red neither on the RasberryPI.

---

<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:** [26 February 2025 10:10 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/2 "2025-02-26T10:10:51Z")

</div>

> [@twohlgemuth](#):
>
> I see an error for node-red-contrib-influxdb " \* SyntaxError: Unexpected token '(' (line:1)".

Sounds like corruption. I would definitely recommend getting a new SD card.

To get you up and running, try uninstalling and reinstalling the Node via command line.

Change directory into your `.node-red` directory, do `npm remove node-red-contrib-influxdb` followed by `npm install node-red-contrib-influxdb`

Also, in case of complete SD card failure, you should most definitely have a backup of your flows. While you are in the `.node-red` directory , make a backup of your flows JSON file to a remote location (usb stick/Google drive/email/something)

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 10:16 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/3 "2025-02-26T10:16:52Z")

</div>

Backup of the json files allways done when I change something. So in case of the worst case the flows are secure.  
Lovely thing happen. I shutdown RasberryPI again, make him powerless and then repower and restart again and all is ok.  
Strange behaviour.  
But will get new SD card. But wondering. The card is brought in November 2024! Should be not normal live time of SD card!?

---

<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:** [26 February 2025 10:21 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/4 "2025-02-26T10:21:16Z")

</div>

Depends on a huge number of factors. The quality of the SD card. How much space there is. How often you are doing writes. Whether the card has built in wear levelling. It does seem like a short period of time but not unheard of.

One of the golden rules with raspberry pi running off SD is to minimise logging to file to reduce wear (there are more)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 February 2025 10:31 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/5 "2025-02-26T10:31:30Z")

</div>

I have just replaced an SD card that has been running continuously (and was still fine) in a pi for 9 years. I only replaced it because I wanted to upgrade node-red and that will no longer run under Jessie!

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 10:43 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/6 "2025-02-26T10:43:21Z")

</div>

OK. Now I'm completely confused.  
I have a SanDisk Extreme with 128 GB in it. There is enough space on it (approx. 117 GB). That is permanently written on it, because the InfluxDB2 data has to stay somewhere.  
However, I would have expected the card to last reliably longer.  
9 years is of course great. But 3 months is probably a bit short.  
But as long as I have no logical explanation as to why the nodes suddenly disappeared after the first reboot and then reappeared after the second, it's not impossible with the card. Maybe a black sheep?

---

<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:** [26 February 2025 10:43 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/7 "2025-02-26T10:43:28Z")

</div>

After 9 years, does df -h show the card size as significantly smaller than it's nominal capacity?

eg on one of my Pies with a Sandisk 64GB card I see

```auto
/dev/mmcblk0p2 58G 5.7G 50G 11% /
/dev/mmcblk0p1 510M 67M 444M 14% /boot/firmware

```

I'm wondering if this offers a way of assessing the card's status.

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 10:58 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/8 "2025-02-26T10:58:25Z")

</div>

I check my Pie with Android App RaspController. There I´ve many possibilties to check the Pie.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 February 2025 11:14 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/9 "2025-02-26T11:14:18Z")

</div>

> [@twohlgemuth](#):
>
> I have a SanDisk Extreme with 128 GB in it. There is enough space on it (approx. 117 GB). That is permanently written on it, because the InfluxDB2 data has to stay somewhere.

I would not recommend using a card with influxdb. It seems to to do large amounts of shuffling data about and can generate vast amounts of log output.

Do you mean you are using 117 of the 128GB, or there is 117GB free? If you are using 117 of 128 then that is less than 10% free which is not good. If you are then put a USB disc in it, that should be much more reliable.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 February 2025 11:26 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/10 "2025-02-26T11:26:00Z")

</div>

> [@jbudd](#):
>
> After 9 years, does df -h show the card size as significantly smaller than it's nominal capacity?

It is supposed to be an 8GB card, gparted reports it as 7.4GiB (which is 7.95GB apparently), of which I am using about 5GiB. However, that doesn't mean much about lost sectors because I don't know what it said when it was new. Manufacturers tend to use a rather vague definition of GB I think. I have moved to a 16GB card.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 February 2025 12:10 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/11 "2025-02-26T12:10:12Z")

</div>

> [@Colin](#):
>
> I would not recommend using a card with influxdb. It seems to to do large amounts of shuffling data about and can generate vast amounts of log output.

I ran that way for years as well with no issues. Modern quality cards with plenty of spare space should last years of really heavy use. The main thing is to make sure that you have one with wear levelling and plenty of spare capacity The Samsung EVO ranges all have wear levelling.

> [@Colin](#):
>
> If you are using 117 of 128 then that is less than 10% free which is not good.

You should never, of course, run ANY filing system with so little spare capacity. Indeed, anything less than 20% is going to start having performance issues. For SD-Cards, I'd recommend having a card at least 2-3 times the size you think you need - as long as it has wear levelling.

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 13:20 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/12 "2025-02-26T13:20:55Z")

</div>

I´ve 117 GB free space. The idea with the USB Disc sounds good. I´l try next days.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 February 2025 13:48 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/13 "2025-02-26T13:48:03Z")

</div>

Also see @TotallyInformation's post. Since you have so much free space then it may be that there is no problem with using influxdb.

If you shut down the pi to do the backup did you shut it down correctly or just disconnect the power?

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 14:16 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/14 "2025-02-26T14:16:44Z")

</div>

After backup I´ve shut him down or better restart with sudo shutdown -r now. After he is still alive I´ve the problem.  
After I´ve posted here I try it with sudo shutdown -h 0, when he is down disconnect power, after few seconds reconnect power and then the Pie is coming up and Node-red working properly.  
Is there a difference between the restart and the complete shutdown which can explain the behaviour?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 February 2025 14:20 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/15 "2025-02-26T14:20:20Z")

</div>

> [@twohlgemuth](#):
>
> Is there a difference between the restart and the complete shutdown which can explain the behaviour?

I don't _think_ so, but not sure.

You should run a filing system check if you aren't going to replace the card.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 February 2025 14:39 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/16 "2025-02-26T14:39:41Z")

</div>

> [@twohlgemuth](#):
>
> Is there a difference between the restart and the complete shutdown which can explain the behaviour?

A restart will not remove the power from all circuits, perhaps not from the SD card, so if some logic somewhere was confused it may not reset it. Shutdown and then powering down will force everything to be switched off.

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [26 February 2025 14:50 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/17 "2025-02-26T14:50:59Z")

</div>

I´m not the great Linux expert. How can I check filesystem?  
FSCK doesn´t work because partition on SD card are mounted.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 February 2025 14:58 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/18 "2025-02-26T14:58:32Z")

</div>

```bash
sudo fsck -n /dev/sdX1

```

Replace `X` with the letter corresponding to your card's drive. Use the `lsblk` command to find it if you need to. That runs it in read-only mode. Not really recommended but it does work.

To check the boot drive on a pi, `sudo touch /forcefsck` and then reboot.

---

<div class="post-metadata">

**Author:** ![twohlgemuth](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@twohlgemuth](https://discourse.nodered.org/u/twohlgemuth)\
**Post date:** [27 February 2025 07:45 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/19 "2025-02-27T07:45:51Z")

</div>

I´ve done fsck. The only output I get is:  
fsck from util-linux 2.38.1  
e2fsck 1.47.0 (5-Feb-2023)  
Warning! /dev/mmcblk0p2 is mounted.  
Warning: skipping journal recovery because doing a read-only filesystem check.  
rootfs: clean, 202505/7715488 files, 3758653/31218688 blocks

To be honest don´t see any useful information.  
Output of lsblk is:  
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS  
mmcblk0 179:0 0 119.6G 0 disk  
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware  
└─mmcblk0p2 179:2 0 119.1G 0 part /

Where can I see if there is an error on the card?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 February 2025 08:39 UTC](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659/20 "2025-02-27T08:39:57Z")

</div>

> [@twohlgemuth](#):
>
> Where can I see if there is an error on the card

It says it is clean, which means no errors as far as it can tell.

What command exactly did you run?

[Next page](https://discourse.nodered.org/t/flows-stopped-in-case-of-missing-nodes-influxdb-and-influxdb-out/95659.md?page=2)
