Ankündigung

Einklappen
Keine Ankündigung bisher.

alternatives Docker Image

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • brunosa3
    antwortet
    Ja ich verstehe es auch nicht.

    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?


    wie sieht denn dein compose aus ?

    Einen Kommentar schreiben:


  • henfri
    antwortet
    Sorry, mit dem Fehler der SV kann ich nix anfangen.
    Was passiert, wenn du auf das Admin-Interface von SH zugreifst?

    Einen Kommentar schreiben:


  • brunosa3
    antwortet
    Hi Hendrik,

    ich habe den index.php hinzugefügt
    Code:
    smartvisu-1  | xxx.xxx.xx.xxx - - [03/Nov/2024:20:15:17 +0000] "GET /index.php HTTP/1.1" 404 617 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
    smartvisu-1  | 2024/11/03 20:16:17 [info] 17#17: *2 client timed out (110: Operation timed out) while waiting for request, client: xxx.xxx.xx.xxx, server: 0.0.0.0:80
    sagt dir das mehr?


    Oh was meinst du damit - was habe ich falsch gemacht?
    Zitat von henfri Beitrag anzeigen
    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)
    ​

    Einen Kommentar schreiben:


  • henfri
    antwortet
    Hallo,

    du musst dich ein bisschen mehr einlesen, wie docker funktioniert, z.B.:
    Code:
    ports:
    - "8084:80"
    sicher welches smarthomeNG image ich jetzt nehmen muss jentz1986/smarthomeng
    Code:
    2024/10/31 15:10:15 [error] 18#18: *2 directory index of "/var/www/html/" is forbidden, client: xxx.xxx.xx.xxx, server: _, request: "GET / HTTP/1.1", host: "xxx.xxx.xx.xxx:8084"
    Der fehler sagt mir jetzt so nix. Häng mal ein index.php hinten dran und überprüfe die Rechte an den Dateien.

    Gruß,
    Hendrik​

    Einen Kommentar schreiben:


  • brunosa3
    antwortet
    Ja, habe ich zumindest im compose file so angegeben

    Code:
    version: "3"
    
    networks:
      shng-net:
        internal: true
    
    services:
      shng:
        image: henfri/smarthome-ng
        restart: "unless-stopped"
        volumes:
          - ./volumes:/mnt
        ports:
          - "2424:2424"
          - "8383:8383"
        networks:
          - shng-net
    
      smartvisu:
        image: richarvey/nginx-php-fpm:1.10.3
        volumes:
         - ./volumes/html:/var/www/html
        ports:
         - "8084:80"
         - "8444:443"
        restart: always​
    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

    Code:
                "Labels": {
                    "SmartHomeNG-core-version": "v1.8.2",
                    "SmartHomeNG-plugins-version": "v1.8.2",
                    "description": "SmartHomeNG docker image",
                    "maintainer": "Henning Behrend"
                }
    ​
    Naja, mit den oberen settings erhalte ich diesen Error im Log, wenn ich versuche die SmartVISU zu besuchen

    Code:
    smartvisu-1  | 2024/10/31 15:10:15 [error] 18#18: *2 directory index of "/var/www/html/" is forbidden, client: xxx.xxx.xx.xxx, server: _, request: "GET / HTTP/1.1", host: "xxx.xxx.xx.xxx:8084"
    smartvisu-1  | xxx.xxx.xx.xxx - - [31/Oct/2024:15:10:15 +0000] "GET / HTTP/1.1" 403 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
    ​
    Zuletzt geändert von brunosa3; 31.10.2024, 16:26.

    Einen Kommentar schreiben:


  • henfri
    antwortet
    Hast die SV auf Port 80 konfiguriert

    Einen Kommentar schreiben:


  • brunosa3
    antwortet
    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

    Einen Kommentar schreiben:


  • henfri
    antwortet
    Funktioniert denn alles?

    Einen Kommentar schreiben:


  • brunosa3
    antwortet
    danke für Deine schnelle Antwort.

    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)​​

    Einen Kommentar schreiben:


  • henfri
    antwortet
    Smartvisu mache ich so
    https://knx-user-forum.de/forum/supp...74#post1763374

    Code:
    services:   shng:
          image: henfri/smarthome-ng
    Da verwendest du mein altes, statt dem aktuellen Image.

    Einen Kommentar schreiben:


  • brunosa3
    antwortet
    Hallo zusammen,

    ich bin docker Nueling und habe mich an euer Image ran gewagt und brauche kurz Eure Hilfe.

    Ich habe dieses image vwerndet

    Code:
    docker pull jentz1986/smarthomeng
    https://hub.docker.com/r/jentz1986/smarthomeng

    mir smartVISU geholt
    Code:
    git clone https://github.com/Martin-Gleiss/smartvisu.git ./volume/html/smartvisu
    dann ein docker-compose.yaml erstellt

    Code:
    version: "3"
    
    networks:
      shng-net:
        internal: true
    
    services:
      shng:
        image: henfri/smarthome-ng
        restart: "unless-stopped"
        volumes:
          - ./volumes:/mnt
        ports:
          - "2424:2424"
          - "8383:8383"
        networks:
          - shng-net
      
      smartvisu:
        image: php:8.0-apache
        #hostname: <your.hostname.tld>
        depends_on:
         - shng
        restart: unless-stopped
        volumes:
         - ./volumes/html:/var/www/html/
        ports:
          - "80:80"
        networks:
          - shng-net​
    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
    ​

    Einen Kommentar schreiben:


  • jentz1986
    antwortet
    Läuft und schnurrt wie ein Kätzchen. Ich muss mal n Release Tag da dran machen.

    Einen Kommentar schreiben:


  • jentz1986
    antwortet
    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.

    Einen Kommentar schreiben:


  • jentz1986
    antwortet
    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…

    Einen Kommentar schreiben:


  • Yfkt5A
    antwortet
    Wenns so einfach wäre.

    Damit hatte ich mich auch schonmal einen Abend erfolglos beschäftigt.

    Wollte natürlich gleich auf 1.9.5 und das hat immer Fehler geworfen.

    Einen Kommentar schreiben:

Lädt...
X