<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[IoBroker - No connection to database]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Als ich heute nach Hause kam spinnte mein IOBroker (Licht ging unvermittelt an und wieder aus).<br />
Also mal nachgeschaut.</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data $ iobroker status
No connection to databases possible ...

</code></pre>
<p dir="auto">ich habe inzwischen den Raspberry neu gebootet, die objects.json und states.json aus alten Backups geladen, kein Erfolg.</p>
<p dir="auto">mal kommt einfach nur</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data $ iobroker status
No connection to databases possible ...
</code></pre>
<p dir="auto">mal</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data $ iobroker status
Server Cannot load /opt/iobroker/iobroker-data/states.json: /opt/iobroker/iobroker-data/states.json: Unexpected end of JSON input. Try last Backup!
No connection to databases possible ...
</code></pre>
<p dir="auto">dann mal</p>
<pre><code>Server Cannot load /opt/iobroker/iobroker-data/objects.json: Database file /opt/iobroker/iobroker-data/objects.json does not exists.. Try last Backup!
Server Cannot load /opt/iobroker/iobroker-data/objects.json.bak: /opt/iobroker/iobroker-data/objects.json.bak: Unexpected token d in JSON at position 26334274. Continue with empty dataset!
No connection to databases possible ...
</code></pre>
<p dir="auto">ein nächstes mal</p>
<pre><code>/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2674
                res.forEach(aliveState =&gt; {
                    ^
</code></pre>
<p dir="auto">nach dem zehnten Versuch startet IOBroker auf einmal doch wieder, hat aber nach 10 Minuten immer noch keine Admin Oberfläche aufbauen können. Wenn ich jetzt den Status aufrufe kommt wieder</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data $ iobroker status
No connection to databases possible ...
</code></pre>
<p dir="auto">Wo kann ich da ansetzen?</p>
]]></description><link>https://forum.iobroker.net/topic/48704/iobroker-no-connection-to-database</link><generator>RSS for Node</generator><lastBuildDate>Thu, 28 May 2026 10:52:25 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/48704.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Oct 2021 21:35:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IoBroker - No connection to database on Sat, 23 Oct 2021 12:33:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wolfgangfb" aria-label="Profile: wolfgangfb">@<bdi>wolfgangfb</bdi></a> sagte in <a href="/post/692334">IoBroker - No connection to database</a>:</p>
<blockquote>
<p dir="auto">Nach ca. 30 Minuten habe ich dann gesehen, dass meine Vis Oberfläche wieder läuft. Auch der IoBroker zeigt jetzt wieder</p>
</blockquote>
<p dir="auto">Ich kenne dein System nicht , wo du ioBroker installiert hast .<br />
Hast du da etwas drauf , was eine hohe Rechnerlast verursacht !?</p>
<blockquote>
<p dir="auto">diesem Zustand unkontrollierte Aktionen ausgeführt</p>
</blockquote>
<p dir="auto">Eventuell deine Scripte getriggert auf "wurde aktualisiert "  nicht auf "wurde geändert "</p>
<p dir="auto">Du kannst ja auch mal die Instanz JS komplett ausschalten , sudo reboot machen und dann schauen ob er sauber hochfährt .</p>
<p dir="auto">Steht nicht s im LOG !? wo es klemmt</p>
]]></description><link>https://forum.iobroker.net/post/692339</link><guid isPermaLink="true">https://forum.iobroker.net/post/692339</guid><dc:creator><![CDATA[Glasfaser]]></dc:creator><pubDate>Sat, 23 Oct 2021 12:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to IoBroker - No connection to database on Sat, 23 Oct 2021 12:23:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glasfaser" aria-label="Profile: glasfaser">@<bdi>glasfaser</bdi></a></p>
<p dir="auto">Nach ca. 30 Minuten habe ich dann gesehen, dass meine Vis Oberfläche wieder läuft. Auch der IoBroker zeigt jetzt wieder</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data $ iobroker status
iobroker is running on this host.


Objects type: file
States  type: file
</code></pre>
<p dir="auto">Aber verunsichern tut mich das ganze doch, zumal es nicht zum ersten mal aufgetreten ist.<br />
Was mich aber am meisten stört ist, dass der IoBroker in diesem Zustand unkontrollierte Aktionen ausgeführt hat (Lichter - Shelly -  gingen an und aus, Rollläden wurden teilweise nicht geschlossen, andere schon).</p>
]]></description><link>https://forum.iobroker.net/post/692334</link><guid isPermaLink="true">https://forum.iobroker.net/post/692334</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Sat, 23 Oct 2021 12:23:59 GMT</pubDate></item><item><title><![CDATA[Reply to IoBroker - No connection to database on Fri, 22 Oct 2021 21:58:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wolfgangfb" aria-label="Profile: wolfgangfb">@<bdi>wolfgangfb</bdi></a> sagte in <a href="/post/692192">IoBroker - No connection to database</a>:</p>
<blockquote>
<p dir="auto">nach dem zehnten Versucht sartet IOBroker auf einmal doch wieder,</p>
</blockquote>
<p dir="auto">dies ist auch komisch , aber :</p>
<blockquote>
<p dir="auto">No connection to databases possible ...</p>
</blockquote>
<p dir="auto">Wenn du jetzt nur noch diese Meldung hast dann :</p>
<p dir="auto">kommt eher von hier</p>
<blockquote>
<p dir="auto">Wichtig: Falls es mit js.controller 3.2.x bei update oder upgrade einen Fehler gibt "No connection to database" dann bitte nochmals versuchen, wenn wieder passiert folgende Schritte ausführen:<br />
Editiere /opt/iobroker/iobroker-data/iobroker.json<br />
Unter objects und states gibt es ein ' "connectTimeout": 2000,`<br />
Zahl ändern in 5000 draus.<br />
Neu versuchen<br />
Nach dem Upgrade am besten den Wert wieder zurücketzen weil der js-controller 3.3 hier optimiert und länger wartet</p>
</blockquote>
]]></description><link>https://forum.iobroker.net/post/692199</link><guid isPermaLink="true">https://forum.iobroker.net/post/692199</guid><dc:creator><![CDATA[Glasfaser]]></dc:creator><pubDate>Fri, 22 Oct 2021 21:58:07 GMT</pubDate></item><item><title><![CDATA[Reply to IoBroker - No connection to database on Fri, 22 Oct 2021 21:46:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wolfgangfb" aria-label="Profile: wolfgangfb">@<bdi>wolfgangfb</bdi></a> sagte in <a href="/post/692192">IoBroker - No connection to database</a>:</p>
<p dir="auto">Die Stückel Ausgaben mit iobroker status sind merkwürdig<br />
Mache erstmal ein</p>
<pre><code>sudo reboot
</code></pre>
<blockquote>
<p dir="auto">/opt/iobroker/iobroker-data/objects.json does not exists..</p>
</blockquote>
<p dir="auto">Wie hast du es denn kopiert ?</p>
<p dir="auto">das sieht eher nach dem dann aus ,<br />
bzw. dann danach gehen :</p>
<p dir="auto"><a href="https://forum.iobroker.net/topic/43325/mini-howto-cannot-find-view-system-for-search-host">https://forum.iobroker.net/topic/43325/mini-howto-cannot-find-view-system-for-search-host</a>?</p>
<p dir="auto"><strong>Edit</strong>:</p>
<blockquote>
<p dir="auto">ich habe inzwischen den Raspberry neu gebootet,</p>
</blockquote>
<p dir="auto">habe ich überlesen</p>
]]></description><link>https://forum.iobroker.net/post/692196</link><guid isPermaLink="true">https://forum.iobroker.net/post/692196</guid><dc:creator><![CDATA[Glasfaser]]></dc:creator><pubDate>Fri, 22 Oct 2021 21:46:07 GMT</pubDate></item></channel></rss>