Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [SOLVED] Instal.auf FreeBSD funktioniert nicht.

    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

    [SOLVED] Instal.auf FreeBSD funktioniert nicht.

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

      jetzt hab ich sie glaube ich durch:

      root@iobroker_v2:~ # su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
      NODECMD: Undefined variable.
      root@iobroker_v2:~ # }
      }: Command not found.
      root@iobroker_v2:~ # iobroker_stop ()
      Badly placed ()'s.
      root@iobroker_v2:~ # {
      {: Command not found.
      root@iobroker_v2:~ # su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
      NODECMD: Undefined variable.
      root@iobroker_v2:~ # }
      }: Command not found.
      root@iobroker_v2:~ # iobroker_status ()
      Badly placed ()'s.
      root@iobroker_v2:~ # {
      {: Command not found.
      root@iobroker_v2:~ # su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
      NODECMD: Undefined variable.
      root@iobroker_v2:~ # }
      }: Command not found.
      root@iobroker_v2:~ # PATH="${PATH}:/usr/local/bin"
      PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/bin: Command not found.
      root@iobroker_v2:~ # pidfile="${iobroker_pidfile}"
      iobroker_pidfile: Undefined variable.
      root@iobroker_v2:~ # start_cmd=iobroker_start
      start_cmd=iobroker_start: Command not found.
      root@iobroker_v2:~ # stop_cmd=iobroker_stop
      stop_cmd=iobroker_stop: Command not found.
      root@iobroker_v2:~ #  status_cmd=iobroker_status
      status_cmd=iobroker_status: Command not found.
      
      AlCalzone 2 Replies Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @mrMuppet last edited by AlCalzone

        @mrMuppet sagte in Neue Installation auf FreeBSD/FreeNAS 11.2 funktioniert nicht.:

        Illegal variable name.

        Das ist es möglicherweise!

        aber das sind doch immer noch keinen funktionierenden Befehle oder?

        Die sollten Variablen setzen, aber möglicherweise geht das auf FreeBSD doch nur in Skripten?!

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer @mrMuppet last edited by

          @mrMuppet

          Ich hab da eine Idee... Das Skript soll mit /bin/sh ausgeführt werden, FreeBSD scheint es möglicherweise mit einer alternativen Shell auszuführen, die $(...befehle...) nicht versteht.

          1 Reply Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @mrMuppet last edited by AlCalzone

            @mrMuppet Habe die Änderungen gemerged. Bitte mit dem offiziellen Installationsbefehl probieren:

            curl -sL https://iobroker.net/install.sh | bash -
            
            J 1 Reply Last reply Reply Quote 0
            • J
              joehackerz @AlCalzone last edited by

              @AlCalzone Hallo, hab die neue routine gerade ausprobiert, es kommt immer noch der fehler mit dem pidfile

              AlCalzone 1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @joehackerz last edited by AlCalzone

                @joehackerz Ok, kannst du bitte einen vollständigen Log der Installation posten?

                J 1 Reply Last reply Reply Quote 0
                • J
                  joehackerz @AlCalzone last edited by

                  @AlCalzone putty.log

                  Hab grad nochmal dann den kompletten JAil neu gemacht, hier ist das Protokoll der Installation

                  AlCalzone 2 Replies Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer @joehackerz last edited by

                    @joehackerz sagte in Neue Installation auf FreeBSD/FreeNAS 11.2 funktioniert nicht.:

                    Illegal variable name.

                    Verdammt - das war es dann wohl doch nicht.

                    1 Reply Last reply Reply Quote 0
                    • AlCalzone
                      AlCalzone Developer @joehackerz last edited by

                      @joehackerz @mrMuppet
                      Bitte nochmal versuchen, diesmal mit einem neuen Branch:

                      curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix-2/installer.sh | bash -
                      
                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mrMuppet @AlCalzone last edited by

                        @AlCalzone scheint immer noch der selbe Fehler zu sein.
                        Pastebin

                        AlCalzone 1 Reply Last reply Reply Quote 0
                        • AlCalzone
                          AlCalzone Developer @mrMuppet last edited by

                          @mrMuppet 😞
                          Nochmal bitte

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mrMuppet @AlCalzone last edited by

                            @AlCalzone https://pastebin.com/84MNQsnu

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mrMuppet last edited by

                              Hab gerade mal reingeschaut: In Zeile 770 steht was von "su" . Das kommt doch von Linux und das gibt es doch IMO bei FreeBSD nicht, oder?

                              AlCalzone 1 Reply Last reply Reply Quote 0
                              • AlCalzone
                                AlCalzone Developer @mrMuppet last edited by

                                @mrMuppet Doch su müsste es geben. Anscheinend wird NODECMD nicht befüllt, somit versucht diese Zeile eine js-Datei mit Bash auszuführen. Nächster Versuch bitte 😉

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mrMuppet @mrMuppet last edited by

                                  @mrMuppet https://pastebin.com/6sQ6RWRG

                                  AlCalzone 1 Reply Last reply Reply Quote 0
                                  • AlCalzone
                                    AlCalzone Developer @mrMuppet last edited by

                                    @mrMuppet Was passiert, wenn du den Befehl von Hand ausführst?

                                    su -m iobroker -s /usr/local/bin/bash -c '/usr/local/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start'
                                    
                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mrMuppet @AlCalzone last edited by

                                      @AlCalzone keine Ahnung was da genau passiert ist:

                                      root@iobroker_v2:~ # su -m iobroker -s /usr/local/bin/bash -c '/usr/local/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start'
                                      iobroker@iobroker_v2:~ %
                                      
                                      AlCalzone 1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer @mrMuppet last edited by

                                        @mrMuppet Der hat dich als User iobroker angemeldet und in diesem Kontext iobroker gestartet. Also genau was es tun soll... Warum die Fehlermeldung kommt ist mir schleierhaft.

                                        Ich bin übers Wochenende erst mal unterwegs. Kannst du mir solange beschreiben, wie du das Jail aufsetzt? Oder gleich ein Image ohne ioBroker drauf erstellen? Dann versuche ich das in VirtualBox zu reproduzieren. Ist einfacher wenn man selbst testet.

                                        H 1 Reply Last reply Reply Quote 0
                                        • M
                                          mrMuppet last edited by

                                          FreeNAS verwendet den Jail-manager "iocage". Deshalb baue ich meine Jails über den Befehl:

                                          echo '{"pkgs":["iobroker","ca_root_nss"]}' > /tmp/pkg.json
                                          iocage create -n "iobroker" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|192.168.178.167/24" defaultrouter="192.168.178.1" vnet="on" allow_raw_sockets="1" boot="on" 
                                          rm /tmp/pkg.json
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            Happz0r @AlCalzone last edited by

                                            @AlCalzone gibt es hier einen neuen Stand? Ich habe leider auch die oben geschilderten Probleme 😞

                                            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

                                            679
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            freebsd freenas installer
                                            6
                                            74
                                            5108
                                            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