<?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[No connection to database possible... Endlosschleife]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Mitten im Editieren eines Javascript Skriptes hat sich IO-Broker verschluckt/aufgehangen/was auch immer.</p>
<p dir="auto">Seitdem ändert sich der Status von:</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
No connection to databases possible ...
</code></pre>
<p dir="auto">über</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
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/states.json: Database file /opt/iobroker/iobroker-data/states.json does not exists.. Try last Backup!
No connection to databases possible ...
</code></pre>
<p dir="auto">und manchmal</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
iobroker is running on this host.


Objects type: file
States  type: file
</code></pre>
<p dir="auto">(in der Phase geht auch alles, also Javascript/Vis/etc)</p>
<p dir="auto">nach ein paar Momenten kommt dann</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
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/states.json: Database file /opt/iobroker/iobroker-data/states.json does not exists.. Try last Backup!
No connection to databases possible ...
</code></pre>
<p dir="auto">(Die Datei ist dann wirklich nicht da oder hat 0 Byte)<br />
Kurz darauf erscheint objects.json und states.json wieder, dann kommt</p>
<pre><code>pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
Server Cannot load /opt/iobroker/iobroker-data/states.json: /opt/iobroker/iobroker-data/states.json: Unexpected string in JSON at position 4821840. Try last Backup!
No connection to databases possible ...
</code></pre>
<p dir="auto">in den Logfiles sehe ich folgenden Fehler:</p>
<pre><code>2022-02-09 13:09:37.721  - [31merror[39m: host.raspberrypi4 Caught by controller[0]: /opt/iobroker/node_modules/soef/soef.js:1383
2022-02-09 13:09:37.721  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     fns.adapter = fns.adapter(options);
2022-02-09 13:09:37.721  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:                       ^
2022-02-09 13:09:37.722  - [31merror[39m: host.raspberrypi4 Caught by controller[0]: TypeError: fns.adapter is not a function
2022-02-09 13:09:37.722  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Object.exports.Adapter (/opt/iobroker/node_modules/soef/soef.js:1383:23)
2022-02-09 13:09:37.722  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Object.&lt;anonymous&gt; (/opt/iobroker/node_modules/iobroker.js2fs/js2fs.js:79:20)
2022-02-09 13:09:37.722  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Module._compile (internal/modules/cjs/loader.js:999:30)
2022-02-09 13:09:37.722  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
2022-02-09 13:09:37.723  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Module.load (internal/modules/cjs/loader.js:863:32)
2022-02-09 13:09:37.723  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
2022-02-09 13:09:37.723  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
2022-02-09 13:09:37.723  - [31merror[39m: host.raspberrypi4 Caught by controller[0]:     at internal/main/run_main_module.js:17:47
2022-02-09 13:09:37.723  - [31merror[39m: host.raspberrypi4 instance system.adapter.js2fs.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
</code></pre>
<p dir="auto">Natürlich habe ich IO-Broker und den ganzen Raspberry mehrmals neu gestartet. Ich habe auch die verschiedensten objects.json aus dem Backup Verzeichnis zurückgespielt. Keine Verbesserung.<br />
Wo kann ich da ansetzen?</p>
]]></description><link>https://forum.iobroker.net/topic/52339/no-connection-to-database-possible-endlosschleife</link><generator>RSS for Node</generator><lastBuildDate>Sat, 23 May 2026 15:38:19 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/52339.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Feb 2022 12:13:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Fri, 11 Feb 2022 12:06:50 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> danke für die Rückmeldung und schön zu hören, das der Fehler gefunden wurde.</p>
]]></description><link>https://forum.iobroker.net/post/760389</link><guid isPermaLink="true">https://forum.iobroker.net/post/760389</guid><dc:creator><![CDATA[crunchip]]></dc:creator><pubDate>Fri, 11 Feb 2022 12:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Fri, 11 Feb 2022 11:55:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/crunchip" aria-label="Profile: crunchip">@<bdi>crunchip</bdi></a></p>
<p dir="auto">Hallo</p>
<p dir="auto">Es ist/war weder die Stromversorgung noch die SD Karte noch eine veraltete Version js2fs. Es ist schlicht so, dass ein fehlerhaftes Javascript es geschafft hat, den gesamten IO-Broker in die Knie zu zwingen. Ob das jetzt ein Bug des JS Adapters ist oder einfach so hingenommen werden muss sei jetzt dahingestellt.<br />
Bei mir war es ein Datenpunkt auf dessen Änderung getriggert worden ist und in der Aktion, die dann ausgelöst worden ist, eine Änderung genau dieses Datenpunktes vorgenommen worden ist. Dabei ist dann auch noch ein "toFixed" von einer boolschen Variable ausgeführt worden (ob das eine Rolle spielt glaube ich kaum).</p>
]]></description><link>https://forum.iobroker.net/post/760377</link><guid isPermaLink="true">https://forum.iobroker.net/post/760377</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Fri, 11 Feb 2022 11:55:45 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:48:55 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> unabhängig von deinem soef/javascript Problem, wie in deinem Eröffnungsthread beschrieben</p>
<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/759092">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">No connection to databases possible ...</p>
</blockquote>
<p dir="auto">und manchmal klappts,<br />
liegt es nahe, das da anderweitig etwas nicht mehr ganz rund läuft. zumindest würde ich die Sd Karte mal tauschen</p>
]]></description><link>https://forum.iobroker.net/post/759575</link><guid isPermaLink="true">https://forum.iobroker.net/post/759575</guid><dc:creator><![CDATA[crunchip]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:42:14 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/759571">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">(hätte ihn aber gerne wieder).</p>
</blockquote>
<p dir="auto">Wozu? Die Funktionen sind mittlerweile im javascript-Adapter drin.</p>
<blockquote>
<p dir="auto">Deprecated: This feature is now part of javascript adapter.</p>
</blockquote>
<p dir="auto">Der Code ist veraltet und passt nicht mehr zum aktuellen Stand.</p>
<p dir="auto">Vermutlich beißt sich da noch irgendwas. Ich würde vielleicht den javascript-Adapter mal neuinstallieren.</p>
]]></description><link>https://forum.iobroker.net/post/759572</link><guid isPermaLink="true">https://forum.iobroker.net/post/759572</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:37:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a></p>
<p dir="auto">Ich habe jetzt javascript von 5.2.irgendwas von auf 5.2.13 aktualisiert und js2fs wird mir nicht zum aktualisieren angeboten. Ich habe ihn mal gelöscht (hätte ihn aber gerne wieder).</p>
<p dir="auto">Es kommen aber immer noch sehr merkwürdige Fehler und mein Javascript funktioniert mal und mal nicht. Selbst wenn ich in dem Log Adapter auf Pause gehe um mir die Fehlermeldungen anzusehen verschwinden diese nach kurzer Zeit.<br />
Ich werde das morgen weiter analysieren.</p>
]]></description><link>https://forum.iobroker.net/post/759571</link><guid isPermaLink="true">https://forum.iobroker.net/post/759571</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:09:42 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/759551">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">Das ganze hat ca. 30 Sekunden gedauert, ist das normal?</p>
</blockquote>
<p dir="auto">Ja.</p>
<p dir="auto">Der Adapter js2fs ist deprecated, schmeiß den raus.</p>
]]></description><link>https://forum.iobroker.net/post/759555</link><guid isPermaLink="true">https://forum.iobroker.net/post/759555</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:06:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-braun" aria-label="Profile: thomas-braun">@<bdi>thomas-braun</bdi></a></p>
<pre><code>pi@raspberrypi4:~ $ cd /opt/iobroker/
pi@raspberrypi4:/opt/iobroker $ npm ls soef


iobroker.inst@3.0.0 /opt/iobroker
└─┬ iobroker.js2fs@0.1.5
  └── soef@0.4.15

</code></pre>
<p dir="auto">Das ganze hat ca. 30 Sekunden gedauert, ist das normal?</p>
]]></description><link>https://forum.iobroker.net/post/759551</link><guid isPermaLink="true">https://forum.iobroker.net/post/759551</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 22:05:15 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/759540">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">soef</p>
</blockquote>
<p dir="auto">Soweit ich weiß ist der ganze Code von soef obsolet und wurde durch anderes ersetzt.</p>
<pre><code>cd /opt/iobroker 
npm ls soef
</code></pre>
<p dir="auto">mal anschauen.</p>
<blockquote>
<p dir="auto">Ich bin mir relativ sicher, dass es nichts mit der Stromversorgung zu tun hat, davon wäre etwas im Logfile zu sehen.</p>
</blockquote>
<p dir="auto">Aber nicht im iobroker-Log.</p>
]]></description><link>https://forum.iobroker.net/post/759545</link><guid isPermaLink="true">https://forum.iobroker.net/post/759545</guid><dc:creator><![CDATA[Thomas Braun]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 21:59:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/crunchip" aria-label="Profile: crunchip">@<bdi>crunchip</bdi></a></p>
<p dir="auto">Ich bin mir relativ sicher, dass es nichts mit der Stromversorgung zu tun hat, davon wäre etwas im Logfile zu sehen.<br />
Was mich im Moment sehr stutzig macht sind die Logs der Javscript Instanz (gerade läuft der IO-Broker).</p>
<pre><code>host.raspberrypi4	2022-02-09 22:46:29.239	error	instance system.adapter.js2fs.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.raspberrypi4	2022-02-09 22:46:29.238	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
host.raspberrypi4	2022-02-09 22:46:29.238	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
host.raspberrypi4	2022-02-09 22:46:29.238	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
host.raspberrypi4	2022-02-09 22:46:29.238	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
host.raspberrypi4	2022-02-09 22:46:29.238	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
host.raspberrypi4	2022-02-09 22:46:29.237	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
host.raspberrypi4	2022-02-09 22:46:29.237	error	Caught by controller[0]: at Object.&lt;anonymous&gt; (/opt/iobroker/node_modules/iobroker.js2fs/js2fs.js:79:20)
host.raspberrypi4	2022-02-09 22:46:29.237	error	Caught by controller[0]: at Object.exports.Adapter (/opt/iobroker/node_modules/soef/soef.js:1383:23)
host.raspberrypi4	2022-02-09 22:46:29.237	error	Caught by controller[0]: TypeError: fns.adapter is not a function
host.raspberrypi4	2022-02-09 22:46:29.236	error	Caught by controller[0]: ^
host.raspberrypi4	2022-02-09 22:46:29.236	error	Caught by controller[0]: fns.adapter = fns.adapter(options);
host.raspberrypi4	2022-02-09 22:46:29.235	error	Caught by controller[0]: /opt/iobroker/node_modules/soef/soef.js:1383```

Was hat es mit diesem fns.adapter auf sich?</code></pre>
]]></description><link>https://forum.iobroker.net/post/759540</link><guid isPermaLink="true">https://forum.iobroker.net/post/759540</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Wed, 09 Feb 2022 21:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 15:14: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> nicht zwangsläufig wenn du schreibst</p>
<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/759092">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">und manchmal</p>
</blockquote>
]]></description><link>https://forum.iobroker.net/post/759247</link><guid isPermaLink="true">https://forum.iobroker.net/post/759247</guid><dc:creator><![CDATA[crunchip]]></dc:creator><pubDate>Wed, 09 Feb 2022 15:14:16 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 13:56:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/crunchip" aria-label="Profile: crunchip">@<bdi>crunchip</bdi></a></p>
<p dir="auto">Sollte ich dann nicht etwas im Logfile nach dem Booten sehen?</p>
]]></description><link>https://forum.iobroker.net/post/759183</link><guid isPermaLink="true">https://forum.iobroker.net/post/759183</guid><dc:creator><![CDATA[WolfgangFB]]></dc:creator><pubDate>Wed, 09 Feb 2022 13:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to No connection to database possible... Endlosschleife on Wed, 09 Feb 2022 12:37:12 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/759092">No connection to database possible... Endlosschleife</a>:</p>
<blockquote>
<p dir="auto">Wo kann ich da ansetzen</p>
</blockquote>
<p dir="auto">Stromversorgung, Sd-Karte</p>
]]></description><link>https://forum.iobroker.net/post/759117</link><guid isPermaLink="true">https://forum.iobroker.net/post/759117</guid><dc:creator><![CDATA[crunchip]]></dc:creator><pubDate>Wed, 09 Feb 2022 12:37:12 GMT</pubDate></item></channel></rss>