Ankündigung

Einklappen
Keine Ankündigung bisher.

alternatives Docker Image

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

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

    Kommentar


      Funktioniert denn alles?

      Kommentar


        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

        Kommentar


          Hast die SV auf Port 80 konfiguriert

          Kommentar


            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.

            Kommentar


              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​

              Kommentar


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

                Kommentar


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

                  Kommentar


                    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 ?

                    Kommentar


                      Hi,

                      ich weiß nicht ob das hier passt. Sonst einfach ignorieren.

                      Ich hatte mal von henfri abgeforkt und etwas gefixt. Ich nutze jetzt den hier:
                      https://github.com/AAPohl/docker_smarthomeNG

                      PR zurück habe ich nicht gestellt, weil doch einiges noch gebastelt ist. Insbesondere der Workflow. War ein Versuch, mal zu schauen, ob der Container hochfährt.

                      Kommentar


                        Hi Hendrik,

                        hab es endlich zum Laufen bekommen. Wie gesagt bin noch an meinen ersten docker Geh-Versuche, deshalb verzeiht mir meine grünen Ohren. Die Ports waren nur im internen Netzwerk zugänglich. Wenn ich jetzt das Netzwerk bridge siehe unten funktioniert es

                        (funktioniert nicht)
                        Code:
                        networks:
                          shng-net:
                            internal: true
                        ​
                        (funktioniert)
                        Code:
                        networks:
                          shng-net:
                            internal: false
                        ​
                        (funktioniert)
                        Code:
                        networks:
                          shng-net:
                            driver: bridge
                        Vielen Dank Hendrik für Deine Hilfe.

                        Jetzt versuche ich mich Mal ran das ganze zu konfigurieren und weitere container einzupflegen (zB knxd)

                        Kommentar


                          Ah, das freut mich. Danke für die Rückmeldung.

                          Kommentar


                            Mein Flatcar hat sich heute geupdatet und danach lag mein SmartVisu 3.4 bzw. Smarthome 1.10 flach.

                            PHP-Code:
                            TypeErrorWebsocket.handle_new_connection() missing 1 required positional argument'path'
                            2024-11-13  16:38:17 ERROR    websockets.server   connection handler failed
                            Traceback (most recent call last):
                            >   
                            File "/home/smarthome/.local/lib/python3.10/site-packages/websockets/asyncio/server.py"line 373in conn_handler
                            >     await self.handler(connection)​ 
                            Grund ist ein Breaking Change in der Websockets library von version 12 nach 14.1 (ich weiß nicht genau welcher Versionswechsel, aber wahrscheinlich der nach 14.0, von vor vier Tagen, siehe hier: https://websockets.readthedocs.io/en...changelog.html)

                            Ich habe meine Umgebung wieder ans laufen bekommen indem ich in der modules/websocket/requirements.txt die Version auf 12.0 festgelegt habe und den Container neugestartet habe. Dazu habe ich die Zeile so umformuliert: websockets==12.0
                            FYI Msinn / Onkelandy

                            Kommentar


                              Ich habe das Problem auch mit dem Update von meiner Heiminstallation von Bullseye auf Bookworm. Dort mussten ja auch alle Python Packages neu installiert werden. Ich habe daraufhin Requirements im Develop für das websocket Modul angepasst. Breaking changes sind immer ärgerlich :-(

                              Kommentar


                                Hi henfri

                                ist das das knxd docker image das Du verwendest?

                                Code:
                                  knxd:
                                    image: henfri/knxd
                                    network_mode: "host"
                                    command: knxd -e 0.0.1 -E 0.0.2:8 -c -b ipt:xxx.xxx.xx.xx
                                    restart: always
                                ​
                                irgendwie krieg ich es nicht hin - und wollte nur kurz bei Dir erfragen ob dies das richtige image ist bevor ich hier noch Wochen damit verbringe

                                Code:
                                 ! smartvisu Published ports are discarded when using host network mode                                                                                  0.0s
                                Attaching to knxd-1, shng-1, smartvisu-1
                                knxd-1       | I only have one interface. Nothing to do. Giving up.
                                shng-1       | SHNG-PREPAIR: Prepare Volumes
                                knxd-1 exited with code 1​
                                schaut so aus als wäre mein knx IP interface noch mit meinem alten server verbunden - habe es jedoch abgeschaltet

                                Code:
                                sudo systemctl stop knxd.socket
                                sudo systemctl stop knxd.service​

                                Kommentar

                                Lädt...
                                X