Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Installation auf NUC mit Proxmox

    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

    Installation auf NUC mit Proxmox

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

      Ok, Danke.

      Jetzt hat er gestoppt.

      Ich hänge hier schon Stunden und sehe so langsam wirklich nur noch den Tunnel.

      Ich werde jetz nochmal versuchen das Backup einzuspielen.

      1 Reply Last reply Reply Quote 0
      • Chaot
        Chaot last edited by

        Mist:

        haus@haus:/$ sudo iobroker stop
        Stopping iobroker controller daemon...
        iobroker controller daemon stopped.
        Exit code for "killall.sh": 123
        haus@haus:/$ sudo iobroker restore 0
        Stop iobroker first!
        
        1 Reply Last reply Reply Quote 0
        • Dutchman
          Dutchman Developer Most Active Administrators last edited by

          Was sagt````
          sudo iobroker status

          
          Sent from my iPhone using Tapatalk
          1 Reply Last reply Reply Quote 0
          • Chaot
            Chaot last edited by

            iobroker is running

            1 Reply Last reply Reply Quote 0
            • Chaot
              Chaot last edited by

              haus@haus:/$ sudo iobroker stop
              iobroker controller daemon is not running
              haus@haus:/$ sudo iobroker restore 0
              Stop iobroker first!
              haus@haus:/$ iobroker start
              Starting iobroker controller daemon...
              iobroker controller daemon started. PID: 8301
              haus@haus:/$ sudo iobroker stop
              Stopping iobroker controller daemon...
              iobroker controller daemon stopped.
              Exit code for "killall.sh": 123
              haus@haus:/$ sudo iobroker restore 0
              Stop iobroker first!
              haus@haus:/$ sudo iobroker status
              iobroker is running
              
              
              1 Reply Last reply Reply Quote 0
              • Chaot
                Chaot last edited by

                Ich habe jetzt die VM mal komplett gestoppt und neu gestartet. Ein Reboot war auch nicht möglich wegen ioBroker.

                1 Reply Last reply Reply Quote 0
                • Dutchman
                  Dutchman Developer Most Active Administrators last edited by

                  Da wir jetzt nicht wissen wo es schiefgegangen ist und die Installation ein baby ist würde ich sagen :

                  • vm wegschmeißen

                  • neue vm erstellen

                  • OS drauf (welches nimmst du)

                  • OS updaten (sudo apt-get update && upgrade

                  • Node 8 installieren

                  • NPM updaten (6.2)

                  • ioBroker installieren

                  • ioBroker stoppen

                  • Backup einspielen

                  Mache die node und ioBroker Installation als root (also sudo du) und zu dir selber einen Gefallen : mache nach jedem Schritt einen snapshot wen was schiefgeht rollst du zurück

                  Sent from my iPhone using Tapatalk

                  1 Reply Last reply Reply Quote 0
                  • Chaot
                    Chaot last edited by

                    Ich habe jetzt Ubuntu 18.04

                    Beim NPM Update habe ich noch eine Frage: Ich bekomme immer nur die 4. irgendwas. Wie bekomme ich die 6.2?

                    1 Reply Last reply Reply Quote 0
                    • Dutchman
                      Dutchman Developer Most Active Administrators last edited by

                      @Chaot:

                      Ich habe jetzt Ubuntu 18.04

                      Beim NPM Update habe ich noch eine Frage: Ich bekomme immer nur die 4. irgendwas. Wie bekomme ich die 6.2? `

                      Welchen Befehl hast du benutzt?

                      Node 8 kommt nämlich nicht mit npm4!

                      Sent from my iPhone using Tapatalk

                      1 Reply Last reply Reply Quote 0
                      • Chaot
                        Chaot last edited by

                        curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                        
                        1 Reply Last reply Reply Quote 0
                        • Dutchman
                          Dutchman Developer Most Active Administrators last edited by

                          Da liegt der Fehler die node 6 Report ist Buggy also anstatt 6 bitte 8nehmen

                          Sent from my iPhone using Tapatalk

                          1 Reply Last reply Reply Quote 0
                          • Chaot
                            Chaot last edited by

                            und dann kommt automatisch auch der richtige NPM?

                            1 Reply Last reply Reply Quote 0
                            • Dutchman
                              Dutchman Developer Most Active Administrators last edited by

                              @Chaot:

                              und dann kommt automatisch auch der richtige NPM? `

                              Dan kommt glaube ich npm 5.8 das musst du dann noch upgraden

                              Sent from my iPhone using Tapatalk

                              1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 last edited by

                                @Dutchman:

                                Dan kommt glaube ich npm 5.8 das musst du dann noch upgraden `
                                NPM 5.8.x wäre ja in Ordnung, aber leider kommt 5.6.0 (böse !).

                                1 Reply Last reply Reply Quote 0
                                • Chaot
                                  Chaot last edited by

                                  Ok, ich habe jetzt folgenden Ablauf:

                                  sudo apt update && sudo apt upgrade -y
                                  
                                  sudo reboot
                                  
                                  curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                                  
                                  sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
                                  
                                  sudo npm install npm@latest -g
                                  
                                  npm - v 
                                  = 6.2.0
                                  
                                  node -v
                                  =v8.11.3
                                  
                                  sudo reboot
                                  
                                  sudo mkdir /opt/iobroker
                                  
                                  sudo chmod -R 777 /opt/iobroker
                                  
                                  cd /opt/iobroker
                                  
                                  sudo npm install iobroker --unsafe-perm
                                  
                                  sudo reboot
                                  
                                  sudo iobroker stop
                                  
                                  cd /opt/iobroker
                                  
                                  Ordner <backups>erstellen und Backup ablegen
                                  
                                  sudo chmod -R 777 /opt/iobroker
                                  
                                  sudo iobroker restore 0
                                  
                                  Sudo reboot</backups> 
                                  

                                  War nix wenn ich das richtig verstehe:

                                  haus@haus:~$ sudo iobroker status
                                  No connection to states 127.0.0.1:6379[redis]
                                  
                                  

                                  Kann ich das beheben oder nochmal auf Anfang?

                                  1 Reply Last reply Reply Quote 0
                                  • Chaot
                                    Chaot last edited by

                                    Selbst gefunden.

                                    Ich habe jetzt Redis nachinstalliert:

                                    apt-get install redis-server
                                    
                                    sudo chmod 777 -R /var/lib/redis
                                    
                                    sudo reboot
                                    

                                    Der Admin startet jetzt, aber ich vermisse alle Adapter.

                                    In den Instanzen steht:````
                                    File index.html not found

                                    1 Reply Last reply Reply Quote 0
                                    • Chaot
                                      Chaot last edited by

                                      Aktueller Stand:

                                      Ich habe aus einem Kompletten Backup die ganzen Ordner neu geschrieben.

                                      Jetzt sind (fast) alle Adapter wieder da.

                                      Es fehlt nur Dash Adapter.

                                      Jetzt zum nächsten Problem:

                                      Ich habe scheinbar bei der Grundinstallation etwas übersehen.

                                      Wie kann ich die VM jetzt auf meine WunschIP festlegen?

                                      1 Reply Last reply Reply Quote 0
                                      • eric2905
                                        eric2905 last edited by

                                        @Chaot:

                                        Der Admin startet jetzt, aber ich vermisse alle Adapter.

                                        In den Instanzen steht:File index.html not found `
                                        Hier hättest Du nur (lange) warten müssen.

                                        Im Backup sind nur die Konfigs drin. Die Adapter werden dann sukzessive nachinstalliert. Das siehst du auch im Log.

                                        Gruß,

                                        Eric

                                        Von unterwegs getippert

                                        1 Reply Last reply Reply Quote 0
                                        • Chaot
                                          Chaot last edited by

                                          Ahhhh, jetzt verstehe ich warum die Backups so klein sind….

                                          Was will mir das beim Dash-Button sagen?

                                          host.haus	2018-07-19 11:16:18.298	error	instance system.adapter.amazon-dash.0 terminated with code 0 (OK)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Module.load (module.js:565:32)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Object.Module._extensions..js (module.js:663:10)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Module._compile (module.js:652:30)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/pcap.js:3:21)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at require (internal/module.js:11:18)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Module.require (module.js:596:17)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Function.Module._load (module.js:497:3)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at tryModuleLoad (module.js:505:12)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Module.load (module.js:565:32)
                                          Caught	2018-07-19 11:16:18.298	error	by controller[0]: at Object.Module._extensions..node (module.js:681:18)
                                          Caught	2018-07-19 11:16:18.297	error	by controller[0]: Error: /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32
                                          amazon-dash.0	2018-07-19 11:16:18.286	info	terminating
                                          amazon-dash.0	2018-07-19 11:16:17.960	info	starting. Version 0.2.9 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v8.11.3
                                          amazon-dash.0	2018-07-19 11:16:17.839	info	States connected to redis: 127.0.0.1:6379
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Module.load (module.js:565:32)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Object.Module._extensions..js (module.js:663:10)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Module._compile (module.js:652:30)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/pcap.js:3:21)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at require (internal/module.js:11:18)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Module.require (module.js:596:17)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Function.Module._load (module.js:497:3)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at tryModuleLoad (module.js:505:12)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Module.load (module.js:565:32)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	at Object.Module._extensions..node (module.js:681:18)
                                          amazon-dash.0	2018-07-19 11:16:17.782	error	Error: /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32
                                          amazon-dash.0	2018-07-19 11:16:17.778	error	uncaught exception: /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32
                                          host.haus	2018-07-19 11:16:17.207	info	instance system.adapter.amazon-dash.0 started with pid 3358</anonymous></anonymous>
                                          

                                          Der Button und das zugehörige Script funktionieren allerdings

                                          1 Reply Last reply Reply Quote 0
                                          • Chaot
                                            Chaot last edited by

                                            So,

                                            bis auf den Dash Button funktioniert alles wieder.

                                            War irgendwie nicht so einfach wie ich mir das vorgestellt habe, aber machbar.

                                            Ich war so frei den Arbeitsablauf aufzuführen (falls ich das nochmal brauche 😉 ) :

                                            --- VM einrichten ---
                                            VM starten und installieren
                                            mit Putty einloggen und Befehle abarbeiten:
                                            
                                            sudo apt update && sudo apt upgrade -y
                                            
                                            sudo reboot
                                            
                                            curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                                            
                                            sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
                                            
                                            sudo npm install npm@latest -g
                                            
                                            npm - v 
                                            Ergebnis = 6.2.0
                                            
                                            node -v
                                            Ergebnis =v8.11.3
                                            
                                            sudo reboot
                                            
                                            sudo mkdir /opt/iobroker
                                            
                                            sudo chmod -R 777 /opt/iobroker
                                            
                                            cd /opt/iobroker
                                            
                                            sudo npm install iobroker --unsafe-perm
                                            
                                            sudo reboot
                                            
                                            sudo iobroker stop
                                            
                                            cd /opt/iobroker
                                            
                                            --- Ordner <backups>erstellen und Backup ablegen
                                            
                                            sudo chmod -R 777 /opt/iobroker (wird benötigt um Backup einzuspielen)
                                            
                                            sudo iobroker restore 0
                                            
                                            Sudo reboot
                                            
                                            apt-get install redis-server
                                            
                                            sudo chmod 777 -R /var/lib/redis
                                            
                                            sudo reboot</backups> 
                                            

                                            In meinem Fall waren die Adapter zunächst nicht verfügbar. Die werden nachinstalliert wenn aus dem kleinen Backup wiederhergestellt wird. Da ich das nicht wusste habe ich über die vorhandenen Ordner "/opt/iobroker" ein komplettes Backup mit allen Ordnern kopiert.

                                            Bis auf Redis ist dann alles sofort gelaufen.

                                            Zusatzarbeiten:

                                            Im Ordner VIS.0 die eigenen Bilder einspielen
                                            in allen Sonoffs den MQTT Server neu setzen
                                            im PAW Adapter den ioBroker neu eintragen
                                            Scripte auf Funktion prüfen (wegen fehlender Verknüpfungen)
                                            
                                            

                                            Bisher ist es so, das scheinbar der ioBroker nicht automatisch startet wenn die VM bootet.

                                            Da muss ich nochmal nachfragen woran das liegen könnte.

                                            Der Adapter "Backitup" hat mir sehr gut geholfen beim einfachen erstellen der Backups.

                                            Aktuell werde ich ihn dann vermutlich nicht mehr benötigen, da ich über Proxmox bequem Abbilder erstellen kann und die schneller zu handhaben sind.

                                            Wenn mir noch jemand helfen kann bei den beiden Problemen Dash Button und Autostart wäre ich recht dankbar. Ansonsten schon jetzt meinen herzlichsten Dank an alle die mir bisher geholfen haben und ganz besonders an @Dutchman der es geschafft hat mich im richtigen Augenblick davon abzuhalten alles durchs Fenster zu donnern.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            475
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            29
                                            128
                                            23855
                                            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