Skip to content
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

Instanz wird bei Installation nicht angelegt und Admin Tab wird nicht angezeigt #187

Closed
Protheus23 opened this issue Nov 14, 2023 · 28 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested

Comments

@Protheus23
Copy link

Hi,

ich habe jetzt den Adapter in Version 4.1 Installiert und vorher in 5.0.1 Beta.

Bei beiden Installationen wird aber keine Instanz angelegt. (Bin ich zu doof zum installieren?)
Im Admin wird aber auch kein esphome Tab angelegt.

Infos zum System:
iobroker im Docker
Plattform: docker (official image - v9.0.1)
NPM: 9.8.1
Node.js: v18.18.2

Evtl. kann ja wer den entscheidenden Tip geben :)

@Protheus23 Protheus23 added the bug Something isn't working label Nov 14, 2023
@DutchmanNL
Copy link
Contributor

Bei beiden Installationen wird aber keine Instanz angelegt. (Bin ich zu doof zum installieren?)

garantiert nicht, eventuell machst du nur die falschen schritte :)
Wie installierst du ihn, über den admin oder aus git ?

Bei git Installationen z.b muss man immer selber die Instanz erstellen beim adapter, macht man die installation aus dem admin wird automatisch eine erstellt.
( ich rate auch von Installationen aus git ab, da hier manchmal noch versionen/code liegen die noch nicht reif zur installation sind

Es koennte auch sein das die Installation fehl schlägt, das sollte aber dan im log sichtbar sein

@DutchmanNL DutchmanNL added documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested and removed bug Something isn't working labels Nov 14, 2023
@Protheus23
Copy link
Author

garantiert nicht, eventuell machst du nur die falschen schritte :) Wie installierst du ihn, über den admin oder aus git ?

Im Admin taucht der als Adapter nichtmal auf :)
image

Daher per Github-URL...

Bei git Installationen z.b muss man immer selber die Instanz erstellen beim adapter, macht man die installation aus dem admin wird automatisch eine erstellt. ( ich rate auch von Installationen aus git ab, da hier manchmal noch versionen/code liegen die noch nicht reif zur installation sind

Wenn ich das Paket per Github installiert habe (Instanz taucht halt nicht auf) Tuacht das Paket auch als Adapter-Möglichkeit auf aber eine Instanz wird nicht erstellt.
Wie macht man das manuell?

Es koennte auch sein das die Installation fehl schlägt, das sollte aber dan im log sichtbar sein

Ein Fehler war nicht aufgetreten

@patricknitsch
Copy link

Der Adapter ist nur in der beta repo zu sehen, da es noch keine stable Version gibt. Schalte auf beta um, dann findest du die aktuelle Version

@Protheus23
Copy link
Author

Super!
Die Installation klappte nun schonmal 😄

Allerdings funktioniert dies nicht, bzw. kann nicht geöffnet werden.
Ich bekomme auch den folgenden Fehler:
image

@DutchmanNL
Copy link
Contributor

DutchmanNL commented Nov 14, 2023

Super!

Die Installation klappte nun schonmal 😄

Allerdings funktioniert dies nicht, bzw. kann nicht geöffnet werden.

Ich bekomme auch den folgenden Fehler:

image

Hast du die 0.5.1 installiert ?
Der Fehler sagt im Grunde das er einen Ordner nicht finden kan den der Adapter automatisch erstellen sollte

Was für ein System ist es, linux/docker/windows ?

Esit: entschuldige bitte, im ersten Post sagst du bereits Docker

@SimonFischer04
Copy link
Contributor

Daher per Github-URL...

Screenshot_20231114-232102_1_1.png

Sorry, aber manchmal würds helfen zumindest das zu lesen wo man url eingibt ... :)

@SimonFischer04
Copy link
Contributor

Super!
Die Installation klappte nun schonmal 😄

Allerdings funktioniert dies nicht, bzw. kann nicht geöffnet werden.
Ich bekomme auch den folgenden Fehler:
image

Gibts im normalen iobroker log nen genaueren fehler welche file / directory fehlt?

@DutchmanNL
Copy link
Contributor

@Protheus23

Siehst du beim starten des Adapter die Meldung

"ESPHome directory created"

Oder

"`ESPHome DDashboard is unable to access directory to store YAML configuration data, please run ioBroker fix"?

Wen die letztere, mal ioBroker Fix ausgeführt um eventuelle Berechnungs Fehler zu beheben

@SimonFischer04

Eigentlich solltet dieser Teil derartige Fehler abfangen

https://github.com/DrozmotiX/ioBroker.esphome/blob/main/main.js#L122C8-L122C8

@SimonFischer04
Copy link
Contributor

Ja drum hab ich nach log gefragt was fehlt, könnt auch sein das die python/esphome binary directory fehlt

@SimonFischer04
Copy link
Contributor

Glaub setzt mich dann echt bald mal an issue template mit yaml und log-eintrag...
:)

@Protheus23
Copy link
Author

@Protheus23

Siehst du beim starten des Adapter die Meldung

"ESPHome directory created"

Oder

"`ESPHome DDashboard is unable to access directory to store YAML configuration data, please run ioBroker fix"?

Wen die letztere, mal ioBroker Fix ausgeführt um eventuelle Berechnungs Fehler zu beheben

@SimonFischer04

Eigentlich solltet dieser Teil derartige Fehler abfangen

https://github.com/DrozmotiX/ioBroker.esphome/blob/main/main.js#L122C8-L122C8

@DutchmanNL

nein, taucht da nicht auf

image

Bei Docker ist der iobroker-fix ja scheinbar Bestandteil des Startscripts und neu gestartet hatte ich ja auch.

@SimonFischer04
Ja ist die 5.0.1 Beta.

@DutchmanNL
Copy link
Contributor

Bei Docker ist der iobroker-fix ja scheinbar Bestandteil des Startscripts und neu gestartet hatte ich ja auch.

korrekt, auf was fuer einem system läuft deine docker installation?

@Protheus23
Copy link
Author

Unraid Server (basiert wohl auf Slackware)

@DutchmanNL
Copy link
Contributor

Unraid Server (basiert wohl auf Slackware)

ich tappe momentan ehrlich gesagt im dunklen da der Fehler auch nicht aussage kräftig ist :/
der port (6052) ist nicht zuefallig belegt ?

@Protheus23
Copy link
Author

Protheus23 commented Nov 15, 2023

Unraid Server (basiert wohl auf Slackware)

ich tappe momentan ehrlich gesagt im dunklen da der Fehler auch nicht aussage kräftig ist :/ der port (6052) ist nicht zuefallig belegt ?

Ich würde sagen, nein (Aber ich stecke jetzt auch nicht wirklich tief in Linux drin)

image

(ESPHome Adapter war hier gestoppt)

@Protheus23
Copy link
Author

Protheus23 commented Nov 15, 2023

Ich habe jetzt den Adapter nochmal deinstalliert, die Zugriffsberechtigungen auf den Storage geprüft und den Adapter neu installiert:

$ iobroker add esphome auto --host automat01.iot.schauthe.local --debug NPM version: 9.8.1Installing iobroker.esphome@0.5.0-beta.1... (System call) 156 packages are looking for funding run npm fund for details host.automat01.iot.schauthe.local install adapter esphome upload [21] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/admin.d.ts admin.d.ts video/mp2t upload [20] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/esphome.png esphome.png image/png upload [19] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/de/translations.json i18n/de/translations.json application/json upload [18] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/dum/translations.json i18n/dum/translations.json application/json upload [17] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/en/translations.json i18n/en/translations.json application/json upload [16] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/es/translations.json i18n/es/translations.json application/json upload [15] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/fr/translations.json i18n/fr/translations.json application/json upload [14] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/it/translations.json i18n/it/translations.json application/json upload [13] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/nl/translations.json i18n/nl/translations.json application/json upload [12] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/pl/translations.json i18n/pl/translations.json application/json upload [11] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/pt/translations.json i18n/pt/translations.json application/json upload [10] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/ru/translations.json i18n/ru/translations.json application/json upload [9] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json upload [8] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/img/connectionError.png img/connectionError.png image/png upload [7] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/img/connectionOK.png img/connectionOK.png image/png upload [6] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/img/dashboard.png img/dashboard.png image/png upload [5] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/img/deviceTabEmpty.png img/deviceTabEmpty.png image/png upload [4] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/img/deviceTree.png img/deviceTree.png image/png upload [3] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/index_m.html index_m.html text/html upload [1] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/style.css style.css text/css upload [0] esphome.admin /opt/iobroker/node_modules/iobroker.esphome/admin/words.js words.js application/javascript host.automat01.iot.schauthe.local object system.adapter.esphome created/updated host.automat01.iot.schauthe.local create instance esphome host.automat01.iot.schauthe.local object system.adapter.esphome.0.alive created host.automat01.iot.schauthe.local object system.adapter.esphome.0.connected created host.automat01.iot.schauthe.local object system.adapter.esphome.0.compactMode created host.automat01.iot.schauthe.local object system.adapter.esphome.0.cpu created host.automat01.iot.schauthe.local object system.adapter.esphome.0.cputime created host.automat01.iot.schauthe.local object system.adapter.esphome.0.memHeapUsed created host.automat01.iot.schauthe.local object system.adapter.esphome.0.memHeapTotal created host.automat01.iot.schauthe.local object system.adapter.esphome.0.memRss created host.automat01.iot.schauthe.local object system.adapter.esphome.0.uptime created host.automat01.iot.schauthe.local object system.adapter.esphome.0.inputCount created host.automat01.iot.schauthe.local object system.adapter.esphome.0.outputCount created host.automat01.iot.schauthe.local object system.adapter.esphome.0.eventLoopLag created host.automat01.iot.schauthe.local object system.adapter.esphome.0.sigKill created host.automat01.iot.schauthe.local object system.adapter.esphome.0.logLevel created host.automat01.iot.schauthe.local object esphome.0.info created host.automat01.iot.schauthe.local object esphome.0.info.connection created host.automat01.iot.schauthe.local Set default value of esphome.0.info.connection: false host.automat01.iot.schauthe.local object system.adapter.esphome.0 created Process exited with code 0

Da sind keine Fehler aufgetreten.
Aber nach dem Speichern der Instanzeinstellungen, kommt wieder der Nonexistingfileerror.

Ich habe gerade mal im Filesystem geschaut...Am "Sonderzeichen" im Pfad kanns aber nicht liegen oder?

image

@DutchmanNL
Copy link
Contributor

Ich würde sagen, nein (Aber ich stecke jetzt auch nicht wirklich tief in Linux drin)

passt ich sehe keinen belegten port

Aber nach dem Speichern der Instanzeinstellungen, kommt wieder der Nonexistingfileerror.

Habe mal einen neue docker aufgesetzt um das zu reproduzieren, ohne erfolg das dashboard und der process funktionieren :/

Screenshot 2023-11-15 at 12 05 33

@DutchmanNL
Copy link
Contributor

@Protheus23

könntest du mal bitte schauen über die console op dieser Ordner da ist ?

/opt/iobroker/iobroker-data/esphome.0/

am einfachste mit

ls -l /opt/iobroker/iobroker-data/

@Protheus23
Copy link
Author

@Protheus23

könntest du mal bitte schauen über die console op dieser Ordner da ist ?

/opt/iobroker/iobroker-data/esphome.0/

am einfachste mit

ls -l /opt/iobroker/iobroker-data/

Ja, ist da

image

Allerdings leer. Muss das so?

@SimonFischer04
Copy link
Contributor

@Protheus23
Siehst du beim starten des Adapter die Meldung
"ESPHome directory created"
Oder
"`ESPHome DDashboard is unable to access directory to store YAML configuration data, please run ioBroker fix"?
Wen die letztere, mal ioBroker Fix ausgeführt um eventuelle Berechnungs Fehler zu beheben
@SimonFischer04
Eigentlich solltet dieser Teil derartige Fehler abfangen
https://github.com/DrozmotiX/ioBroker.esphome/blob/main/main.js#L122C8-L122C8

@DutchmanNL

nein, taucht da nicht auf

image Bei Docker ist der iobroker-fix ja scheinbar Bestandteil des Startscripts und neu gestartet hatte ich ja auch.

@SimonFischer04 Ja ist die 5.0.1 Beta.

aus dem log werd ich leider auch nd wirklich schlau. schau mal pls auch mal obs diese directory gibt:
ls -la ~/.cache/autopy/venv/esphome/

@SimonFischer04
Copy link
Contributor

Ich habe gerade mal im Filesystem geschaut...Am "Sonderzeichen" im Pfad kanns aber nicht liegen oder?

nein in js/npm sind @ zeichen ein feature

@SimonFischer04
Copy link
Contributor

Aber nach dem Speichern der Instanzeinstellungen, kommt wieder der Nonexistingfileerror.

aber erst sobald du das integrierte dashboard aktivierst? vorher gehts noch ohne fehler?

@SimonFischer04
Copy link
Contributor

Allerdings leer. Muss das so?

vielleicht. bei mir sieht er so aus:
image

die yamls hast in ner leeren installation naürlichnoch nicht, aber weiß nd ob er den .esphome folder schon vorher anlegen soll oda auch erst wenn man das erste mal was compiliert

@Protheus23
Copy link
Author

Aber nach dem Speichern der Instanzeinstellungen, kommt wieder der Nonexistingfileerror.

aber erst sobald du das integrierte dashboard aktivierst? vorher gehts noch ohne fehler?

Ja, der Fehler taucht nicht auf.
Aber die Seite ESPhome Seite ist auch nicht erreichbar.

Da ich aber schon länger meinen iobroker auf ein anderes System (Docker auf Debian 12) umziehen wollte mache ich dies halt jetzt.
Ich gebe dann Rückmeldung obs damit geht.

@Protheus23
Copy link
Author

Hm...äußerst spannend 😄

image

Wenn ich die URL nun direkt eingebe geht es. (http)
Über Admin allerdings nicht (https)

Würde mir so aber auch schon reichen.
Danke an alle 👍

@DutchmanNL
Copy link
Contributor

Über Admin allerdings nicht (https)

Würde mir so aber auch schon reichen.
Danke an alle 👍

Das ist leider bereits bekannt und wird auch dran gearbeitet, habe dafür aber eine externe Abhängigkeit siehe #180 und #159

Ich mach hier Dan mal zu 👌

@SimonFischer04
Copy link
Contributor

So oft wie das jetzt schon aufkam, sollt ma villeicht dazu auch noch was ind readme schreiben. @DutchmanNL hab grad auch gesehen du hast da schon einige changes gemacht mit dem neuen stuff wie encryption,...
👍

@DutchmanNL
Copy link
Contributor

So oft wie das jetzt schon aufkam, sollt ma villeicht dazu auch noch was ind readme schreiben. @DutchmanNL hab grad auch gesehen du hast da schon einige changes gemacht mit dem neuen stuff wie encryption,... 👍

fair point : a04a200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants