NEWS
Lets Encrypt und le-acme-core Fehler
-
Hallo zusammen,
ich weiß, dass das Thema nicht neu ist, aber ich habe inzwischen einfach alles durch und finde keine Lösung. VIS soll mittels Lets Encrypt über https erreichbar sein, wofür ich einen Web Adapter installiert habe und auch brav alles nach Anleitung eingestellt habe, sprich Port auf 443, Authentifikation an, automatische Erneuerung des Zertifikats mit Port 80, etc. Auch der Netgear Router hat Port 443 freigegeben und DynDNS ist eingestellt. Iobroker läuft dabei auf einem Raspberry Zero und macht eigentlich recht wenig Probleme. Nur https will nicht funktionieren. Nach nodejs 4, 10, 6 und nun 8 scheine ich eine Version gefunden zu haben, die laut Log zumindest theoretisch funktionieren sollte.
host.raspberrypi 2018-08-07 13:42:27.281 error instance system.adapter.web.1 terminated with code 0 (OK) host.raspberrypi 2018-08-07 13:42:27.280 error Caught by controller[26]: Just run that real quick, restart, and everything will work great. host.raspberrypi 2018-08-07 13:42:27.279 error Caught by controller[24]: npm install --save le-acme-core host.raspberrypi 2018-08-07 13:42:27.279 error Caught by controller[22]: Hey, this isn't a big deal, but you need to manually add v1 support: host.raspberrypi 2018-08-07 13:42:27.278 error Caught by controller[20]: === Error (easy-to-fix) === host.raspberrypi 2018-08-07 13:42:27.278 error Caught by controller[17]: Please update to Let's Encrypt v2 (ACME draft 12) host.raspberrypi 2018-08-07 13:42:27.277 error Caught by controller[16]: Let's Encrypt v1 is deprecated. host.raspberrypi 2018-08-07 13:42:27.276 error Caught by controller[14]: === WARNING === host.raspberrypi 2018-08-07 13:42:27.276 error Caught by controller[12]: Detected Let's Encrypt v01 URL (deprecated). Changing version to v01. host.raspberrypi 2018-08-07 13:42:27.275 error Caught by controller[9]: This will be required in versions v2.3+ host.raspberrypi 2018-08-07 13:42:27.275 error Caught by controller[9]: (also 'npm install --save le-acme-core' as this legacy dependency will soon be removed) host.raspberrypi 2018-08-07 13:42:27.274 error Caught by controller[9]: 'v01' for Let's Encrypt v1 (deprecated) host.raspberrypi 2018-08-07 13:42:27.273 error Caught by controller[9]: or host.raspberrypi 2018-08-07 13:42:27.273 error Caught by controller[9]: ('v02' is an alias of 'draft-12' host.raspberrypi 2018-08-07 13:42:27.272 error Caught by controller[9]: 'draft-12' for Let's Encrypt v2 and ACME draft 12 host.raspberrypi 2018-08-07 13:42:27.272 error Caught by controller[7]: Please specify 'version' option: host.raspberrypi 2018-08-07 13:42:27.271 error Caught by controller[5]: ========================================================== host.raspberrypi 2018-08-07 13:42:27.270 error Caught by controller[4]: == greenlock.js (v2.2.0+) == host.raspberrypi 2018-08-07 13:42:27.263 error Caught by controller[3]: ==========================================================Das sind mit Abstand die wenigsten Fehlermeldungen bisher, von daher sehe ich das mal als Ansatzpunkt :mrgreen:
Noch dazu wird auch mit le-acme-core die mögliche Lösung angegeben ("easy-to-fix"). Nur wenn ich genau diesen Befehl eingebe, bekomme ich folgendes:
sudo npm install --save le-acme-core npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json' /home/pi +-- le-acme-core@2.1.3 +-- request@2.87.0 +-- aws4@1.8.0 npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field.Ich hab mich schon durch alle möglichen Foren gekämpft und gegooglet, finde aber nichts passendes und/oder bin einfach zu doof :?
Für jede Hilfestellung wäre ich sehr dankbar. Falls noch Angaben fehlen, versuche ich diese natürlich schnellsmöglich nachzuliefern.
Edit: Ganz vergessen. Zur Zeit läuft Node 8.11.3 und npm 4.6.1.
-
hallo Shedao
hatte den Fehler auch
du musst den js controller aktualisieren
oder die eine datei ändern siehe issue auf github
https://github.com/ioBroker/ioBroker.js … issues/199
Gruß Stephan
Gesendet von meinem MediaPad T1 8.0 Pro mit Tapatalk
-
Hat leider nicht geholfen. habe den js-Controller auf 1.4.2 geupdatet und neu gestartet. Gleicher Fehler wie im Eingangspost. Dann noch wie auf github beschrieben, auf ACME v02 umgestellt (hatte ich schon probiert) und das Resultat ist:
host.raspberrypi 2018-08-08 10:13:13.227 error instance system.adapter.web.1 terminated with code 0 (OK) Caught 2018-08-08 10:13:13.226 error by controller[9]: port: 80 } Caught 2018-08-08 10:13:13.225 error by controller[9]: address: '::', Caught 2018-08-08 10:13:13.224 error by controller[9]: syscall: 'listen', Caught 2018-08-08 10:13:13.222 error by controller[9]: errno: 'EADDRINUSE', Caught 2018-08-08 10:13:13.221 error by controller[9]: code: 'EADDRINUSE', Caught 2018-08-08 10:13:13.220 error by controller[9]: at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20) Caught 2018-08-08 10:13:13.219 error by controller[9]: at Decoder. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-bind/index.js:21:15) Caught 2018-08-08 10:13:13.218 error by controller[9]: at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8) Caught 2018-08-08 10:13:13.216 error by controller[9]: at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20) Caught 2018-08-08 10:13:13.215 error by controller[9]: at Manager. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-bind/index.js:21:15) Caught 2018-08-08 10:13:13.214 error by controller[9]: at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:244:12) Caught 2018-08-08 10:13:13.213 error by controller[9]: at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:319:9) Caught 2018-08-08 10:13:13.212 error by controller[9]: at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:705:21) Caught 2018-08-08 10:13:13.211 error by controller[9]: at adapter.getCertificates (/opt/iobroker/node_modules/iobroker.web/main.js:239:29) Caught 2018-08-08 10:13:13.210 error by controller[9]: at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:847:28) Caught 2018-08-08 10:13:13.208 error by controller[9]: at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:74:21) Caught 2018-08-08 10:13:13.206 error by controller[9]: at Server.listen (net.js:1480:7) Caught 2018-08-08 10:13:13.205 error by controller[9]: at listenInCluster (net.js:1396:12) Caught 2018-08-08 10:13:13.203 error by controller[9]: at Server.setupListenHandle [as _listen2] (net.js:1355:14) Caught 2018-08-08 10:13:13.202 error by controller[9]: at _exceptionWithHostPort (util.js:1014:20) Caught 2018-08-08 10:13:13.201 error by controller[9]: at Object._errnoException (util.js:992:11) Caught 2018-08-08 10:13:13.200 error by controller[9]: { Error: listen EADDRINUSE :::80 Caught 2018-08-08 10:13:13.199 error by controller[8]: Detected Let's Encrypt v02 URL. Changing version to draft-12. Caught 2018-08-08 10:13:13.197 error by controller[5]: This will be required in versions v2.3+ Caught 2018-08-08 10:13:13.196 error by controller[4]: (also 'npm install --save le-acme-core' as this legacy dependency will soon be removed) Caught 2018-08-08 10:13:13.195 error by controller[4]: 'v01' for Let's Encrypt v1 (deprecated) Caught 2018-08-08 10:13:13.194 error by controller[4]: or Caught 2018-08-08 10:13:13.193 error by controller[4]: ('v02' is an alias of 'draft-12' Caught 2018-08-08 10:13:13.191 error by controller[4]: 'draft-12' for Let's Encrypt v2 and ACME draft 12 Caught 2018-08-08 10:13:13.190 error by controller[4]: Please specify 'version' option: Caught 2018-08-08 10:13:13.189 error by controller[4]: ========================================================== Caught 2018-08-08 10:13:13.188 error by controller[4]: == greenlock.js (v2.2.0+) == Caught 2018-08-08 10:13:13.186 error by controller[3]: ========================================================== web.1 2018-08-08 10:13:13.097 info https server listening on port 443 web.1 2018-08-08 10:13:13.064 info terminated https server on port 443 web.1 2018-08-08 10:13:13.059 info terminating https server on port 443 web.1 2018-08-08 10:13:13.052 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20) web.1 2018-08-08 10:13:13.052 error at Decoder. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-bind/index.js:21:15) web.1 2018-08-08 10:13:13.052 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8) web.1 2018-08-08 10:13:13.052 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20) web.1 2018-08-08 10:13:13.052 error at Manager. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-bind/index.js:21:15) web.1 2018-08-08 10:13:13.052 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:244:12) web.1 2018-08-08 10:13:13.052 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:319:9) web.1 2018-08-08 10:13:13.052 error at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:705:21) web.1 2018-08-08 10:13:13.052 error at adapter.getCertificates (/opt/iobroker/node_modules/iobroker.web/main.js:239:29) web.1 2018-08-08 10:13:13.052 error at initWebServer (/opt/iobroker/node_modules/iobroker.web/main.js:847:28) web.1 2018-08-08 10:13:13.052 error at Object.createServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/letsencrypt.js:74:21) web.1 2018-08-08 10:13:13.052 error at Server.listen (net.js:1480:7) web.1 2018-08-08 10:13:13.052 error at listenInCluster (net.js:1396:12) web.1 2018-08-08 10:13:13.052 error at Server.setupListenHandle [as _listen2] (net.js:1355:14) web.1 2018-08-08 10:13:13.052 error at _exceptionWithHostPort (util.js:1014:20) web.1 2018-08-08 10:13:13.052 error at Object._errnoException (util.js:992:11) web.1 2018-08-08 10:13:13.052 error Error: listen EADDRINUSE :::80 web.1 2018-08-08 10:13:13.051 error uncaught exception: listen EADDRINUSE :::80 web.1 2018-08-08 10:13:12.988 info Secure socket.io server listening on port 443 web.1 2018-08-08 10:13:10.734 info created middleware web.1 2018-08-08 10:13:04.153 info starting. Version 2.4.1 in /opt/iobroker/node_modules/iobroker.web, node: v8.11.3 host.raspberrypi 2018-08-08 10:12:53.424 info instance system.adapter.web.1 started with pid 7938</anonymous></anonymous></anonymous></anonymous></anonymous></anonymous>Sieht nicht unbedingt besser aus :mrgreen:
-
Hallo
ich bin jetzt nochmal das Problem angegangen und habe immer noch dieselben Probleme.
Ich kann googeln so viel ich will und finde nichts. Kennt sich hier niemand damit aus?
Was gibt es für Alternativen außer VPN? Aber bei anderen scheint es ja zu gehen
Gruß
Werner
-
Liebe Kollegen, ich hatte das gleiche Problem und ich habe es gelöst!!
Es ist einfacher als Ihr denkt: Ihr müsst Euch lediglich entscheiden, welche Instanz die automatischen Updates durchführen soll. Ihr habt wahrscheinlich (so wie ich) bei beiden Instanzen (Web.0 und admin.0) das Häckchen gesetzt. Und je nachdem welche Intsanz die letzte war, stürzt dann auch eben ab. Nehmt bei einer Instanz das Häckchen weg und es wird funktionieren! Viel Spaß dabei!
Es ist auch ganz logisch, denn wenn eine Instanz den Port 80 für das Update benutzt, ist er daher natürlich besetzt. Und das ist auch im Logfile zu erkennen! :roll:
Update: Meine Lösung gilt nur für das Problem von Shedao! Das andere habe ich selbst noch nicht lösen können! Aber ich bin drann! :oops:
-
Es ist einfacher als Ihr denkt: Ihr müsst Euch lediglich entscheiden, welche Instanz die automatischen Updates durchführen soll. Ihr habt wahrscheinlich (so wie ich) bei beiden Instanzen (Web.0 und admin.0) das Häckchen gesetzt. Und je nachdem welche Intsanz die letzte war, stürzt dann auch eben ab. Nehmt bei einer Instanz das Häckchen weg und es wird funktionieren! Viel Spaß dabei!
LG `
Muss ich morgen gleich mal ausprobieren, aber du hast natürlich recht. Das Blöde ist, bei mir ist Port 80 schon anderweitig belegt und das kann ich auch nicht ganz so einfach bzw. gar nicht in der anderen Anwendung ändern. Mal sehen, wer den Zuschlag bekommt, falls es funktioniert.
Gesendet von iPad mit Tapatalk