-
Notifications
You must be signed in to change notification settings - Fork 174
Update adapter.md #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Update adapter.md #626
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,15 +1,126 @@ | ||||||
| --- | ||||||
| title: "Adapterfehler" | ||||||
| lastChanged: "14.09.2018" | ||||||
| template: true | ||||||
| lastChanged: "05.10.2025" | ||||||
| --- | ||||||
|
|
||||||
| # Lösen von Fehlern bei Adaptern | ||||||
| ## Kapitel „Adapterfehler“ – Installations-, Start- und Performanceprobleme | ||||||
|
|
||||||
| ?> ***Dies ist ein Platzhalter***. | ||||||
| <br><br> | ||||||
| Hilf mit bei ioBroker und erweitere diesen Artikel. | ||||||
| Bitte beachte den [ioBroker Style Guide](https://www.iobroker.net/#de/documentation/community/styleguidedoc.md), | ||||||
| damit die Änderungen einfacher übernommen werden können. | ||||||
| Dieser Abschnitt erläutert die häufigsten Fehler bei Adaptern und liefert gezielte Lösungsschritte. | ||||||
|
|
||||||
| @@@ Link auf die Adapterreferenz @@@ | ||||||
| ### 1. Installationsprobleme | ||||||
|
|
||||||
| **Symptome:** | ||||||
| - `npm ERR! code ENOTFOUND registry.npmjs.org` | ||||||
| - `npm ERR! syscall rename` | ||||||
| - Adapter lässt sich gar nicht installieren oder bricht mitten im Download ab. | ||||||
|
|
||||||
| **Ursachen:** | ||||||
| - Netzwerk- oder DNS-Probleme | ||||||
| - Veralteter NPM-Cache | ||||||
| - Inkonsistente Node.js-/NPM-Versionen | ||||||
|
|
||||||
| **Lösungen:** | ||||||
| 1. **NPM-Cache bereinigen** | ||||||
| ```bash | ||||||
| npm cache clean --force | ||||||
| ``` | ||||||
| 2. **Registry prüfen und zurücksetzen** | ||||||
| ```bash | ||||||
| npm config get registry | ||||||
| npm config set registry https://registry.npmjs.org/ | ||||||
| ``` | ||||||
| 3. **Proxy-Einstellungen (wenn nötig)** | ||||||
| ```bash | ||||||
| npm config set proxy http://proxy.company.com:8080 | ||||||
| npm config set https-proxy https://proxy.company.com:8080 | ||||||
| ``` | ||||||
| 4. **Adapterinstallation erzwingen** | ||||||
| ```bash | ||||||
| iobroker install <adaptername> --force | ||||||
| ``` | ||||||
| 5. **Node-Modules-Ordner neu anlegen** | ||||||
| ```bash | ||||||
| iobroker stop | ||||||
| rm -rf /opt/iobroker/node_modules/iobroker.<adaptername> | ||||||
| iobroker start | ||||||
| iobroker install <adaptername> | ||||||
| ``` | ||||||
|
|
||||||
| ### 2. Start- und Laufzeitprobleme | ||||||
|
|
||||||
| **Symptome:** | ||||||
| - Adapter bleibt im Admin-Interface rot | ||||||
| - Keine „Connected“-Meldung in den Logs | ||||||
| - Crash mit Ausgaben wie `Error: Cannot find module <...>` oder `SyntaxError: Unexpected token`. | ||||||
|
||||||
|
|
||||||
| **Ursachen:** | ||||||
| - Fehlende Abhängigkeiten | ||||||
| - Konflikte durch alte Konfigurationsreste | ||||||
| - Inkompatible Node.js-Version | ||||||
|
|
||||||
| **Lösungen:** | ||||||
| 1. **Logs beobachten** | ||||||
| ```bash | ||||||
| iobroker logs --watch | ||||||
| iobroker logs <adaptername> | ||||||
| ``` | ||||||
| 2. **Adapter reparieren** | ||||||
|
||||||
| 2. **Adapter reparieren** | |
| 2. **ioBroker Installation reparieren (immer möglich)** |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am besten hier keine nummer weril dnn ists immer das empfohlene ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sollten wir das wirklich tun vorschlagen? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wann ist denn --force sinnvoll / notwendig?
Welche Dinge werden dann erzwungen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcm wenn Cache-Probleme nicht anderweitig behoben werden können oder Speicherplatz sparen möchtest. ohne --force bewirkt der Befehl nichts. Andernfalls wäre noch ein npm cache verify sinnvoll, um den Cache auf Integrität zu überprüfen und Datenleichen zu entfernen. Bin allerdings noch drüber die Kommentare zu bearbeiten und ne angepasste Version bereitzustellen