# Mongodb on RaspiOS64

**URL:** <https://discourse.nodered.org/t/mongodb-on-raspios64/66403>\
**Category:** General\
**Created:** [13 August 2022 18:40 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403 "2022-08-13T18:40:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [13 August 2022 18:40 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/1 "2022-08-13T18:40:58Z")

</div>

Hi,  
i tried to install mongodb on an raspi4 with 64bit Raspi-OS.  
The earlier used method does not work any longer, it comes up with:  
Fehlermeldung E: Für Paket »mongodb-server« existiert kein Installationskandidat.  
After looking into 4 forums i could not find a working solution.  
Has anyone here experience in installing mongodb on raspi with 64bit OS?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 August 2022 18:54 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/2 "2022-08-13T18:54:55Z")

</div>

@alexander77 this is way off topic here, but why do you need the 64bit version of Raspian?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [13 August 2022 19:07 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/3 "2022-08-13T19:07:29Z")

</div>

off topic: yes, i know. It's like a last chance, since the info on the mongodb HP does not work and i could not find another solution.  
To run influxdb and grafana on a raspi i decided to use the 64bit OS. Now i tried all the packages i used earlier. I have influxdb, grafana and mqtt running on the 64bit OS; currently mongodb is the bottleneck.

BTW, i made a collection of setup-instructions, also containing infos how to make the raspi visible on my windows PC's, giving the raspi a second ip-address aso.  
Can be downloaded here

> **[Raspberry installation coockbook v1.xlsx](https://www.dropbox.com/s/nhj5cyaupo0cb5j/Raspberry%20installation%20coockbook%20v1.xlsx?dl=0)**
>
> Shared with Dropbox

Sorry, german. But feel free to use it, if it helps someone not to loose too much time then it was worth the effort.  
edit: typo of link

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 August 2022 19:12 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/4 "2022-08-13T19:12:31Z")

</div>

> [@alexander77](#):
>
> I have influxdb, grafana and mqtt running on the 64bit OS

Why do you need MongoDB?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [13 August 2022 19:13 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/5 "2022-08-13T19:13:38Z")

</div>

For a small database, ~ 150 entries, JSON objects.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 August 2022 19:15 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/6 "2022-08-13T19:15:15Z")

</div>

Where are the JSON objects coming from, or are they static?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [13 August 2022 19:17 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/7 "2022-08-13T19:17:32Z")

</div>

No, dynamic, it's similar to an inventory database. ~ 25 elements in the JSON object. Mixed types.

Edit types

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 August 2022 19:20 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/8 "2022-08-13T19:20:07Z")

</div>

Can't you read them into a Global array in Node-Red?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [13 August 2022 19:22 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/9 "2022-08-13T19:22:41Z")

</div>

Maybe i have to do it, when mongodb is a dead-end street. I sayed to myself, give it a last try.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [13 August 2022 19:24 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/10 "2022-08-13T19:24:29Z")

</div>

Alexander, PM me Ich spreche Deutsch

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [14 August 2022 10:55 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/12 "2022-08-14T10:55:06Z")

</div>

Found two more instructions how to install mongodeb.  
They end with:  
E: Paket gcc-8-aarch64-linux-gnu kann nicht gefunden werden.  
E: Paket g++-8-aarch64-linux-gnu kann nicht gefunden werden.  
E: Mittels regulärem Ausdruck »g++-8-aarch64-linux-gnu« konnte kein Paket gefunden werden.

and the other with  
pi@raspberrypi:~ $ tar zxvf raspbian\_mongodb\_4.4.8.gz  
tar (child): raspbian\_mongodb\_4.4.8.gz: Funktion open fehlgeschlagen: Datei oder Verzeichnis nicht gefunden  
tar (child): Error is not recoverable: exiting now

Maybe i really should try another way like ghayne said.

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [14 August 2022 22:00 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/13 "2022-08-14T22:00:08Z")

</div>

Don't give up, it is doable, I think I used this guide: [MongoDB 5.0 under Raspberry Pi OS (64-bit) – AndyFelong.com](https://andyfelong.com/2021/08/mongodb-4-4-under-raspberry-pi-os-64-bit-raspbian64/)

I'm running v4.4.8 on a Raspberry Pi 4 8GB 64bit Raspbian Buster, but it looks like the guide has been updated for v5.0.5 as well.

---

<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:** [13 October 2022 22:00 UTC](https://discourse.nodered.org/t/mongodb-on-raspios64/66403/14 "2022-10-13T22:00:22Z")

</div>

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