Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Proxmox
    5. USV bzw. apcupsd einrichten

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    USV bzw. apcupsd einrichten

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      senior1418 last edited by

      Hallo .

      Beim Einrichten einer USV unter Proxmox benötige ich Hilfe.

      Vor ein paar Tagen hatten wir im Haus den Totalausfall Stromnetzes. Na ja, jemand hat versehentlich den Hauptschalter des Sicherungskasten umgelegt.

      SD-Karte der CCU3 inkl. USB-Stick defekt, der Rest, Synology und NUC mit Proxmox haben es überlebt.

      Das habe ich heute zum Anlass genommen, die bisher nur halbwegs eingebundene USV auf allen Slaves einzurichten.

      Den NUT Server habe ich nach "https://forum.iobroker.net/topic/23688/howto-usv-nut-server-auf-sbc-installieren" auf einen RPI3 aufgesetzt. 2 Synology NAS entsprechend konfiguriert.

      Die CCU3(Raspberrymatic) habe ich entlang der Anleitung https://github.com/jens-maus/RaspberryMatic/wiki/Experten-Features#usv-clientserver-nut eingerichtet. Dank dieser Doku hier war das sehr einfach.

      Leider komme ich bei Proxmox nicht weiter. Der Start des apcupsd.service führt zu Fehler.
      Das habe ich ausgeführt:

      sudo apt-get install apcupsd
      sudo cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.bak
      
      sudo nano /etc/apcupsd/apcupsd.conf
      

      Konfiguration so erstellt:

      UPSCABLE ether
      UPSTYP pcnet
      DEVICE 192.168.0.37:upsmaster:**********
      BATTERYLEVEL 40
      MINUTES 20
      POLLTIME 60
      # Vorgabe beibehalten
      LOCKFILE /var/lock
      SCRIPTDIR /etc/apcupsd
      PWRFAILDIR /etc/apcupsd
      NOLOGINDIR /etc
      ONBATTERYDELAY 6
      TIMEOUT 0
      ANNOY 300
      ANNOYDELAY 60
      NOLOGON disable
      KILLDELAY 0
      NETSERVER on
      NISIP 127.0.0.1
      NISPORT 3551
      EVENTSFILE /var/log/apcupsd.events
      EVENTSFILEMAX 10
      UPSCLASS standalone
      UPSMODE disable
      STATTIME 0
      STATFILE /var/log/apcupsd.status
      LOGSTATS off
      DATATIME 0
      

      Letztlich in :sudo nano /etc/default/apcupsd ISCONFIGURED=yes eingetragen.

      Leider startet der Service nicht:sudo systemctl restart apcupsd.service bringt:

      root@pve:~# systemctl status apcupsd.service
      × apcupsd.service - UPS power management daemon
           Loaded: loaded (/lib/systemd/system/apcupsd.service; enabled; preset: enabled)
           Active: failed (Result: exit-code) since Thu 2025-02-06 21:09:36 CET; 2min 18s ago
         Duration: 33min 39.031s
             Docs: man:apcupsd(8)
          Process: 699949 ExecStartPre=/lib/apcupsd/prestart (code=exited, status=0/SUCCESS)
          Process: 699953 ExecStart=/sbin/apcupsd (code=exited, status=1/FAILURE)
              CPU: 4ms
      
      Feb 06 21:09:36 pve systemd[1]: Starting apcupsd.service - UPS power management daemon...
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
      Feb 06 21:09:36 pve apcupsd[699953]: Terminating due to configuration file errors.
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
                                           Terminating due to configuration file errors.
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd error shutdown completed
      Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Control process exited, code=exited, status=1/FAILURE
      Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Failed with result 'exit-code'.
      Feb 06 21:09:36 pve systemd[1]: Failed to start apcupsd.service - UPS power management daemon.
      
      S Marc Berg 2 Replies Last reply Reply Quote 0
      • S
        senior1418 @senior1418 last edited by senior1418

        @senior1418

        ach ja, weis nicht ob das wichig ist.

        USV meldet sich als : Back-UPS RS 900G

        LG

        1 Reply Last reply Reply Quote 0
        • Marc Berg
          Marc Berg Most Active @senior1418 last edited by Marc Berg

          @senior1418 sagte in USV bzw. apcupsd einrichten:

          UPSTYP pcnet

          Das muss

          UPSTYPE

          heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

          EDIT:

          Unsinn gelöscht

          S 1 Reply Last reply Reply Quote 0
          • S
            senior1418 @Marc Berg last edited by

            @marc-berg sagte in USV bzw. apcupsd einrichten:

            Das muss
            UPSTYPE
            heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

            oh ja - Asche über mein Haupt- der Service starte nun.

            Nach wenigen Minuten kommt es aber zum Verbindungsabbruch. Ist das normal ?

            root@pve:~# tail /var/log/apcupsd.events
            2025-02-06 11:42:22 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
            2025-02-06 11:43:23 +0100  Communications with UPS lost.
            2025-02-06 11:53:36 +0100  Communications with UPS lost.
            2025-02-06 12:03:47 +0100  Communications with UPS lost.
            2025-02-06 12:14:01 +0100  Communications with UPS lost.
            2025-02-06 12:16:01 +0100  apcupsd exiting, signal 15
            2025-02-06 12:16:01 +0100  apcupsd shutdown succeeded
            2025-02-07 10:16:28 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
            
            Broadcast message from root@pve (somewhere) (Fri Feb  7 10:17:23 2025):
            
            Warning communications lost with UPS pve
            

            und hier auch:

            root@pve:~# apcaccess
            APC      : 001,018,0441
            DATE     : 2025-02-07 10:23:15 +0100
            HOSTNAME : pve
            VERSION  : 3.14.14 (31 May 2016) debian
            UPSNAME  : pve
            CABLE    : Ethernet Link
            DRIVER   : PCNET UPS Driver
            UPSMODE  : Stand Alone
            STARTTIME: 2025-02-07 10:16:28 +0100
            STATUS   : COMMLOST
            MBATTCHG : 40 Percent
            MINTIMEL : 20 Minutes
            MAXTIME  : 0 Seconds
            NUMXFERS : 0
            TONBATT  : 0 Seconds
            CUMONBATT: 0 Seconds
            XOFFBATT : N/A
            STATFLAG : 0x05000100
            END APC  : 2025-02-07 10:32:15 +0100
            
            S 1 Reply Last reply Reply Quote 0
            • S
              senior1418 @senior1418 last edited by

              wegen des Verbindungsabbruch habe ich den RPI3 USV-Server vom Netz genommen um mit aktuellem Debian-Image einen neu zu beginnen.

              Das war eine anscheinend eine schlechte Idee denn alle Clients --- NUC, CCU3 und beide Synology'en -- sind daraufhin runtergefahren. Funktionstest bestanden 😉

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Support us

              ioBroker
              Community Adapters
              Donate

              802
              Online

              31.9k
              Users

              80.2k
              Topics

              1.3m
              Posts

              2
              5
              370
              Loading More Posts
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes
              Reply
              • Reply as topic
              Log in to reply
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              The ioBroker Community 2014-2023
              logo