Ankündigung

Einklappen
Keine Ankündigung bisher.

SmartHomeNG startet nicht mehr nach erstem Neustart

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

    SmartHomeNG startet nicht mehr nach erstem Neustart

    Hallo.
    Ich habe Smarthomeng auf in einem Container auf Proxmox installiert. Bei der Installation bin ich nach der Komplettanleitung vorgegangen.
    Der erstmalige start hat funktioniert, über die Web GUI habe bei der Konfiguration Breiten- und Längengrad, und Höhe aktualisiert. Sowie für den Benutzer admin ein Password vergeben.In der GUI auf Core neu starten geklickt. Smarthomeng startet aber nicht mehr.

    Über die Konsole habe ich versucht manuell neu zu starten mit der Meldung "No instance of smarthomeng running".

    Daraufhin Debian neu gestartet und versucht smarthomeng im Debug Mode zu starten. Fehlermeldung: (Errno 2) no such file or directory
    Auf der Suche im Forum fand ich heraus dass das Verzeichnis \var\run fehlt, ist bei mir aber nicht der Fall.

    Beim Versuch normal zu starten bekomme ich eine PID, bei der abfrage ob smarthomeng läuft kommt keine Ausgabe.

    Systeminfos
    Proxmox 8.2.4
    Container mit Debian 12.7.1, 20GB Speicher, 2GB RAM
    SmartHomeNG aus der Anleitung
    https://github.com/smarthomeNG/smarthome.git
    https://github.com/smarthomeNG/plugins.git plugins
    Python 3.11.2​

    Danke im Voraus!
    Zuletzt geändert von MarioAut; 19.09.2024, 12:26.

    #2
    Was steht denn im Log von SmartHomeNG?
    Viele Grüße
    Martin

    There is no cloud. It's only someone else's computer.

    Kommentar


      #3
      Python 3.11 ist für das aktuelle Release 1.10 noch nicht freigegeben. Die Wahrscheinlichkeit ist hoch das beim Installieren eines Paketes etwas nicht funktioniert hat. Das steht dann im Log drin den Du unter /usr/local/smarthome/var/log finden kannst.

      Wenn das Paket manuell nachinstalliert wird (Vorsicht: virtual environment) und dann SmartHomeNG neu gestartet wird, sollte es klappen.

      Kommentar


        #4
        Hallo, sorry für die späte Rückmeldung.
        Das Log war leider leer seitdem Smarthomeng nicht mehr startete. Mit Python hatte es auch nichts zu tun, bin alles mehrmals durchgegangen.
        Mitlerweile läuft Smarthomeng ohne Probleme, sobald ich aber unter den Systemeinstellungen für Österreich die Bundesland Kennung ST eintrage lässt sich smarthomeng nicht mehr starten. Ist das ein Bug oder verstehe ich da etwas nicht?

        Kommentar


          #5
          Naja ich würde hier einen Bug vermuten. Wohne aber auch nicht in Österreich und kann da wenig zu sagen. Vielleicht kann Onkelandy da was zu beitragen.

          Kommentar


            #6
            Hab bei mir keine Probleme.. Wie sieht deine Datei denn genau aus?

            Und was hat das ursprüngliche Startproblem nun behoben..? Löschen von "ST" in den Settings?

            Kommentar


              #7
              Ja, das Startproblem konnte ich durch löschen von ST beheben.
              So sieht die holidays.yaml aus wenn das System läuft.
              Code:
              %YAML 1.1
              ---
              # etc/holidays.yaml
              # Supports holidays for 50 countries
              # Supports regional holidays for provinces of a country
              #
              
              # Popular countries for SmartHomeNG:
              #  - Germany or DE: province = BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, RP, SL, SN, ST, SH, TH
              #  - Austria or AT: province = B, K, N, O, S, ST, T, V, W (default)
              #  - Switzerland or CH: province = AG, AR, AI, BL, BS, BE, FR, GE, GL, GR, JU, LU, NE, NW, OW, SG, SH, SZ, SO, TG, TI, UR, VD, VS, ZG, ZH
              #
              #  - Belgium or BE: province = None
              #  - France or FRA: province = Métropole (default), Alsace-Moselle, Guadeloupe, Guyane, Martinique, Mayotte, Nouvelle-Calédonie, La Réunion, Polynésie Français>
              #  - Luxembourg or LU: province = None
              #  - Poland or PL: province = None
              #  - UnitedKingdom or UK: province = None
              #  - England, Northern Ireland, Scotland, Wales: province = None
              location:
                  country: AT
                  #province: HH       # for DE
                  #state: FL          # state is only used for United States and Brazil
              
              #custom:
              #    # custom holidays without a specified year repeat every year
              #    - '{"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}'           # last friday in July
              #    - {"day": 2, "month": 8, "name": "Jon Doe's birthday"}
              #    - {"day": 22, "month": 11, "name: "Jane Doe's birthday"}
              #    - {"day": 2, "month": 8, "year": 2020, "name": "Jon Doe's 100th birthday"}
              #    - {"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}         # last friday in July
              #    - {"dow": 2, "dow_week": 2, "month": 7, "name": "second tuesday in July"}
              #    - {"dow": 2, "dow_week": 2, "month": 7, "year": 2019, "name": "second tuesday in July '19"}
              #    - {"dow": 3, "dow_week": 2, "year": 2021, "name": "Every second wednesday in 2021"}
              #    - {"dow": 3, "dow_week": 2, "dow_start_week": 1, "year": 2021, "name": "Every second wednesday in 2021, starting on 1st wednesday"}
                  province:
              custom:
              -   '{"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}'​
              ​
              So startet es nicht mehr.
              Code:
              %YAML 1.1
              ---
              # etc/holidays.yaml
              # Supports holidays for 50 countries
              # Supports regional holidays for provinces of a country
              #
              
              # Popular countries for SmartHomeNG:
              #  - Germany or DE: province = BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, RP, SL, SN, ST, SH, TH
              #  - Austria or AT: province = B, K, N, O, S, ST, T, V, W (default)
              #  - Switzerland or CH: province = AG, AR, AI, BL, BS, BE, FR, GE, GL, GR, JU, LU, NE, NW, OW, SG, SH, SZ, SO, TG, TI, UR, VD, VS, ZG, ZH
              #
              #  - Belgium or BE: province = None
              #  - France or FRA: province = Métropole (default), Alsace-Moselle, Guadeloupe, Guyane, Martinique, Mayotte, Nouvelle-Calédonie, La Réunion, Polynésie Français>
              #  - Luxembourg or LU: province = None
              #  - Poland or PL: province = None
              #  - UnitedKingdom or UK: province = None
              #  - England, Northern Ireland, Scotland, Wales: province = None
              location:
                  country: AT
                  #province: HH       # for DE
                  #state: FL          # state is only used for United States and Brazil
              
              ​#custom:
              #    # custom holidays without a specified year repeat every year
              #    - '{"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}'           # last friday in July
              #    - {"day": 2, "month": 8, "name": "Jon Doe's birthday"}
              #    - {"day": 22, "month": 11, "name: "Jane Doe's birthday"}
              #    - {"day": 2, "month": 8, "year": 2020, "name": "Jon Doe's 100th birthday"}
              #    - {"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}         # last friday in July
              #    - {"dow": 2, "dow_week": 2, "month": 7, "name": "second tuesday in July"}
              #    - {"dow": 2, "dow_week": 2, "month": 7, "year": 2019, "name": "second tuesday in July '19"}
              #    - {"dow": 3, "dow_week": 2, "year": 2021, "name": "Every second wednesday in 2021"}
              #    - {"dow": 3, "dow_week": 2, "dow_start_week": 1, "year": 2021, "name": "Every second wednesday in 2021, starting on 1st wednesday"}
                  province: ST
              custom:
              -   '{"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}'​
              Habe jetzt auch die übrigen Bundesländer probiert, die funktionieren alle nur ST nicht.

              Kommentar


                #8
                Das liegt an dem Python-Paket holidays.
                Probier's mal mit 'St' statt 'ST' (siehe https://github.com/vacanza/python-ho...austria.py#L36)

                Gruß Stefan

                Kommentar


                  #9
                  Funktioniert, vielen Dank!

                  Gruß Mario

                  Kommentar

                  Lädt...
                  X