Ankündigung

Einklappen
Keine Ankündigung bisher.

Openhab 4.0.0.M1 & Java 17 Installation

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

    Openhab 4.0.0.M1 & Java 17 Installation

    Guten Morgen,

    Eher aus versehen hab ich meine Umgebung auf openHAB 4.0.0.M1 - Milestone Build upgedatet. Leider schaffe ich es nun nicht diese zum Laufen zu bringen da mir Java 17 sich nicht installieren lässt.

    ## Release = Raspbian GNU/Linux 10 (buster)
    ## Kernel = Linux 5.10.103+

    java -version
    openjdk version "11.0.18" 2023-01-17 LTS
    OpenJDK Runtime Environment Zulu11.62+17-CA (build 11.0.18+10-LTS)
    OpenJDK Client VM Zulu11.62+17-CA (build 11.0.18+10-LTS, mixed mode)
    über openhabian-config haut es leider auch nicht hin ..
    [09:05:45] root@openhabian:/home/openhabian# openhabian-config
    2023-03-17_09:06:30_CET [openHABian] Switching to branch main... OK
    2023-03-17_09:06:31_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
    2023-03-17_09:08:13_CET [openHABian] Updating Linux package information... OK
    2023-03-17_09:08:51_CET [openHABian] Fetching OpenJDK 17... FAILED
    2023-03-17_09:09:27_CET [openHABian] Installing OpenJDK 17... FAILED

    Kann mir eventuell jemand noch einen Tipp geben, nach 2 Tage Google Suche habe ich keine passende Lösung gefunden ...

    Danke
    Zuletzt geändert von DiePolle; 17.03.2023, 09:26.

    #2
    Das Problem ist vermutlich die alte Debian Version.

    Wenn es nicht sehr gute Gründe gibt, möchte ich empfehlen, dass Du die Konfiguration sicherst (openhab-cli backup könnte immer noch funktionieren) und eine neue SD-Karte erstellst, mit dem aktuellen bullseye Image. Der Pi Imager kann das openHABian Image sogar selbst herunterladen (etwas versteckt in den Tiefen der möglichen Images).
    Das Backup kannst Du sogar in dem Teil der SD-Karte abspeichern, die von Windows aus lesbar ist, diese wird unter GNU/Linux als /boot/ eingebunden. Wenn Du das Backup-Archiv als initial.zip abspeicherst, sollte openHABian beim ersten Start direkt auch Deine Konfiguration wieder einspielen.

    Ob Du im Anschluss auf Java 17 updatest und den Milestone nutzt, bleibt Dir überlassen (wobei ich eher davon abraten möchte - es gibt noch etliche Dinge, die angepasst werden müssen, bis wirklich alles wieder sauber läuft).

    Falls Du lieber versuchen möchtest, die aktuelle Installation zu reparieren, hast Du weitere Optionen:

    1. debian auf bullseye updaten - zunächst ein sudo apt update && sudo apt -y full-upgrade,
    2. anschließend /etc/apt/sources.list anpassen ( alle Vorkommen von buster durch bullseye ersetzen)
    3. nochmals sudo apt update && sudo apt -y full-upgrade, (dabei werden dann hunderte Pakete ersetzt, das dauert also)
    4. reboot
    5. eventuell lässt sich jetzt Java 17 installieren. Wichtig wäre auch, den Branch von openHABian auf latest zu ändern (direkt in openhabian-config, alternativ über die Datei openhabian.conf, dort als Branch main eintragen)

    Oder Du versuchst, openHAB wieder auf Version 3.4.2 zu bringen, indem Du es komplett deinstallierst und anschließend die stable Version neu installierst.
    Zuletzt geändert von udo1toni; 18.03.2023, 23:46.

    Kommentar


      #3
      Danke, bin jetzt dabei alles neu aufzusetzen mit dem neuesten Image. Habe es nicht zum Laufen gebracht und immer wieder Fehlermeldungen erhalten.

      Ist es normal dass er beim ersten Booten Java11 nicht installiert? Habe es heute nochmal versucht da ich gestern auch das gleiche Problem hatte und dachte mir ich versuchs noch mal ohne gleichzeitiges Backup einspielen, auch Samba hat nicht funktioniert ...

      Scheint auch heute nicht ohne Probleme zu laufen, gleich wie gestern ....

      2023-03-23_08:35:13_GMT [openHABian] Starting the openHABian initial setup.
      2023-03-23_08:35:13_GMT [openHABian] Storing configuration... OK
      2023-03-23_08:35:13_GMT [openHABian] Starting webserver with installation log... OK
      2023-03-23_08:35:19_GMT [openHABian] Changing default username and password... S KIPPED
      2023-03-23_08:35:19_GMT [openHABian] Setting up Ethernet connection... OK
      2023-03-23_08:35:19_GMT [openHABian] Ensuring network connectivity... OK
      2023-03-23_08:35:19_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
      2023-03-23_08:36:31_GMT [openHABian] Updating repositories and upgrading install ed packages... OK
      2023-03-23_08:36:49_GMT [openHABian] Installing git package... OK
      2023-03-23_08:38:12_GMT [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... OK
      2023-03-23_08:38:26_GMT [openHABian] Starting execution of 'openhabian-config unattended'... OK
      2023-03-23_08:38:26_GMT [openHABian] Checking for root privileges... OK
      2023-03-23_08:38:30_GMT [openHABian] Updating Linux package information... OK
      2023-03-23_08:39:15_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
      2023-03-23_08:39:16_GMT [openHABian] Adjusting swap size to 858 MB... OK (reboot required)
      2023-03-23_08:39:17_GMT [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
      2023-03-23_09:39:20_CET [openHABian] Enabling time synchronization using NTP... OK
      2023-03-23_09:39:22_CET [openHABian] Setting locale based on openhabian.conf... OK (reboot required)
      2023-03-23_09:42:16_CET [openHABian] Setting hostname of the base system based on openhabian.conf... OK
      2023-03-23_09:42:17_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
      2023-03-23_09:42:18_CET [openHABian] Enabling Audio output... OK
      2023-03-23_09:42:19_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
      2023-03-23_09:50:22_CET [openHABian] Installing additional needed packages... OK
      2023-03-23_09:53:34_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
      2023-03-23_09:53:35_CET [openHABian] Adding slightly tuned vim configuration file to system... OK
      2023-03-23_09:53:35_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
      2023-03-23_09:53:35_CET [openHABian] Applying miscellaneous system settings... OK
      2023-03-23_09:53:35_CET [openHABian] Downloading FireMotD... OK
      2023-03-23_09:53:44_CET [openHABian] Installing FireMotD... OK
      2023-03-23_09:53:44_CET [openHABian] Generating FireMotD theme... OK
      2023-03-23_09:58:48_CET [openHABian] Setting up FireMotD apt updates count service... OK
      2023-03-23_10:00:37_CET [openHABian] Fetching OpenJDK 11... OK
      2023-03-23_10:00:58_CET [openHABian] Installing OpenJDK 11... FAILED
      2023-03-23_10:03:45_CET [openHABian] Beginning install of latest openhab release (stable)... OK
      2023-03-23_10:03:45_CET [openHABian] Adding required keys to apt... OK
      2023-03-23_10:03:46_CET [openHABian] Installing selected openHAB3 version... FAILED
      2023-03-23_10:13:46_CET [openHABian] Getting initial openHAB configuration... SKIPPED (backup not found at /boot/initial.zip)
      2023-03-23_10:13:46_CET [openHABian] Activating the openHAB console on all interfaces... OK
      2023-03-23_10:13:46_CET [openHABian] Adding openHAB syntax to vim editor... OK
      2023-03-23_10:13:48_CET [openHABian] Adding openHAB syntax to nano editor... OK
      2023-03-23_10:13:50_CET [openHABian] Adding openHAB scheme to multitail... OK
      2023-03-23_10:13:50_CET [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... OK
      2023-03-23_10:14:38_CET [openHABian] Installing Samba... FAILED
      Installing Frontail prerequsites (NodeJS)... OK
      2023-03-23_10:23:54_CET [openHABian] Installing openHAB Log Viewer (frontail)... /opt/openhabian/functions/helpers.bash: line 25: 11426 Illegal instruction "$@" &> /dev/null
      /opt/openhabian/functions/helpers.bash: line 25: 11427 Illegal instruction "$@" &> /dev/null
      FAILED (update)
      Failed to open terminal.


      Zuletzt geändert von DiePolle; 23.03.2023, 10:25.

      Kommentar


        #4
        Nein, das ist eher ungewöhnlich. Welche Plattform? Raspberry Pi? Welches Modell?

        Kommentar


          #5
          Habe bis jetzt immer den Raspberry Pi Model B Plus Rev 1.2 verwendet. Hatte noch nie Probleme ...

          Kommentar


            #6
            Etwa den Pi1?

            Kommentar


              #7
              War der Pi 2.

              Habe mir nun den Pi 4 zugelegt und alles hat wunderbar funktioniert. Außerdem ist die Performance eine ganz andere :-)

              Danke für die Unterstützung.

              Kommentar


                #8
                Prima.

                Kommentar

                Lädt...
                X