Wenn dies dein erster Besuch hier ist, lies bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Du musst dich vermutlich registrieren, bevor du Beiträge verfassen kannst. Klicke oben auf 'Registrieren', um den Registrierungsprozess zu starten. Du kannst auch jetzt schon Beiträge lesen. Suche dir einfach das Forum aus, das dich am meisten interessiert.
Ich komme gar nicht auf das SH admin interface mit port 8383
sagt dir dieser log etwas
Code:
smartvisu-1 | cat: can't open '/etc/TZ': No such file or directory
smartvisu-1 | 2024-11-03 20:15:06,753 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
ich gehe von aus das TZ die timezone gemeint ist - sollte nicht all zu schlimm sein aber das letzte kann ich nicht einschätzen wie kritisch dies für smartVISU ist?
du musst dich ein bisschen mehr einlesen, wie docker funktioniert, z.B.:
Laut Doku verstehe ich, dass der Container port 80 auf den host port 8084 mapped. So wird die Anfrage auf port 8084 vom host an den Port 80 im Container weitergeleitet, der die Web-Inhalte ausliefert.
In den Logs sehe jetzt auch diese Einträge über smarthomeNG
sind diese deprecated logs bekannt?
Code:
shng-1 | SHNG-WRAPPER: Start SmarthomeNG with "--config /mnt/conf --foreground" as user "uid=1000(smarthome) gid=1000(smarthome) groups=1000(smarthome)".
shng-1 | -------------------- Init SmartHomeNG v1.9.3-master (manual) --------------------
shng-1 | /usr/local/smarthome/lib/smarthome.py:888: CryptographyDeprecationWarning: Blowfish has been deprecated
shng-1 | obj = getattr(module, sym)
shng-1 | /usr/local/smarthome/lib/smarthome.py:888: CryptographyDeprecationWarning: CAST5 has been deprecated
shng-1 | obj = getattr(module, sym)
shng-1 | /usr/local/smarthome/lib/smarthome.py:888: CryptographyDeprecationWarning: IDEA has been deprecated
shng-1 | obj = getattr(module, sym)
shng-1 | /usr/local/smarthome/lib/smarthome.py:888: CryptographyDeprecationWarning: SEED has been deprecated
shng-1 | obj = getattr(module, sym)
Bin mir aber auch nicht wirklich sicher welches smarthomeNG image ich jetzt nehmen muss jentz1986/smarthomeng oder henfri/smarthome-ng. Es scheint mir als wäre das letztere noch veraltet? Laut inspect sehe ich smarthomeNG 1.8.2
ich hatte nicht viel Zeit vor der Arbeit es zu testen aber ich konnte die SmartVISU nicht auf port 8084 aufmachen (ich erhalte ein error 403 Forbidden). Das SmathomeNG backend konnte ich gar nicht erreichen (port 8383)
Somit denk ich das noch etwas hackt - konnte es aber wie gesagt noch nicht richtig anschauen
habe die Veränderungen im docker-compose.yaml so eingetragen und es scheint das image erfolgreich heruntergeladen und gestartet zu haben.
Code:
sudo docker compose up
WARN[0000] /home/brunosa3/projects/smarthomeng/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 31/31
✔ smartvisu Pulled 18.8s
✔ df20fa9351a1 Pull complete 0.7s
✔ b358d6dbbdff Pull complete 0.9s
✔ 0232d962484c Pull complete 0.9s
✔ 0c1d3ac04d2a Pull complete 0.9s
✔ 69251dafcb2d Pull complete 1.4s
✔ f1f538119c59 Pull complete 1.4s
✔ cfbff98e6534 Pull complete 3.4s
✔ c2aadec4cc8c Pull complete 3.4s
✔ b2ed7d8627c3 Pull complete 3.4s
✔ a5f68329b27f Pull complete 3.4s
✔ 02b0461f6114 Pull complete 3.4s
✔ a0d82a1ccc3b Pull complete 4.7s
✔ 7a08ce04d241 Pull complete 16.6s
✔ c024ec2fd22a Pull complete 16.6s
✔ 4cb8dafe7304 Pull complete 16.7s
✔ 63b63edb2a84 Pull complete 16.7s
✔ 4ef6861ee37f Pull complete 16.7s
✔ af092fa26753 Pull complete 16.7s
✔ 7cea087a0369 Pull complete 16.7s
✔ 90de8f09fd49 Pull complete 16.8s
✔ 4c452adae2f3 Pull complete 16.8s
✔ 51009112a29e Pull complete 16.8s
✔ 216826c7f969 Pull complete 16.8s
✔ 740de702c57f Pull complete 16.9s
✔ e3906871f4fd Pull complete 16.9s
✔ c47daddd1477 Pull complete 16.9s
✔ b00f41731d42 Pull complete 16.9s
✔ ab1cecf0b731 Pull complete 17.0s
✔ 88e1c67a9396 Pull complete 17.0s
✔ d2cea2216655 Pull complete 17.0s
[+] Running 4/4
✔ Network smarthomeng_shng-net Created 0.1s
✔ Network smarthomeng_default Created 0.2s
✔ Container smarthomeng-smartvisu-1 Created 0.3s
✔ Container smarthomeng-shng-1 Created 0.3s
Attaching to shng-1, smartvisu-1
smartvisu-1 | cat: can't open '/etc/TZ': No such file or directory
smartvisu-1 | 2024-10-31 06:27:44,613 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
smartvisu-1 | 2024-10-31 06:27:44,613 INFO Set uid to user 0 succeeded
smartvisu-1 | 2024-10-31 06:27:44,616 INFO RPC interface 'supervisor' initialized
smartvisu-1 | 2024-10-31 06:27:44,616 CRIT Server 'unix_http_server' running without any HTTP authentication checking
smartvisu-1 | 2024-10-31 06:27:44,617 INFO supervisord started with pid 1
shng-1 | Daemon PID 17
smartvisu-1 | 2024-10-31 06:27:45,620 INFO spawned: 'php-fpm' with pid 15
smartvisu-1 | 2024-10-31 06:27:45,621 INFO spawned: 'nginx' with pid 16
smartvisu-1 | 2024/10/31 06:27:45 [alert] 16#16: detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
smartvisu-1 | nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: using the "epoll" event method
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: nginx/1.18.0
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: built by gcc 9.3.0 (Alpine 9.3.0)
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: OS: Linux 5.15.0-122-generic
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: getrlimit(RLIMIT_NOFILE): 1048576:1048576
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker processes
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 17
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 18
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 19
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 20
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 21
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 22
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 23
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 24
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 25
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 26
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 27
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 28
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 29
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 30
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 31
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 32
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 33
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 34
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 35
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 36
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 37
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 38
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 39
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 40
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 41
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 42
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 43
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 44
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 45
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 46
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 47
smartvisu-1 | 2024/10/31 06:27:45 [notice] 16#16: start worker process 48
smartvisu-1 | [31-Oct-2024 06:27:45] NOTICE: fpm is running, pid 15
smartvisu-1 | [31-Oct-2024 06:27:45] NOTICE: ready to handle connections
smartvisu-1 | 2024-10-31 06:27:46,688 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
smartvisu-1 | 2024-10-31 06:27:46,688 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Ich für meinen Teil erkenne zumindest hier noch kein kritischen Error - oder stellt dies ein Problem?
Code:
smartvisu-1 | cat: can't open '/etc/TZ': No such file or directory
smartvisu-1 | 2024-10-31 06:27:44,613 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
smartvisu-1 | 2024/10/31 06:27:45 [alert] 16#16: detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
smartvisu-1 | nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
und beim starten erhalte ich dies im logging --> scheint als würde der host nicht erkannt. Dies ändert sich auch nicht wenn ich den hostname: IP addresse des servers angebe. Kann mir hier einer einen Ansatz geben wonach ich schauen muss
Code:
sudo docker compose up
WARN[0000] /home/brunosa3/projects/smarthomeng/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 3/2
✔ Network smarthomeng_shng-net Created 0.2s
✔ Container smarthomeng-shng-1 Created 0.0s
✔ Container smarthomeng-smartvisu-1 Created 0.0s
Attaching to shng-1, smartvisu-1
smartvisu-1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
smartvisu-1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
smartvisu-1 | [Wed Oct 30 21:43:37.860564 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.56 (Debian) PHP/8.0.30 configured -- resuming normal operations
smartvisu-1 | [Wed Oct 30 21:43:37.860608 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
shng-1 | Daemon PID 17
Ich habe jetzt mal einen Wurf mit einem 1.10er Docker Container gemacht. Ich werde den jetzt mal ein paar Tage testen und dann ein entsprechendes Release Tag machen.
docker pull jentz1986/smarthomeng:develop
Achtung: Da steht develop. Das heißt, dass ich da mal nen Nachmittag dran rumgebastelt habe, bis es läuft. Und: Da drin ist heute das Release 1.10 (für Plugins und Core). Heute wird darin Python 3.10 genutzt. Das alles kann sich bei dem Tag jederzeit ändern.
Ich habe unser produktives System darauf umgestellt. Mal schauen, ob mir was um die Ohren fliegt.
Erfahrungen bisher:
- Es gab Änderungen an der Logging-Konfiguration. Beim ersten Logeintrag wird noch der config-dir Parameter ignoriert. Danach greift der aber.
- Ich musste meine structs umsortieren. (Komme von 1.9.3) Die Dateien sind inhaltlich gleich geblieben mussten aber an den korrekten Ort, mit korrekten Namen.
Ja ich schau mal. Ich wollte das mit dem „offiziellen“ Dockerimage vom offiziellen Repo aus machen - ging nicht, habe keine Berechtigungen bekommen. Also gab es ein Jahr lang ein kostenloses Projekt bei Docker, mit der Auflage zwei Releases pro Jahr zu machen. Da es kein Release gab wollten die dann über 400Euro haben. Ergo ist die Organisation bei Docker jetzt weg.
Das Dockerfile unterstützt auch heute schon Custom-Plugins und das Ausführen eines Preload Scripts. Ist alles da. Wäre halt schön, wenn da auch jemand mitmachen würde und nicht nur mit Anforderungen oder als Qualitygate…
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Einen Kommentar schreiben: