Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [SOLVED] Instal.auf FreeBSD funktioniert nicht.

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    13
    1
    156

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

[SOLVED] Instal.auf FreeBSD funktioniert nicht.

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
freenasfreebsdinstaller
74 Beiträge 6 Kommentatoren 8.5k Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • M mrMuppet
    root@iobroker_v2:/ # ls -la /usr/local/bin
    total 84788
    drwxr-xr-x    2 root  wheel       194 May  7 21:13 .
    drwxr-xr-x   14 root  wheel        14 May  7 21:12 ..
    lrwxr-xr-x    1 root  wheel         6 Apr  4 02:35 2to3 -> 2to3-2
    lrwxr-xr-x    1 root  wheel         8 Apr  2 21:32 2to3-2 -> 2to3-2.7
    -rwxr-xr-x    1 root  wheel       101 Apr  2 03:16 2to3-2.7
    -rwxr-xr-x    1 root  wheel       101 Apr  2 03:17 2to3-3.6
    -r-xr-xr-x    1 root  wheel     20384 Apr  2 03:14 acountry
    -r-xr-xr-x    1 root  wheel   5279360 Apr  2 03:46 addr2line
    -r-xr-xr-x    1 root  wheel     20816 Apr  2 03:14 adig
    -r-xr-xr-x    1 root  wheel     11384 Apr  2 03:14 ahost
    -r-xr-xr-x    2 root  wheel   5309416 Apr  2 03:46 ar
    -r-xr-xr-x    2 root  wheel   6053840 Apr  2 03:46 as
    -rwxr-xr-x    1 root  wheel     24120 Apr  2 08:06 avahi-browse
    lrwxr-xr-x    1 root  wheel        12 Apr  2 08:06 avahi-browse-domains -> avahi-browse
    -rwxr-xr-x    1 root  wheel     17336 Apr  2 08:06 avahi-publish
    lrwxr-xr-x    1 root  wheel        13 Apr  2 08:06 avahi-publish-address -> avahi-publish
    lrwxr-xr-x    1 root  wheel        13 Apr  2 08:06 avahi-publish-service -> avahi-publish
    -rwxr-xr-x    1 root  wheel     14440 Apr  2 08:06 avahi-resolve
    lrwxr-xr-x    1 root  wheel        13 Apr  2 08:06 avahi-resolve-address -> avahi-resolve
    lrwxr-xr-x    1 root  wheel        13 Apr  2 08:06 avahi-resolve-host-name -> avahi-resolve
    -rwxr-xr-x    1 root  wheel     11472 Apr  2 08:06 avahi-set-host-name
    -rwxr-xr-x    1 root  wheel   1157192 Apr  2 03:26 bash
    -r-xr-xr-x    1 root  wheel      6774 Apr  2 03:26 bashbug
    -rwxr-xr-x    4 root  wheel   1052008 Apr 28 07:06 c++8
    -r-xr-xr-x    1 root  wheel   5281696 Apr  2 03:46 c++filt
    -rwxr-xr-x    1 root  wheel     15100 Apr  2 03:20 corelist
    -rwxr-xr-x    1 root  wheel      8168 Apr  2 03:20 cpan
    -rwxr-xr-x    1 root  wheel   1048456 Apr 28 07:06 cpp8
    -rwxr-xr-x    1 root  wheel    192528 Apr  2 03:27 curl
    -r-xr-xr-x    1 root  wheel      7334 Apr  2 03:27 curl-config
    -r-xr-xr-x    1 root  wheel     69576 Feb  7 02:07 cvsps
    -rwxr-xr-x    1 root  wheel    244744 Apr  2 03:14 cvtsudoers
    -rwxr-xr-x    1 root  wheel     91560 Apr  2 03:33 dbus-binding-tool
    -rwxr-xr-x    1 root  wheel     11360 Apr  2 03:31 dbus-cleanup-sockets
    -rwxr-xr-x    1 root  wheel    196096 Apr  2 03:31 dbus-daemon
    -rwxr-xr-x    1 root  wheel     25672 Apr  2 03:31 dbus-launch
    -rwxr-xr-x    1 root  wheel     21640 Apr  2 03:31 dbus-monitor
    -rwxr-xr-x    1 root  wheel     11368 Apr  2 03:31 dbus-run-session
    -rwxr-xr-x    1 root  wheel     22776 Apr  2 03:31 dbus-send
    -rwxr-xr-x    1 root  wheel     18616 Apr  2 03:31 dbus-test-tool
    -rwxr-xr-x    1 root  wheel     10472 Apr  2 03:31 dbus-update-activation-environment
    -rwxr-xr-x    1 root  wheel      7840 Apr  2 03:31 dbus-uuidgen
    -rwxr-xr-x    1 root  wheel     24640 Apr 20 03:25 derb
    -r-xr-xr-x    1 root  wheel   2381144 Apr  2 03:46 dwp
    -r-xr-xr-x    1 root  wheel     37200 Apr  2 03:46 elfedit
    -rwxr-xr-x    1 root  wheel     42056 Apr  2 03:20 enc2xs
    -rwxr-xr-x    1 root  wheel      3078 Apr  2 03:20 encguess
    -rwxr-xr-x    1 root  wheel     40432 Feb  7 02:07 envsubst
    -r-xr-xr-x    1 root  wheel     27720 Feb  7 05:14 funzip
    lrwxr-xr-x    1 root  wheel         4 Apr 28 07:13 g++ -> g++8
    -rwxr-xr-x    4 root  wheel   1052008 Apr 28 07:06 g++8
    -r-xr-xr-x    1 root  wheel      2269 Apr  2 08:02 g-ir-annotation-tool
    -rwxr-xr-x    1 root  wheel    169472 Apr  2 08:02 g-ir-compiler
    -rwxr-xr-x    1 root  wheel     37296 Apr  2 08:02 g-ir-generate
    -rwxr-xr-x    1 root  wheel      8392 Apr  2 08:02 g-ir-inspect
    -r-xr-xr-x    1 root  wheel      2260 Apr  2 08:02 g-ir-scanner
    -rwxr-xr-x    1 root  wheel     16064 Apr  2 03:33 gapplication
    lrwxr-xr-x    1 root  wheel         4 Apr 28 07:13 gcc -> gcc8
    -rwxr-xr-x    2 root  wheel     26160 Apr 28 07:06 gcc-ar8
    -rwxr-xr-x    2 root  wheel     26128 Apr 28 07:06 gcc-nm8
    -rwxr-xr-x    2 root  wheel     26128 Apr 28 07:06 gcc-ranlib8
    -rwxr-xr-x    3 root  wheel   1047912 Apr 28 07:06 gcc8
    -rwxr-xr-x    1 root  wheel    508240 Apr 28 07:06 gcov-dump8
    -rwxr-xr-x    1 root  wheel    532880 Apr 28 07:06 gcov-tool8
    -rwxr-xr-x    1 root  wheel    660880 Apr 28 07:06 gcov8
    -rwxr-xr-x    1 root  wheel     20080 Feb  7 02:13 gdbm_dump
    -rwxr-xr-x    1 root  wheel     22272 Feb  7 02:13 gdbm_load
    -rwxr-xr-x    1 root  wheel     99088 Feb  7 02:13 gdbmtool
    -rwxr-xr-x    1 root  wheel     38584 Apr  2 03:33 gdbus
    -r-xr-xr-x    1 root  wheel      2065 Apr  2 03:33 gdbus-codegen
    -rwxr-xr-x    1 root  wheel     12264 Apr 20 03:25 genbrk
    -rwxr-xr-x    1 root  wheel     10456 Apr 20 03:25 gencfu
    -rwxr-xr-x    1 root  wheel     20232 Apr 20 03:25 gencnval
    -rwxr-xr-x    1 root  wheel     24408 Apr 20 03:25 gendict
    -rwxr-xr-x    1 root  wheel    163800 Apr 20 03:25 genrb
    -rwxr-xr-x    1 root  wheel     40416 Feb  7 02:07 gettext
    -r-xr-xr-x    1 root  wheel      4629 Feb  7 02:07 gettext.sh
    lrwxr-xr-x    1 root  wheel         9 Apr 28 07:13 gfortran -> gfortran8
    -rwxr-xr-x    2 root  wheel   1052008 Apr 28 07:06 gfortran8
    -rwxr-xr-x    1 root  wheel     70360 Apr  2 03:33 gio
    -rwxr-xr-x    1 root  wheel     10248 Apr  2 03:33 gio-querymodules
    -rwxr-xr-x  127 root  wheel   2568208 Apr  2 03:35 git
    -rwxr-xr-x    2 root  wheel    162751 Apr  2 03:35 git-cvsserver
    -r-xr-xr-x    1 root  wheel    156977 Apr  2 03:35 git-p4.py
    -rwxr-xr-x  127 root  wheel   2568208 Apr  2 03:35 git-receive-pack
    -rwxr-xr-x    2 root  wheel   1461608 Apr  2 03:35 git-shell
    -rwxr-xr-x  127 root  wheel   2568208 Apr  2 03:35 git-upload-archive
    -rwxr-xr-x  127 root  wheel   2568208 Apr  2 03:35 git-upload-pack
    -rwxr-xr-x    1 root  wheel     37880 Apr  2 03:33 glib-compile-resources
    -rwxr-xr-x    1 root  wheel     42336 Apr  2 03:33 glib-compile-schemas
    -r-xr-xr-x    1 root  wheel     40933 Apr  2 03:33 glib-genmarshal
    -r-xr-xr-x    1 root  wheel      5381 Apr  2 03:33 glib-gettextize
    -r-xr-xr-x    1 root  wheel     27808 Apr  2 03:33 glib-mkenums
    -r-xr-xr-x    1 root  wheel    221600 Feb  7 02:08 gmake
    -rwxr-xr-x    1 root  wheel      8736 Apr  2 03:33 gobject-query
    -r-xr-xr-x    1 root  wheel   5344720 Apr  2 03:46 gprof
    -rwxr-xr-x    1 root  wheel     15832 Apr  2 03:33 gresource
    -rwxr-xr-x    1 root  wheel     21880 Apr  2 03:33 gsettings
    -rwxr-xr-x    1 root  wheel     20728 Apr  2 03:33 gtester
    -rwxr-xr-x    1 root  wheel     18839 Apr  2 03:33 gtester-report
    -rwxr-xr-x    1 root  wheel     29236 Apr  2 03:20 h2ph
    -rwxr-xr-x    1 root  wheel     60878 Apr  2 03:20 h2xs
    -rwxr-xr-x    1 root  wheel     24912 Feb  7 02:07 iconv
    -r-xr-xr-x    1 root  wheel     22122 Apr 20 03:25 icu-config
    -rwxr-xr-x    1 root  wheel      9048 Apr 20 03:25 icuinfo
    lrwxr-xr-x    1 root  wheel         5 Apr  4 02:35 idle -> idle2
    lrwxr-xr-x    1 root  wheel         7 Apr  2 21:32 idle2 -> idle2.7
    -rwxr-xr-x    1 root  wheel        99 Apr  2 03:16 idle2.7
    -rwxr-xr-x    1 root  wheel        99 Apr  2 03:17 idle3.6
    -rwxr-xr-x    1 root  wheel     11496 Feb  7 02:07 indexinfo
    -rwxr-xr-x    1 root  wheel      4299 Apr  2 03:20 instmodsh
    lrwxr-xr-x    1 root  wheel        22 May  7 21:13 iob -> /opt/iobroker/iobroker
    lrwxr-xr-x    1 root  wheel        22 May  7 21:13 iobroker -> /opt/iobroker/iobroker
    -rwxr-xr-x    1 root  wheel      4391 Apr  2 03:20 json_pp
    -r-xr-xr-x    4 root  wheel  11461040 Apr  2 03:46 ld
    -r-xr-xr-x    4 root  wheel  11461040 Apr  2 03:46 ld.bfd
    -r-xr-xr-x    2 root  wheel   4478752 Apr  2 03:46 ld.gold
    -rwxr-xr-x    1 root  wheel     15787 Apr  2 03:20 libnetcfg
    -rwxr-xr-x    1 root  wheel     53536 Apr 20 03:25 makeconv
    -rwxr-xr-x    1 root  wheel     40424 Feb  7 02:07 ngettext
    -r-xr-xr-x    2 root  wheel   5291408 Apr  2 03:46 nm
    -rwxr-xr-x    1 root  wheel  22650048 Apr 20 04:06 node
    lrwxr-xr-x    1 root  wheel        38 Mar  7 16:09 npm -> ../lib/node_modules/npm/bin/npm-cli.js
    lrwxr-xr-x    1 root  wheel        38 Mar  7 16:09 npx -> ../lib/node_modules/npm/bin/npx-cli.js
    -r-xr-xr-x    2 root  wheel   5421952 Apr  2 03:46 objcopy
    -r-xr-xr-x    2 root  wheel  18191336 Apr  2 03:46 objdump
    -r-xr-xr-x    1 root  wheel      2367 Apr  2 03:17 pcre-config
    -rwxr-xr-x    1 root  wheel     38144 Apr  2 03:17 pcregrep
    -rwxr-xr-x    1 root  wheel    110424 Apr  2 03:17 pcretest
    -rwxr-xr-x    1 root  wheel      7800 Apr  2 03:21 perl
    lrwxr-xr-x    1 root  wheel         4 Apr  2 03:21 perl5 -> perl
    lrwxr-xr-x    1 root  wheel         4 Apr  2 03:21 perl5.28.1 -> perl
    -rwxr-xr-x    2 root  wheel     46374 Apr  2 03:20 perlbug
    -rwxr-xr-x    1 root  wheel       274 Apr  2 03:20 perldoc
    -rwxr-xr-x    1 root  wheel     10831 Apr  2 03:20 perlivp
    -rwxr-xr-x    2 root  wheel     46374 Apr  2 03:20 perlthanks
    -rwxr-xr-x    1 root  wheel      8369 Apr  2 03:20 piconv
    -rwxr-xr-x    1 root  wheel     45624 Apr 20 03:25 pkgdata
    -rwxr-xr-x    1 root  wheel      4545 Apr  2 03:20 pl2pm
    -rwxr-xr-x    1 root  wheel      4146 Apr  2 03:20 pod2html
    -rwxr-xr-x    1 root  wheel     15225 Apr  2 03:20 pod2man
    -rwxr-xr-x    1 root  wheel     11122 Apr  2 03:20 pod2text
    -rwxr-xr-x    1 root  wheel      3954 Apr  2 03:20 pod2usage
    -rwxr-xr-x    1 root  wheel      3664 Apr  2 03:20 podchecker
    -rwxr-xr-x    1 root  wheel      2533 Apr  2 03:20 podselect
    -rwxr-xr-x    1 root  wheel     13667 Apr  2 03:20 prove
    -rwxr-xr-x    1 root  wheel      3561 Apr  2 03:20 ptar
    -rwxr-xr-x    1 root  wheel      2640 Apr  2 03:20 ptardiff
    -rwxr-xr-x    1 root  wheel      4404 Apr  2 03:20 ptargrep
    lrwxr-xr-x    1 root  wheel         6 Apr  4 02:35 pydoc -> pydoc2
    lrwxr-xr-x    1 root  wheel         8 Apr  2 21:32 pydoc2 -> pydoc2.7
    -rwxr-xr-x    1 root  wheel        84 Apr  2 03:16 pydoc2.7
    -rwxr-xr-x    1 root  wheel        84 Apr  2 03:17 pydoc3.6
    lrwxr-xr-x    1 root  wheel         7 Apr  4 02:35 python -> python2
    lrwxr-xr-x    1 root  wheel        14 Apr  4 02:35 python-config -> python2-config
    lrwxr-xr-x    1 root  wheel         9 Apr  2 21:32 python2 -> python2.7
    lrwxr-xr-x    1 root  wheel        16 Apr  2 21:32 python2-config -> python2.7-config
    -r-xr-xr-x    1 root  wheel      5600 Apr  2 03:15 python2.7
    -r-xr-xr-x    1 root  wheel      1769 Apr  2 03:16 python2.7-config
    -r-xr-xr-x    2 root  wheel      7304 Apr  2 03:17 python3.6
    lrwxr-xr-x    1 root  wheel        17 Apr  2 03:17 python3.6-config -> python3.6m-config
    -r-xr-xr-x    2 root  wheel      7304 Apr  2 03:17 python3.6m
    -r-xr-xr-x    1 root  wheel      3120 Apr  2 03:17 python3.6m-config
    -rwxr-xr-x    1 root  wheel       441 Apr  2 03:17 pyvenv-3.6
    -r-xr-xr-x    2 root  wheel   5309432 Apr  2 03:46 ranlib
    lrwxr-xr-x    1 root  wheel         4 Apr  2 03:26 rbash -> bash
    -r-xr-xr-x    2 root  wheel    633248 Apr  2 03:46 readelf
    -rwxr-xr-x    1 root  wheel      9988 Apr  2 03:20 shasum
    -r-xr-xr-x    1 root  wheel   5280816 Apr  2 03:46 size
    -rwxr-xr-x    1 root  wheel     19162 Apr  2 03:20 splain
    -r-xr-xr-x    1 root  wheel   5280480 Apr  2 03:46 strings
    -r-xr-xr-x    2 root  wheel   5421968 Apr  2 03:46 strip
    -rwsr-xr-x    1 root  wheel    128872 Apr  2 03:14 sudo
    lrwxr-xr-x    1 root  wheel         4 Apr  2 03:14 sudoedit -> sudo
    -rwxr-xr-x    1 root  wheel     57376 Apr  2 03:14 sudoreplay
    -rwxr-xr-x    1 root  wheel     49504 Apr 20 03:25 uconv
    -r-xr-xr-x    1 root  wheel    154560 Feb  7 05:14 unzip
    -r-xr-xr-x    1 root  wheel     70304 Feb  7 05:14 unzipsfx
    -rwxr-xr-x    4 root  wheel   1052008 Apr 28 07:06 x86_64-portbld-freebsd11.2-c++8
    -rwxr-xr-x    4 root  wheel   1052008 Apr 28 07:06 x86_64-portbld-freebsd11.2-g++8
    -rwxr-xr-x    3 root  wheel   1047912 Apr 28 07:06 x86_64-portbld-freebsd11.2-gcc-8.3.0
    -rwxr-xr-x    2 root  wheel     26160 Apr 28 07:06 x86_64-portbld-freebsd11.2-gcc-ar8
    -rwxr-xr-x    2 root  wheel     26128 Apr 28 07:06 x86_64-portbld-freebsd11.2-gcc-nm8
    -rwxr-xr-x    2 root  wheel     26128 Apr 28 07:06 x86_64-portbld-freebsd11.2-gcc-ranlib8
    -rwxr-xr-x    3 root  wheel   1047912 Apr 28 07:06 x86_64-portbld-freebsd11.2-gcc8
    -rwxr-xr-x    2 root  wheel   1052008 Apr 28 07:06 x86_64-portbld-freebsd11.2-gfortran8
    -r-xr-xr-x    1 root  wheel      1735 Apr  2 03:15 xml2-config
    -rwxr-xr-x    1 root  wheel     15984 Apr  2 03:15 xmlcatalog
    -rwxr-xr-x    1 root  wheel     61384 Apr  2 03:15 xmllint
    -rwxr-xr-x    1 root  wheel     28480 Feb  7 02:07 xmlwf
    -rwxr-xr-x    1 root  wheel      5176 Apr  2 03:20 xsubpp
    -rwxr-xr-x    1 root  wheel     48509 Apr  2 03:20 zipdetails
    -r-xr-xr-x    1 root  wheel      2953 Feb  7 05:14 zipgrep
    lrwxr-xr-x    1 root  wheel         5 Feb  7 05:14 zipinfo -> unzip
    
    
    AlCalzoneA Offline
    AlCalzoneA Offline
    AlCalzone
    Developer
    schrieb am zuletzt editiert von AlCalzone
    #14

    Danke, das sieht soweit alles gut aus.
    Kannst du bitte mal zum Testen die Executable bearbeiten:

    nano /opt/iobroker/iobroker
    

    Und die erste Zeile ändern zu

    #!/usr/local/bin/bash
    

    Danach funktioniert iobroker start hoffentlich

    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

    M 1 Antwort Letzte Antwort
    0
    • AlCalzoneA AlCalzone

      Danke, das sieht soweit alles gut aus.
      Kannst du bitte mal zum Testen die Executable bearbeiten:

      nano /opt/iobroker/iobroker
      

      Und die erste Zeile ändern zu

      #!/usr/local/bin/bash
      

      Danach funktioniert iobroker start hoffentlich

      M Offline
      M Offline
      mrMuppet
      schrieb am zuletzt editiert von
      #15

      @AlCalzone

      root@iobroker_v2:/ # iobroker start
      Starting iobroker controller daemon...
      iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
      Error: Failed to write pidfile (EACCES)
      
      
      

      ioBroker auf NUC (Celeron mit Ubuntu-Server)

      Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

      AlCalzoneA 1 Antwort Letzte Antwort
      0
      • M mrMuppet

        @AlCalzone

        root@iobroker_v2:/ # iobroker start
        Starting iobroker controller daemon...
        iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
        Error: Failed to write pidfile (EACCES)
        
        
        
        AlCalzoneA Offline
        AlCalzoneA Offline
        AlCalzone
        Developer
        schrieb am zuletzt editiert von
        #16

        @mrMuppet Schon besser. Jetzt stimmen nur die Rechte nicht mehr, weil du als root die Module installiert hast :laughing:
        Ich passe mal den Installer an, dann darfst du wieder testen. Dauert ein paar Minuten, kannst ja schon mal das System neu aufsetzen.

        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

        1 Antwort Letzte Antwort
        0
        • M Offline
          M Offline
          mrMuppet
          schrieb am zuletzt editiert von
          #17

          Ok. Wird gemacht. Ich installiere schon mal die Pakete wie oben beschrieben.

          ioBroker auf NUC (Celeron mit Ubuntu-Server)

          Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

          1 Antwort Letzte Antwort
          0
          • AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            schrieb am zuletzt editiert von
            #18

            Ok, neue Version ist zum Testen online. Bis sie gemerged ist, kannst du diese per

            curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
            

            installieren.

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            M 1 Antwort Letzte Antwort
            0
            • AlCalzoneA AlCalzone

              Ok, neue Version ist zum Testen online. Bis sie gemerged ist, kannst du diese per

              curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
              

              installieren.

              M Offline
              M Offline
              mrMuppet
              schrieb am zuletzt editiert von
              #19

              @AlCalzone Super! Danke. Ich melde mich sobald ich soweit bin. Aktuell hänge ich bei Paket 4/38 ... dauert also noch ... (vielleicht 30 min.?)

              ioBroker auf NUC (Celeron mit Ubuntu-Server)

              Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

              AlCalzoneA 1 Antwort Letzte Antwort
              0
              • M mrMuppet

                @AlCalzone Super! Danke. Ich melde mich sobald ich soweit bin. Aktuell hänge ich bei Paket 4/38 ... dauert also noch ... (vielleicht 30 min.?)

                AlCalzoneA Offline
                AlCalzoneA Offline
                AlCalzone
                Developer
                schrieb am zuletzt editiert von
                #20

                @mrMuppet Prima, kein Stress...

                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                1 Antwort Letzte Antwort
                0
                • M Offline
                  M Offline
                  mrMuppet
                  schrieb am zuletzt editiert von
                  #21

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

                  @mrMuppet Prima, kein Stress...

                  Das war es noch nicht ganz:

                  root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                  
                  ==========================================================================
                  
                      Welcome to the ioBroker installer!
                      Installer version: 2019-05-21
                  
                      You might need to enter your password a couple of times.
                  
                  ==========================================================================
                  
                  
                  ==========================================================================
                      Installing prerequisites (1/4)
                  ==========================================================================
                  
                  Installed sudo
                  Installed unzip
                  Installed avahi-libdns
                  Installed nss_mdns
                  Installed gcc
                  dbus_enable:  -> YES
                  avahi_daemon_enable:  -> YES
                  Starting dbus.
                  Starting avahi-daemon.
                  
                  ==========================================================================
                      Creating ioBroker user and directory (2/4)
                  ==========================================================================
                  
                  tty:*:4
                  Directory /opt/iobroker created
                  
                  ==========================================================================
                      Installing ioBroker (3/4)
                  ==========================================================================
                  
                  ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                  inline void SetNonBlock(int fd) {
                              ^
                  ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                  inline void SetCloExec(int fd) {
                              ^
                  2 warnings generated.
                  ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(2, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(1, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(1, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(1, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(1, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(2, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(2, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    data->callback.Call(1, argv);
                                   ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  8 warnings generated.
                  ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                        [-Wuninitialized]
                    data->baudRate = outbaud;
                                     ^~~~~~~
                  ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                        warning
                    int outbaud;
                               ^
                                = 0
                  1 warning generated.
                  ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                    obj->callback.Call(2, argv);
                                  ^
                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                    NAN_DEPRECATED inline v8::Local<v8::Value>
                    ^
                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                         ^
                  1 warning generated.
                  
                  ==========================================================================
                      Finalizing installation (4/4)
                  ==========================================================================
                  
                  Enabling autostart...
                  iobroker_enable:  -> YES
                  platform: Undefined variable.
                  Autostart enabled!
                  root@iobroker_v2:~ # iobroker start
                  Starting iobroker controller daemon...
                  iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
                  Error: Failed to write pidfile (EACCES)
                  
                  

                  ioBroker auf NUC (Celeron mit Ubuntu-Server)

                  Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

                  AlCalzoneA 1 Antwort Letzte Antwort
                  0
                  • M mrMuppet

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

                    @mrMuppet Prima, kein Stress...

                    Das war es noch nicht ganz:

                    root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                    
                    ==========================================================================
                    
                        Welcome to the ioBroker installer!
                        Installer version: 2019-05-21
                    
                        You might need to enter your password a couple of times.
                    
                    ==========================================================================
                    
                    
                    ==========================================================================
                        Installing prerequisites (1/4)
                    ==========================================================================
                    
                    Installed sudo
                    Installed unzip
                    Installed avahi-libdns
                    Installed nss_mdns
                    Installed gcc
                    dbus_enable:  -> YES
                    avahi_daemon_enable:  -> YES
                    Starting dbus.
                    Starting avahi-daemon.
                    
                    ==========================================================================
                        Creating ioBroker user and directory (2/4)
                    ==========================================================================
                    
                    tty:*:4
                    Directory /opt/iobroker created
                    
                    ==========================================================================
                        Installing ioBroker (3/4)
                    ==========================================================================
                    
                    ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                    inline void SetNonBlock(int fd) {
                                ^
                    ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                    inline void SetCloExec(int fd) {
                                ^
                    2 warnings generated.
                    ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(2, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(1, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(1, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(1, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(1, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(2, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(2, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      data->callback.Call(1, argv);
                                     ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    8 warnings generated.
                    ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                          [-Wuninitialized]
                      data->baudRate = outbaud;
                                       ^~~~~~~
                    ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                          warning
                      int outbaud;
                                 ^
                                  = 0
                    1 warning generated.
                    ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                      obj->callback.Call(2, argv);
                                    ^
                    ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                      NAN_DEPRECATED inline v8::Local<v8::Value>
                      ^
                    ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                    # define NAN_DEPRECATED __attribute__((deprecated))
                                                           ^
                    1 warning generated.
                    
                    ==========================================================================
                        Finalizing installation (4/4)
                    ==========================================================================
                    
                    Enabling autostart...
                    iobroker_enable:  -> YES
                    platform: Undefined variable.
                    Autostart enabled!
                    root@iobroker_v2:~ # iobroker start
                    Starting iobroker controller daemon...
                    iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
                    Error: Failed to write pidfile (EACCES)
                    
                    
                    AlCalzoneA Offline
                    AlCalzoneA Offline
                    AlCalzone
                    Developer
                    schrieb am zuletzt editiert von
                    #22

                    @mrMuppet Ok gib mir ein paar Minuten

                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                    1 Antwort Letzte Antwort
                    0
                    • AlCalzoneA Offline
                      AlCalzoneA Offline
                      AlCalzone
                      Developer
                      schrieb am zuletzt editiert von
                      #23

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

                      EACCES

                      Was sagt ls -la /opt/iobroker/node_modules/iobroker.js-controller/lib ?

                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                      M 1 Antwort Letzte Antwort
                      0
                      • AlCalzoneA Offline
                        AlCalzoneA Offline
                        AlCalzone
                        Developer
                        schrieb am zuletzt editiert von
                        #24

                        Kann es sein, dass ioBroker nach der Installation bereits läuft?

                        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                        1 Antwort Letzte Antwort
                        0
                        • AlCalzoneA AlCalzone

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

                          EACCES

                          Was sagt ls -la /opt/iobroker/node_modules/iobroker.js-controller/lib ?

                          M Offline
                          M Offline
                          mrMuppet
                          schrieb am zuletzt editiert von
                          #25

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

                          ls -la /opt/iobroker/node_modules/iobroker.js-controller/lib
                          Läuft noch nicht.

                          root@iobroker_v2:~ # ls -la /opt/iobroker/node_modules/iobroker.js-controller/lib
                          total 382
                          drwxr-xr-x  9 root  wheel      28 May 21 18:05 .
                          drwxr-xr-x  6 root  wheel      17 May 21 18:06 ..
                          -rw-r--r--  1 root  wheel  225379 Oct 26  1985 adapter.js
                          -rw-r--r--  1 root  wheel    2012 Oct 26  1985 dbdump.js
                          -rw-r--r--  1 root  wheel    1828 Oct 26  1985 defaultObjs.js
                          drwxr-xr-x  2 root  wheel       3 May 21 18:05 img
                          -rw-r--r--  1 root  wheel    9114 Oct 26  1985 letsencrypt.js
                          -rw-r--r--  1 root  wheel   26624 Oct 26  1985 letsencryptStore.js
                          -rw-r--r--  1 root  wheel   11236 Oct 26  1985 logger.js
                          -rw-r--r--  1 root  wheel    7177 Oct 26  1985 multihostClient.js
                          -rw-r--r--  1 root  wheel    9174 Oct 26  1985 multihostServer.js
                          drwxr-xr-x  2 root  wheel       5 May 21 18:05 objects
                          -rw-r--r--  1 root  wheel     531 Oct 26  1985 objects.js
                          -rw-r--r--  1 root  wheel    2644 Oct 26  1985 password.js
                          -rw-r--r--  1 root  wheel    4544 Oct 26  1985 preinstall_check.js
                          -rw-r--r--  1 root  wheel    1755 Oct 26  1985 renewal.conf.tpl
                          -rw-r--r--  1 root  wheel    6026 Oct 26  1985 restart.js
                          drwxr-xr-x  2 root  wheel       3 May 21 18:05 scripts
                          -rw-r--r--  1 root  wheel    1809 Oct 26  1985 session.js
                          drwxr-xr-x  2 root  wheel      14 May 21 18:05 setup
                          -rw-r--r--  1 root  wheel  154618 Oct 26  1985 setup.js
                          drwxr-xr-x  2 root  wheel       5 May 21 18:05 states
                          -rw-r--r--  1 root  wheel     523 Oct 26  1985 states.js
                          -rw-r--r--  1 root  wheel   47344 Oct 26  1985 tools.js
                          -rw-r--r--  1 root  wheel    3808 Oct 26  1985 uploadFiles.js
                          drwxr-xr-x  2 root  wheel       3 May 21 18:05 vis
                          drwxr-xr-x  3 root  wheel       3 May 21 18:05 www
                          -rw-r--r--  1 root  wheel   13190 Oct 26  1985 zipFiles.js
                          
                          

                          ioBroker auf NUC (Celeron mit Ubuntu-Server)

                          Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

                          1 Antwort Letzte Antwort
                          0
                          • AlCalzoneA Offline
                            AlCalzoneA Offline
                            AlCalzone
                            Developer
                            schrieb am zuletzt editiert von
                            #26

                            Hmm, da werden die Berechtigungen nicht richtig gesetzt... Evtl hat das mit der Meldung oben zu tun "unknown variable platform". Ich hab mal den Debug-Mode aktiviert, um (hoffentlich) zu sehen was los ist, bitte nochmal installieren (ohne System neu aufsetzen):

                            rm -rf /opt/iobroker
                            curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                            

                            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                            M 1 Antwort Letzte Antwort
                            0
                            • AlCalzoneA AlCalzone

                              Hmm, da werden die Berechtigungen nicht richtig gesetzt... Evtl hat das mit der Meldung oben zu tun "unknown variable platform". Ich hab mal den Debug-Mode aktiviert, um (hoffentlich) zu sehen was los ist, bitte nochmal installieren (ohne System neu aufsetzen):

                              rm -rf /opt/iobroker
                              curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                              
                              M Offline
                              M Offline
                              mrMuppet
                              schrieb am zuletzt editiert von
                              #27

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

                              rm -rf /opt/iobroker
                              curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -

                              root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                              + INSTALLER_VERSION=2019-05-21
                              + [[ 0 -eq 0 ]]
                              + IS_ROOT=true
                              + ROOT_GROUP=root
                              ++ uname
                              + unamestr=FreeBSD
                              + '[' FreeBSD = Linux ']'
                              + '[' FreeBSD = Darwin ']'
                              + '[' FreeBSD = FreeBSD ']'
                              + platform=freebsd
                              + ROOT_GROUP=wheel
                              + IOB_DIR=/opt/iobroker
                              + '[' freebsd = osx ']'
                              + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                              + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                              + INSTALL_TARGET=iobroker
                              + IOB_USER=iobroker
                              + '[' freebsd = osx ']'
                              + test -t 1
                              ++ which tput
                              ++ tput colors
                              + ncolors=94
                              + test -n 94
                              + test 94 -ge 8
                              ++ tput cols
                              + termcols=94
                              ++ tput bold
                              + bold=
                              ++ tput smul
                              + underline=
                              ++ tput smso
                              + standout=
                              ++ tput sgr0
                              + normal=
                              ++ tput setaf 0
                              + black=''
                              ++ tput setaf 1
                              + red=''
                              ++ tput setaf 2
                              + green=''
                              ++ tput setaf 3
                              + yellow=''
                              ++ tput setaf 4
                              + blue=''
                              ++ tput setaf 5
                              + magenta=''
                              ++ tput setaf 6
                              + cyan=''
                              ++ tput setaf 7
                              + white=''
                              + HLINE===========================================================================
                              + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                              + title='Welcome to the ioBroker installer!'
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + echo '    Welcome to the ioBroker installer!'
                                  Welcome to the ioBroker installer!
                              + for text in "${@:2}"
                              + echo '    Installer version: 2019-05-21'
                                  Installer version: 2019-05-21
                              + for text in "${@:2}"
                              + echo '    '
                              
                              + for text in "${@:2}"
                              + echo '    You might need to enter your password a couple of times.'
                                  You might need to enter your password a couple of times.
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + export AUTOMATED_INSTALLER=true
                              + AUTOMATED_INSTALLER=true
                              + NUM_STEPS=4
                              + print_step 'Installing prerequisites' 1 4
                              + stepname='Installing prerequisites'
                              + stepnr=1
                              + steptotal=4
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo '    Installing prerequisites (1/4)'
                                  Installing prerequisites (1/4)
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + case "$platform" in
                              + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                              + declare -a packages
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd sudo
                              + package=sudo
                              + pkg info sudo
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd git
                              + package=git
                              + pkg info git
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd curl
                              + package=curl
                              + pkg info curl
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd bash
                              + package=bash
                              + pkg info bash
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd unzip
                              + package=unzip
                              + pkg info unzip
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd avahi-libdns
                              + package=avahi-libdns
                              + pkg info avahi-libdns
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd dbus
                              + package=dbus
                              + pkg info dbus
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd nss_mdns
                              + package=nss_mdns
                              + pkg info nss_mdns
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd gcc
                              + package=gcc
                              + pkg info gcc
                              + for pkg in "${packages[@]}"
                              + install_package_freebsd python
                              + package=python
                              + pkg info python
                              + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                              ln: /usr/include/dns_sd.h: File exists
                              + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                              + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                              + sysrc -f /etc/rc.conf dbus_enable=YES
                              dbus_enable: YES -> YES
                              + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                              avahi_daemon_enable: YES -> YES
                              + service dbus start
                              dbus already running?  (pid=55380).
                              + service avahi-daemon start
                              avahi_daemon already running?  (pid=55387).
                              + print_step 'Creating ioBroker user and directory' 2 4
                              + stepname='Creating ioBroker user and directory'
                              + stepnr=2
                              + steptotal=4
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo '    Creating ioBroker user and directory (2/4)'
                                  Creating ioBroker user and directory (2/4)
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + '[' freebsd = linux ']'
                              + '[' freebsd = freebsd ']'
                              + create_user_freebsd iobroker
                              + username=iobroker
                              + id iobroker
                              + '[' 0 -ne 0 ']'
                              + groups=(audio bluetooth dialout gpio i2c redis tty)
                              + declare -a groups
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group audio
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group bluetooth
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group dialout
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group gpio
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group i2c
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group redis
                              + for grp in "${groups[@]}"
                              + '[' true = true ']'
                              + getent group tty
                              tty:*:4:iobroker
                              + pw group mod tty -m iobroker
                              + '[' true = true ']'
                              + mkdir -p /opt/iobroker
                              + cd /opt/iobroker
                              + echo 'Directory /opt/iobroker created'
                              Directory /opt/iobroker created
                              + touch /opt/iobroker/INSTALLER_INFO.txt
                              + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                              + echo 'Installer version: 2019-05-21'
                              ++ date +%F
                              + echo 'Installation date 2019-05-21'
                              + echo 'Platform: freebsd'
                              + print_step 'Installing ioBroker' 3 4
                              + stepname='Installing ioBroker'
                              + stepnr=3
                              + steptotal=4
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo '    Installing ioBroker (3/4)'
                                  Installing ioBroker (3/4)
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + '[' true = true ']'
                              + echo 'Installed as root'
                              + npm i iobroker --loglevel error --unsafe-perm
                              + npm i --production --loglevel error --unsafe-perm
                              ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                              inline void SetNonBlock(int fd) {
                                          ^
                              ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                              inline void SetCloExec(int fd) {
                                          ^
                              2 warnings generated.
                              ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(2, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(1, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(1, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(1, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(1, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(2, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(2, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                data->callback.Call(1, argv);
                                               ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              8 warnings generated.
                              ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                                    [-Wuninitialized]
                                data->baudRate = outbaud;
                                                 ^~~~~~~
                              ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                                    warning
                                int outbaud;
                                           ^
                                            = 0
                              1 warning generated.
                              ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                obj->callback.Call(2, argv);
                                              ^
                              ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                NAN_DEPRECATED inline v8::Local<v8::Value>
                                ^
                              ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                              # define NAN_DEPRECATED __attribute__((deprecated))
                                                                     ^
                              1 warning generated.
                              + print_step 'Finalizing installation' 4 4
                              + stepname='Finalizing installation'
                              + stepnr=4
                              + steptotal=4
                              + echo
                              
                              + echo ==========================================================================
                              ==========================================================================
                              + echo '    Finalizing installation (4/4)'
                                  Finalizing installation (4/4)
                              + echo ==========================================================================
                              ==========================================================================
                              + echo
                              
                              + INITSYSTEM=unknown
                              + [[ freebsd = \f\r\e\e\b\s\d ]]
                              + [[ -d /usr/local/etc/rc.d ]]
                              + INITSYSTEM=rc.d
                              + [[ -n '' ]]
                              + echo 'init system: rc.d'
                              + IOB_NODE_CMDLINE=node
                              ++ which bash
                              + BASH_CMDLINE=/usr/local/bin/bash
                              + '[' iobroker '!=' root ']'
                              + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                              + '[' rc.d = systemd ']'
                              + '[' rc.d = launchctl ']'
                              ++ cat
                              + IOB_EXECUTABLE='#!/usr/local/bin/bash
                              sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                              + '[' freebsd = linux ']'
                              + '[' freebsd = freebsd ']'
                              + IOB_BIN_PATH=/usr/local/bin
                              + '[' true = true ']'
                              + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                              + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                              + '[' true = true ']'
                              + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                              + echo '#!/usr/local/bin/bash
                              sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                              + make_executable /opt/iobroker/iobroker
                              + file=/opt/iobroker/iobroker
                              + '[' true = true ']'
                              + chmod 755 /opt/iobroker/iobroker
                              + [[ rc.d = \i\n\i\t\.\d ]]
                              + '[' rc.d = systemd ']'
                              + '[' rc.d = rc.d ']'
                              + echo 'Enabling autostart...'
                              Enabling autostart...
                              ++ cat
                              + RCD_FILE='#!/bin/sh
                              #
                              # PROVIDE: iobroker
                              # REQUIRE: DAEMON
                              # KEYWORD: shutdown
                              
                              . /etc/rc.subr
                              
                              name="iobroker"
                              rcvar="iobroker_enable"
                              
                              load_rc_config $name
                              
                              iobroker_enable=${iobroker_enable-"NO"}
                              iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                              
                              PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                              NODECMD=$(which node)
                              
                              iobroker_start ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                              }
                              
                              iobroker_stop ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                              }
                              
                              iobroker_status ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                              }
                              
                              PATH="${PATH}:/usr/local/bin"
                              pidfile="${iobroker_pidfile}"
                              
                              start_cmd=iobroker_start
                              stop_cmd=iobroker_stop
                              status_cmd=iobroker_status
                              
                              run_rc_command "$1"'
                              + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                              + '[' true = true ']'
                              + echo '#!/bin/sh
                              #
                              # PROVIDE: iobroker
                              # REQUIRE: DAEMON
                              # KEYWORD: shutdown
                              
                              . /etc/rc.subr
                              
                              name="iobroker"
                              rcvar="iobroker_enable"
                              
                              load_rc_config $name
                              
                              iobroker_enable=${iobroker_enable-"NO"}
                              iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                              
                              PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                              NODECMD=$(which node)
                              
                              iobroker_start ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                              }
                              
                              iobroker_stop ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                              }
                              
                              iobroker_status ()
                              {
                              su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                              }
                              
                              PATH="${PATH}:/usr/local/bin"
                              pidfile="${iobroker_pidfile}"
                              
                              start_cmd=iobroker_start
                              stop_cmd=iobroker_stop
                              status_cmd=iobroker_status
                              
                              run_rc_command "$1"'
                              + set_root_permissions /usr/local/etc/rc.d/iobroker
                              + file=/usr/local/etc/rc.d/iobroker
                              + '[' true = true ']'
                              + chown root:wheel /usr/local/etc/rc.d/iobroker
                              + chmod 755 /usr/local/etc/rc.d/iobroker
                              + sysrc iobroker_enable=YES
                              iobroker_enable: YES -> YES
                              + service iobroker start
                              Before fixing dir permissions...
                              platform: Undefined variable.
                              + echo 'Autostart enabled!'
                              Autostart enabled!
                              + echo 'Autostart: rc.d'
                              
                              

                              ioBroker auf NUC (Celeron mit Ubuntu-Server)

                              Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

                              AlCalzoneA HomoranH 4 Antworten Letzte Antwort
                              0
                              • M mrMuppet

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

                                rm -rf /opt/iobroker
                                curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -

                                root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                + INSTALLER_VERSION=2019-05-21
                                + [[ 0 -eq 0 ]]
                                + IS_ROOT=true
                                + ROOT_GROUP=root
                                ++ uname
                                + unamestr=FreeBSD
                                + '[' FreeBSD = Linux ']'
                                + '[' FreeBSD = Darwin ']'
                                + '[' FreeBSD = FreeBSD ']'
                                + platform=freebsd
                                + ROOT_GROUP=wheel
                                + IOB_DIR=/opt/iobroker
                                + '[' freebsd = osx ']'
                                + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                                + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                                + INSTALL_TARGET=iobroker
                                + IOB_USER=iobroker
                                + '[' freebsd = osx ']'
                                + test -t 1
                                ++ which tput
                                ++ tput colors
                                + ncolors=94
                                + test -n 94
                                + test 94 -ge 8
                                ++ tput cols
                                + termcols=94
                                ++ tput bold
                                + bold=
                                ++ tput smul
                                + underline=
                                ++ tput smso
                                + standout=
                                ++ tput sgr0
                                + normal=
                                ++ tput setaf 0
                                + black=''
                                ++ tput setaf 1
                                + red=''
                                ++ tput setaf 2
                                + green=''
                                ++ tput setaf 3
                                + yellow=''
                                ++ tput setaf 4
                                + blue=''
                                ++ tput setaf 5
                                + magenta=''
                                ++ tput setaf 6
                                + cyan=''
                                ++ tput setaf 7
                                + white=''
                                + HLINE===========================================================================
                                + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                                + title='Welcome to the ioBroker installer!'
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + echo '    Welcome to the ioBroker installer!'
                                    Welcome to the ioBroker installer!
                                + for text in "${@:2}"
                                + echo '    Installer version: 2019-05-21'
                                    Installer version: 2019-05-21
                                + for text in "${@:2}"
                                + echo '    '
                                
                                + for text in "${@:2}"
                                + echo '    You might need to enter your password a couple of times.'
                                    You might need to enter your password a couple of times.
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + export AUTOMATED_INSTALLER=true
                                + AUTOMATED_INSTALLER=true
                                + NUM_STEPS=4
                                + print_step 'Installing prerequisites' 1 4
                                + stepname='Installing prerequisites'
                                + stepnr=1
                                + steptotal=4
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo '    Installing prerequisites (1/4)'
                                    Installing prerequisites (1/4)
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + case "$platform" in
                                + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                                + declare -a packages
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd sudo
                                + package=sudo
                                + pkg info sudo
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd git
                                + package=git
                                + pkg info git
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd curl
                                + package=curl
                                + pkg info curl
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd bash
                                + package=bash
                                + pkg info bash
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd unzip
                                + package=unzip
                                + pkg info unzip
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd avahi-libdns
                                + package=avahi-libdns
                                + pkg info avahi-libdns
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd dbus
                                + package=dbus
                                + pkg info dbus
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd nss_mdns
                                + package=nss_mdns
                                + pkg info nss_mdns
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd gcc
                                + package=gcc
                                + pkg info gcc
                                + for pkg in "${packages[@]}"
                                + install_package_freebsd python
                                + package=python
                                + pkg info python
                                + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                                ln: /usr/include/dns_sd.h: File exists
                                + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                                + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                                + sysrc -f /etc/rc.conf dbus_enable=YES
                                dbus_enable: YES -> YES
                                + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                                avahi_daemon_enable: YES -> YES
                                + service dbus start
                                dbus already running?  (pid=55380).
                                + service avahi-daemon start
                                avahi_daemon already running?  (pid=55387).
                                + print_step 'Creating ioBroker user and directory' 2 4
                                + stepname='Creating ioBroker user and directory'
                                + stepnr=2
                                + steptotal=4
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo '    Creating ioBroker user and directory (2/4)'
                                    Creating ioBroker user and directory (2/4)
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + '[' freebsd = linux ']'
                                + '[' freebsd = freebsd ']'
                                + create_user_freebsd iobroker
                                + username=iobroker
                                + id iobroker
                                + '[' 0 -ne 0 ']'
                                + groups=(audio bluetooth dialout gpio i2c redis tty)
                                + declare -a groups
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group audio
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group bluetooth
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group dialout
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group gpio
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group i2c
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group redis
                                + for grp in "${groups[@]}"
                                + '[' true = true ']'
                                + getent group tty
                                tty:*:4:iobroker
                                + pw group mod tty -m iobroker
                                + '[' true = true ']'
                                + mkdir -p /opt/iobroker
                                + cd /opt/iobroker
                                + echo 'Directory /opt/iobroker created'
                                Directory /opt/iobroker created
                                + touch /opt/iobroker/INSTALLER_INFO.txt
                                + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                                + echo 'Installer version: 2019-05-21'
                                ++ date +%F
                                + echo 'Installation date 2019-05-21'
                                + echo 'Platform: freebsd'
                                + print_step 'Installing ioBroker' 3 4
                                + stepname='Installing ioBroker'
                                + stepnr=3
                                + steptotal=4
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo '    Installing ioBroker (3/4)'
                                    Installing ioBroker (3/4)
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + '[' true = true ']'
                                + echo 'Installed as root'
                                + npm i iobroker --loglevel error --unsafe-perm
                                + npm i --production --loglevel error --unsafe-perm
                                ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                                inline void SetNonBlock(int fd) {
                                            ^
                                ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                                inline void SetCloExec(int fd) {
                                            ^
                                2 warnings generated.
                                ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(2, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(1, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(1, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(1, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(1, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(2, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(2, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  data->callback.Call(1, argv);
                                                 ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                8 warnings generated.
                                ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                                      [-Wuninitialized]
                                  data->baudRate = outbaud;
                                                   ^~~~~~~
                                ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                                      warning
                                  int outbaud;
                                             ^
                                              = 0
                                1 warning generated.
                                ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                  obj->callback.Call(2, argv);
                                                ^
                                ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                  NAN_DEPRECATED inline v8::Local<v8::Value>
                                  ^
                                ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                # define NAN_DEPRECATED __attribute__((deprecated))
                                                                       ^
                                1 warning generated.
                                + print_step 'Finalizing installation' 4 4
                                + stepname='Finalizing installation'
                                + stepnr=4
                                + steptotal=4
                                + echo
                                
                                + echo ==========================================================================
                                ==========================================================================
                                + echo '    Finalizing installation (4/4)'
                                    Finalizing installation (4/4)
                                + echo ==========================================================================
                                ==========================================================================
                                + echo
                                
                                + INITSYSTEM=unknown
                                + [[ freebsd = \f\r\e\e\b\s\d ]]
                                + [[ -d /usr/local/etc/rc.d ]]
                                + INITSYSTEM=rc.d
                                + [[ -n '' ]]
                                + echo 'init system: rc.d'
                                + IOB_NODE_CMDLINE=node
                                ++ which bash
                                + BASH_CMDLINE=/usr/local/bin/bash
                                + '[' iobroker '!=' root ']'
                                + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                                + '[' rc.d = systemd ']'
                                + '[' rc.d = launchctl ']'
                                ++ cat
                                + IOB_EXECUTABLE='#!/usr/local/bin/bash
                                sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                + '[' freebsd = linux ']'
                                + '[' freebsd = freebsd ']'
                                + IOB_BIN_PATH=/usr/local/bin
                                + '[' true = true ']'
                                + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                                + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                                + '[' true = true ']'
                                + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                                + echo '#!/usr/local/bin/bash
                                sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                + make_executable /opt/iobroker/iobroker
                                + file=/opt/iobroker/iobroker
                                + '[' true = true ']'
                                + chmod 755 /opt/iobroker/iobroker
                                + [[ rc.d = \i\n\i\t\.\d ]]
                                + '[' rc.d = systemd ']'
                                + '[' rc.d = rc.d ']'
                                + echo 'Enabling autostart...'
                                Enabling autostart...
                                ++ cat
                                + RCD_FILE='#!/bin/sh
                                #
                                # PROVIDE: iobroker
                                # REQUIRE: DAEMON
                                # KEYWORD: shutdown
                                
                                . /etc/rc.subr
                                
                                name="iobroker"
                                rcvar="iobroker_enable"
                                
                                load_rc_config $name
                                
                                iobroker_enable=${iobroker_enable-"NO"}
                                iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                
                                PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                NODECMD=$(which node)
                                
                                iobroker_start ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                }
                                
                                iobroker_stop ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                }
                                
                                iobroker_status ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                }
                                
                                PATH="${PATH}:/usr/local/bin"
                                pidfile="${iobroker_pidfile}"
                                
                                start_cmd=iobroker_start
                                stop_cmd=iobroker_stop
                                status_cmd=iobroker_status
                                
                                run_rc_command "$1"'
                                + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                                + '[' true = true ']'
                                + echo '#!/bin/sh
                                #
                                # PROVIDE: iobroker
                                # REQUIRE: DAEMON
                                # KEYWORD: shutdown
                                
                                . /etc/rc.subr
                                
                                name="iobroker"
                                rcvar="iobroker_enable"
                                
                                load_rc_config $name
                                
                                iobroker_enable=${iobroker_enable-"NO"}
                                iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                
                                PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                NODECMD=$(which node)
                                
                                iobroker_start ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                }
                                
                                iobroker_stop ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                }
                                
                                iobroker_status ()
                                {
                                su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                }
                                
                                PATH="${PATH}:/usr/local/bin"
                                pidfile="${iobroker_pidfile}"
                                
                                start_cmd=iobroker_start
                                stop_cmd=iobroker_stop
                                status_cmd=iobroker_status
                                
                                run_rc_command "$1"'
                                + set_root_permissions /usr/local/etc/rc.d/iobroker
                                + file=/usr/local/etc/rc.d/iobroker
                                + '[' true = true ']'
                                + chown root:wheel /usr/local/etc/rc.d/iobroker
                                + chmod 755 /usr/local/etc/rc.d/iobroker
                                + sysrc iobroker_enable=YES
                                iobroker_enable: YES -> YES
                                + service iobroker start
                                Before fixing dir permissions...
                                platform: Undefined variable.
                                + echo 'Autostart enabled!'
                                Autostart enabled!
                                + echo 'Autostart: rc.d'
                                
                                
                                AlCalzoneA Offline
                                AlCalzoneA Offline
                                AlCalzone
                                Developer
                                schrieb am zuletzt editiert von
                                #28

                                @mrMuppet Danke, schau ich mir später an

                                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                1 Antwort Letzte Antwort
                                0
                                • M mrMuppet

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

                                  rm -rf /opt/iobroker
                                  curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -

                                  root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                  + INSTALLER_VERSION=2019-05-21
                                  + [[ 0 -eq 0 ]]
                                  + IS_ROOT=true
                                  + ROOT_GROUP=root
                                  ++ uname
                                  + unamestr=FreeBSD
                                  + '[' FreeBSD = Linux ']'
                                  + '[' FreeBSD = Darwin ']'
                                  + '[' FreeBSD = FreeBSD ']'
                                  + platform=freebsd
                                  + ROOT_GROUP=wheel
                                  + IOB_DIR=/opt/iobroker
                                  + '[' freebsd = osx ']'
                                  + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                                  + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                                  + INSTALL_TARGET=iobroker
                                  + IOB_USER=iobroker
                                  + '[' freebsd = osx ']'
                                  + test -t 1
                                  ++ which tput
                                  ++ tput colors
                                  + ncolors=94
                                  + test -n 94
                                  + test 94 -ge 8
                                  ++ tput cols
                                  + termcols=94
                                  ++ tput bold
                                  + bold=
                                  ++ tput smul
                                  + underline=
                                  ++ tput smso
                                  + standout=
                                  ++ tput sgr0
                                  + normal=
                                  ++ tput setaf 0
                                  + black=''
                                  ++ tput setaf 1
                                  + red=''
                                  ++ tput setaf 2
                                  + green=''
                                  ++ tput setaf 3
                                  + yellow=''
                                  ++ tput setaf 4
                                  + blue=''
                                  ++ tput setaf 5
                                  + magenta=''
                                  ++ tput setaf 6
                                  + cyan=''
                                  ++ tput setaf 7
                                  + white=''
                                  + HLINE===========================================================================
                                  + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                                  + title='Welcome to the ioBroker installer!'
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + echo '    Welcome to the ioBroker installer!'
                                      Welcome to the ioBroker installer!
                                  + for text in "${@:2}"
                                  + echo '    Installer version: 2019-05-21'
                                      Installer version: 2019-05-21
                                  + for text in "${@:2}"
                                  + echo '    '
                                  
                                  + for text in "${@:2}"
                                  + echo '    You might need to enter your password a couple of times.'
                                      You might need to enter your password a couple of times.
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + export AUTOMATED_INSTALLER=true
                                  + AUTOMATED_INSTALLER=true
                                  + NUM_STEPS=4
                                  + print_step 'Installing prerequisites' 1 4
                                  + stepname='Installing prerequisites'
                                  + stepnr=1
                                  + steptotal=4
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo '    Installing prerequisites (1/4)'
                                      Installing prerequisites (1/4)
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + case "$platform" in
                                  + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                                  + declare -a packages
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd sudo
                                  + package=sudo
                                  + pkg info sudo
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd git
                                  + package=git
                                  + pkg info git
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd curl
                                  + package=curl
                                  + pkg info curl
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd bash
                                  + package=bash
                                  + pkg info bash
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd unzip
                                  + package=unzip
                                  + pkg info unzip
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd avahi-libdns
                                  + package=avahi-libdns
                                  + pkg info avahi-libdns
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd dbus
                                  + package=dbus
                                  + pkg info dbus
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd nss_mdns
                                  + package=nss_mdns
                                  + pkg info nss_mdns
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd gcc
                                  + package=gcc
                                  + pkg info gcc
                                  + for pkg in "${packages[@]}"
                                  + install_package_freebsd python
                                  + package=python
                                  + pkg info python
                                  + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                                  ln: /usr/include/dns_sd.h: File exists
                                  + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                                  + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                                  + sysrc -f /etc/rc.conf dbus_enable=YES
                                  dbus_enable: YES -> YES
                                  + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                                  avahi_daemon_enable: YES -> YES
                                  + service dbus start
                                  dbus already running?  (pid=55380).
                                  + service avahi-daemon start
                                  avahi_daemon already running?  (pid=55387).
                                  + print_step 'Creating ioBroker user and directory' 2 4
                                  + stepname='Creating ioBroker user and directory'
                                  + stepnr=2
                                  + steptotal=4
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo '    Creating ioBroker user and directory (2/4)'
                                      Creating ioBroker user and directory (2/4)
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + '[' freebsd = linux ']'
                                  + '[' freebsd = freebsd ']'
                                  + create_user_freebsd iobroker
                                  + username=iobroker
                                  + id iobroker
                                  + '[' 0 -ne 0 ']'
                                  + groups=(audio bluetooth dialout gpio i2c redis tty)
                                  + declare -a groups
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group audio
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group bluetooth
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group dialout
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group gpio
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group i2c
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group redis
                                  + for grp in "${groups[@]}"
                                  + '[' true = true ']'
                                  + getent group tty
                                  tty:*:4:iobroker
                                  + pw group mod tty -m iobroker
                                  + '[' true = true ']'
                                  + mkdir -p /opt/iobroker
                                  + cd /opt/iobroker
                                  + echo 'Directory /opt/iobroker created'
                                  Directory /opt/iobroker created
                                  + touch /opt/iobroker/INSTALLER_INFO.txt
                                  + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                                  + echo 'Installer version: 2019-05-21'
                                  ++ date +%F
                                  + echo 'Installation date 2019-05-21'
                                  + echo 'Platform: freebsd'
                                  + print_step 'Installing ioBroker' 3 4
                                  + stepname='Installing ioBroker'
                                  + stepnr=3
                                  + steptotal=4
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo '    Installing ioBroker (3/4)'
                                      Installing ioBroker (3/4)
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + '[' true = true ']'
                                  + echo 'Installed as root'
                                  + npm i iobroker --loglevel error --unsafe-perm
                                  + npm i --production --loglevel error --unsafe-perm
                                  ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                                  inline void SetNonBlock(int fd) {
                                              ^
                                  ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                                  inline void SetCloExec(int fd) {
                                              ^
                                  2 warnings generated.
                                  ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(2, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(1, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(1, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(1, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(1, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(2, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(2, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    data->callback.Call(1, argv);
                                                   ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  8 warnings generated.
                                  ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                                        [-Wuninitialized]
                                    data->baudRate = outbaud;
                                                     ^~~~~~~
                                  ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                                        warning
                                    int outbaud;
                                               ^
                                                = 0
                                  1 warning generated.
                                  ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                    obj->callback.Call(2, argv);
                                                  ^
                                  ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                    NAN_DEPRECATED inline v8::Local<v8::Value>
                                    ^
                                  ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                  # define NAN_DEPRECATED __attribute__((deprecated))
                                                                         ^
                                  1 warning generated.
                                  + print_step 'Finalizing installation' 4 4
                                  + stepname='Finalizing installation'
                                  + stepnr=4
                                  + steptotal=4
                                  + echo
                                  
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo '    Finalizing installation (4/4)'
                                      Finalizing installation (4/4)
                                  + echo ==========================================================================
                                  ==========================================================================
                                  + echo
                                  
                                  + INITSYSTEM=unknown
                                  + [[ freebsd = \f\r\e\e\b\s\d ]]
                                  + [[ -d /usr/local/etc/rc.d ]]
                                  + INITSYSTEM=rc.d
                                  + [[ -n '' ]]
                                  + echo 'init system: rc.d'
                                  + IOB_NODE_CMDLINE=node
                                  ++ which bash
                                  + BASH_CMDLINE=/usr/local/bin/bash
                                  + '[' iobroker '!=' root ']'
                                  + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                                  + '[' rc.d = systemd ']'
                                  + '[' rc.d = launchctl ']'
                                  ++ cat
                                  + IOB_EXECUTABLE='#!/usr/local/bin/bash
                                  sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                  + '[' freebsd = linux ']'
                                  + '[' freebsd = freebsd ']'
                                  + IOB_BIN_PATH=/usr/local/bin
                                  + '[' true = true ']'
                                  + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                                  + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                                  + '[' true = true ']'
                                  + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                                  + echo '#!/usr/local/bin/bash
                                  sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                  + make_executable /opt/iobroker/iobroker
                                  + file=/opt/iobroker/iobroker
                                  + '[' true = true ']'
                                  + chmod 755 /opt/iobroker/iobroker
                                  + [[ rc.d = \i\n\i\t\.\d ]]
                                  + '[' rc.d = systemd ']'
                                  + '[' rc.d = rc.d ']'
                                  + echo 'Enabling autostart...'
                                  Enabling autostart...
                                  ++ cat
                                  + RCD_FILE='#!/bin/sh
                                  #
                                  # PROVIDE: iobroker
                                  # REQUIRE: DAEMON
                                  # KEYWORD: shutdown
                                  
                                  . /etc/rc.subr
                                  
                                  name="iobroker"
                                  rcvar="iobroker_enable"
                                  
                                  load_rc_config $name
                                  
                                  iobroker_enable=${iobroker_enable-"NO"}
                                  iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                  
                                  PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                  NODECMD=$(which node)
                                  
                                  iobroker_start ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                  }
                                  
                                  iobroker_stop ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                  }
                                  
                                  iobroker_status ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                  }
                                  
                                  PATH="${PATH}:/usr/local/bin"
                                  pidfile="${iobroker_pidfile}"
                                  
                                  start_cmd=iobroker_start
                                  stop_cmd=iobroker_stop
                                  status_cmd=iobroker_status
                                  
                                  run_rc_command "$1"'
                                  + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                                  + '[' true = true ']'
                                  + echo '#!/bin/sh
                                  #
                                  # PROVIDE: iobroker
                                  # REQUIRE: DAEMON
                                  # KEYWORD: shutdown
                                  
                                  . /etc/rc.subr
                                  
                                  name="iobroker"
                                  rcvar="iobroker_enable"
                                  
                                  load_rc_config $name
                                  
                                  iobroker_enable=${iobroker_enable-"NO"}
                                  iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                  
                                  PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                  NODECMD=$(which node)
                                  
                                  iobroker_start ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                  }
                                  
                                  iobroker_stop ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                  }
                                  
                                  iobroker_status ()
                                  {
                                  su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                  }
                                  
                                  PATH="${PATH}:/usr/local/bin"
                                  pidfile="${iobroker_pidfile}"
                                  
                                  start_cmd=iobroker_start
                                  stop_cmd=iobroker_stop
                                  status_cmd=iobroker_status
                                  
                                  run_rc_command "$1"'
                                  + set_root_permissions /usr/local/etc/rc.d/iobroker
                                  + file=/usr/local/etc/rc.d/iobroker
                                  + '[' true = true ']'
                                  + chown root:wheel /usr/local/etc/rc.d/iobroker
                                  + chmod 755 /usr/local/etc/rc.d/iobroker
                                  + sysrc iobroker_enable=YES
                                  iobroker_enable: YES -> YES
                                  + service iobroker start
                                  Before fixing dir permissions...
                                  platform: Undefined variable.
                                  + echo 'Autostart enabled!'
                                  Autostart enabled!
                                  + echo 'Autostart: rc.d'
                                  
                                  
                                  HomoranH Offline
                                  HomoranH Offline
                                  Homoran
                                  Global Moderator Administrators
                                  schrieb am zuletzt editiert von
                                  #29

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

                                  platform=freebsd

                                  Und später

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

                                  platform: Undefined variable.

                                  kein Support per PN! - Fragen im Forum stellen -

                                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                  ioBroker freut sich auch über eine Spende für das Forum. Benutzt dazu den Spendenbutton im Header. Danke!

                                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                  AlCalzoneA 1 Antwort Letzte Antwort
                                  0
                                  • HomoranH Homoran

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

                                    platform=freebsd

                                    Und später

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

                                    platform: Undefined variable.

                                    AlCalzoneA Offline
                                    AlCalzoneA Offline
                                    AlCalzone
                                    Developer
                                    schrieb am zuletzt editiert von AlCalzone
                                    #30

                                    @Homoran Genau das verwirrt mich. Da scheint FreeBSD etwas anders zu machen als alle anderen Betriebssysteme. Muss ich morgen mal lesen. Heute Abend musste ich erst mal Blues Brothers schauen 😁

                                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                    1 Antwort Letzte Antwort
                                    0
                                    • M mrMuppet

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

                                      rm -rf /opt/iobroker
                                      curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -

                                      root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                      + INSTALLER_VERSION=2019-05-21
                                      + [[ 0 -eq 0 ]]
                                      + IS_ROOT=true
                                      + ROOT_GROUP=root
                                      ++ uname
                                      + unamestr=FreeBSD
                                      + '[' FreeBSD = Linux ']'
                                      + '[' FreeBSD = Darwin ']'
                                      + '[' FreeBSD = FreeBSD ']'
                                      + platform=freebsd
                                      + ROOT_GROUP=wheel
                                      + IOB_DIR=/opt/iobroker
                                      + '[' freebsd = osx ']'
                                      + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                                      + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                                      + INSTALL_TARGET=iobroker
                                      + IOB_USER=iobroker
                                      + '[' freebsd = osx ']'
                                      + test -t 1
                                      ++ which tput
                                      ++ tput colors
                                      + ncolors=94
                                      + test -n 94
                                      + test 94 -ge 8
                                      ++ tput cols
                                      + termcols=94
                                      ++ tput bold
                                      + bold=
                                      ++ tput smul
                                      + underline=
                                      ++ tput smso
                                      + standout=
                                      ++ tput sgr0
                                      + normal=
                                      ++ tput setaf 0
                                      + black=''
                                      ++ tput setaf 1
                                      + red=''
                                      ++ tput setaf 2
                                      + green=''
                                      ++ tput setaf 3
                                      + yellow=''
                                      ++ tput setaf 4
                                      + blue=''
                                      ++ tput setaf 5
                                      + magenta=''
                                      ++ tput setaf 6
                                      + cyan=''
                                      ++ tput setaf 7
                                      + white=''
                                      + HLINE===========================================================================
                                      + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                                      + title='Welcome to the ioBroker installer!'
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + echo '    Welcome to the ioBroker installer!'
                                          Welcome to the ioBroker installer!
                                      + for text in "${@:2}"
                                      + echo '    Installer version: 2019-05-21'
                                          Installer version: 2019-05-21
                                      + for text in "${@:2}"
                                      + echo '    '
                                      
                                      + for text in "${@:2}"
                                      + echo '    You might need to enter your password a couple of times.'
                                          You might need to enter your password a couple of times.
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + export AUTOMATED_INSTALLER=true
                                      + AUTOMATED_INSTALLER=true
                                      + NUM_STEPS=4
                                      + print_step 'Installing prerequisites' 1 4
                                      + stepname='Installing prerequisites'
                                      + stepnr=1
                                      + steptotal=4
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo '    Installing prerequisites (1/4)'
                                          Installing prerequisites (1/4)
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + case "$platform" in
                                      + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                                      + declare -a packages
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd sudo
                                      + package=sudo
                                      + pkg info sudo
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd git
                                      + package=git
                                      + pkg info git
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd curl
                                      + package=curl
                                      + pkg info curl
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd bash
                                      + package=bash
                                      + pkg info bash
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd unzip
                                      + package=unzip
                                      + pkg info unzip
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd avahi-libdns
                                      + package=avahi-libdns
                                      + pkg info avahi-libdns
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd dbus
                                      + package=dbus
                                      + pkg info dbus
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd nss_mdns
                                      + package=nss_mdns
                                      + pkg info nss_mdns
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd gcc
                                      + package=gcc
                                      + pkg info gcc
                                      + for pkg in "${packages[@]}"
                                      + install_package_freebsd python
                                      + package=python
                                      + pkg info python
                                      + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                                      ln: /usr/include/dns_sd.h: File exists
                                      + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                                      + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                                      + sysrc -f /etc/rc.conf dbus_enable=YES
                                      dbus_enable: YES -> YES
                                      + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                                      avahi_daemon_enable: YES -> YES
                                      + service dbus start
                                      dbus already running?  (pid=55380).
                                      + service avahi-daemon start
                                      avahi_daemon already running?  (pid=55387).
                                      + print_step 'Creating ioBroker user and directory' 2 4
                                      + stepname='Creating ioBroker user and directory'
                                      + stepnr=2
                                      + steptotal=4
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo '    Creating ioBroker user and directory (2/4)'
                                          Creating ioBroker user and directory (2/4)
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + '[' freebsd = linux ']'
                                      + '[' freebsd = freebsd ']'
                                      + create_user_freebsd iobroker
                                      + username=iobroker
                                      + id iobroker
                                      + '[' 0 -ne 0 ']'
                                      + groups=(audio bluetooth dialout gpio i2c redis tty)
                                      + declare -a groups
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group audio
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group bluetooth
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group dialout
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group gpio
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group i2c
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group redis
                                      + for grp in "${groups[@]}"
                                      + '[' true = true ']'
                                      + getent group tty
                                      tty:*:4:iobroker
                                      + pw group mod tty -m iobroker
                                      + '[' true = true ']'
                                      + mkdir -p /opt/iobroker
                                      + cd /opt/iobroker
                                      + echo 'Directory /opt/iobroker created'
                                      Directory /opt/iobroker created
                                      + touch /opt/iobroker/INSTALLER_INFO.txt
                                      + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                                      + echo 'Installer version: 2019-05-21'
                                      ++ date +%F
                                      + echo 'Installation date 2019-05-21'
                                      + echo 'Platform: freebsd'
                                      + print_step 'Installing ioBroker' 3 4
                                      + stepname='Installing ioBroker'
                                      + stepnr=3
                                      + steptotal=4
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo '    Installing ioBroker (3/4)'
                                          Installing ioBroker (3/4)
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + '[' true = true ']'
                                      + echo 'Installed as root'
                                      + npm i iobroker --loglevel error --unsafe-perm
                                      + npm i --production --loglevel error --unsafe-perm
                                      ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                                      inline void SetNonBlock(int fd) {
                                                  ^
                                      ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                                      inline void SetCloExec(int fd) {
                                                  ^
                                      2 warnings generated.
                                      ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(2, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(1, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(1, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(1, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(1, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(2, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(2, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        data->callback.Call(1, argv);
                                                       ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      8 warnings generated.
                                      ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                                            [-Wuninitialized]
                                        data->baudRate = outbaud;
                                                         ^~~~~~~
                                      ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                                            warning
                                        int outbaud;
                                                   ^
                                                    = 0
                                      1 warning generated.
                                      ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                        obj->callback.Call(2, argv);
                                                      ^
                                      ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                        NAN_DEPRECATED inline v8::Local<v8::Value>
                                        ^
                                      ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                      # define NAN_DEPRECATED __attribute__((deprecated))
                                                                             ^
                                      1 warning generated.
                                      + print_step 'Finalizing installation' 4 4
                                      + stepname='Finalizing installation'
                                      + stepnr=4
                                      + steptotal=4
                                      + echo
                                      
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo '    Finalizing installation (4/4)'
                                          Finalizing installation (4/4)
                                      + echo ==========================================================================
                                      ==========================================================================
                                      + echo
                                      
                                      + INITSYSTEM=unknown
                                      + [[ freebsd = \f\r\e\e\b\s\d ]]
                                      + [[ -d /usr/local/etc/rc.d ]]
                                      + INITSYSTEM=rc.d
                                      + [[ -n '' ]]
                                      + echo 'init system: rc.d'
                                      + IOB_NODE_CMDLINE=node
                                      ++ which bash
                                      + BASH_CMDLINE=/usr/local/bin/bash
                                      + '[' iobroker '!=' root ']'
                                      + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                                      + '[' rc.d = systemd ']'
                                      + '[' rc.d = launchctl ']'
                                      ++ cat
                                      + IOB_EXECUTABLE='#!/usr/local/bin/bash
                                      sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                      + '[' freebsd = linux ']'
                                      + '[' freebsd = freebsd ']'
                                      + IOB_BIN_PATH=/usr/local/bin
                                      + '[' true = true ']'
                                      + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                                      + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                                      + '[' true = true ']'
                                      + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                                      + echo '#!/usr/local/bin/bash
                                      sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                      + make_executable /opt/iobroker/iobroker
                                      + file=/opt/iobroker/iobroker
                                      + '[' true = true ']'
                                      + chmod 755 /opt/iobroker/iobroker
                                      + [[ rc.d = \i\n\i\t\.\d ]]
                                      + '[' rc.d = systemd ']'
                                      + '[' rc.d = rc.d ']'
                                      + echo 'Enabling autostart...'
                                      Enabling autostart...
                                      ++ cat
                                      + RCD_FILE='#!/bin/sh
                                      #
                                      # PROVIDE: iobroker
                                      # REQUIRE: DAEMON
                                      # KEYWORD: shutdown
                                      
                                      . /etc/rc.subr
                                      
                                      name="iobroker"
                                      rcvar="iobroker_enable"
                                      
                                      load_rc_config $name
                                      
                                      iobroker_enable=${iobroker_enable-"NO"}
                                      iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                      
                                      PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                      NODECMD=$(which node)
                                      
                                      iobroker_start ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                      }
                                      
                                      iobroker_stop ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                      }
                                      
                                      iobroker_status ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                      }
                                      
                                      PATH="${PATH}:/usr/local/bin"
                                      pidfile="${iobroker_pidfile}"
                                      
                                      start_cmd=iobroker_start
                                      stop_cmd=iobroker_stop
                                      status_cmd=iobroker_status
                                      
                                      run_rc_command "$1"'
                                      + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                                      + '[' true = true ']'
                                      + echo '#!/bin/sh
                                      #
                                      # PROVIDE: iobroker
                                      # REQUIRE: DAEMON
                                      # KEYWORD: shutdown
                                      
                                      . /etc/rc.subr
                                      
                                      name="iobroker"
                                      rcvar="iobroker_enable"
                                      
                                      load_rc_config $name
                                      
                                      iobroker_enable=${iobroker_enable-"NO"}
                                      iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                      
                                      PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                      NODECMD=$(which node)
                                      
                                      iobroker_start ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                      }
                                      
                                      iobroker_stop ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                      }
                                      
                                      iobroker_status ()
                                      {
                                      su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                      }
                                      
                                      PATH="${PATH}:/usr/local/bin"
                                      pidfile="${iobroker_pidfile}"
                                      
                                      start_cmd=iobroker_start
                                      stop_cmd=iobroker_stop
                                      status_cmd=iobroker_status
                                      
                                      run_rc_command "$1"'
                                      + set_root_permissions /usr/local/etc/rc.d/iobroker
                                      + file=/usr/local/etc/rc.d/iobroker
                                      + '[' true = true ']'
                                      + chown root:wheel /usr/local/etc/rc.d/iobroker
                                      + chmod 755 /usr/local/etc/rc.d/iobroker
                                      + sysrc iobroker_enable=YES
                                      iobroker_enable: YES -> YES
                                      + service iobroker start
                                      Before fixing dir permissions...
                                      platform: Undefined variable.
                                      + echo 'Autostart enabled!'
                                      Autostart enabled!
                                      + echo 'Autostart: rc.d'
                                      
                                      
                                      AlCalzoneA Offline
                                      AlCalzoneA Offline
                                      AlCalzone
                                      Developer
                                      schrieb am zuletzt editiert von
                                      #31

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

                                      • service iobroker start
                                        Before fixing dir permissions...
                                        platform: Undefined variable.
                                      • echo 'Autostart enabled!'
                                        Autostart enabled!
                                      • echo 'Autostart: rc.d'

                                      Und auch das läuft in einer Reihenfolge ab, die eigentlich nicht sein kann :thinking_face:

                                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                      1 Antwort Letzte Antwort
                                      0
                                      • M mrMuppet

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

                                        rm -rf /opt/iobroker
                                        curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -

                                        root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                        + INSTALLER_VERSION=2019-05-21
                                        + [[ 0 -eq 0 ]]
                                        + IS_ROOT=true
                                        + ROOT_GROUP=root
                                        ++ uname
                                        + unamestr=FreeBSD
                                        + '[' FreeBSD = Linux ']'
                                        + '[' FreeBSD = Darwin ']'
                                        + '[' FreeBSD = FreeBSD ']'
                                        + platform=freebsd
                                        + ROOT_GROUP=wheel
                                        + IOB_DIR=/opt/iobroker
                                        + '[' freebsd = osx ']'
                                        + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                                        + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                                        + INSTALL_TARGET=iobroker
                                        + IOB_USER=iobroker
                                        + '[' freebsd = osx ']'
                                        + test -t 1
                                        ++ which tput
                                        ++ tput colors
                                        + ncolors=94
                                        + test -n 94
                                        + test 94 -ge 8
                                        ++ tput cols
                                        + termcols=94
                                        ++ tput bold
                                        + bold=
                                        ++ tput smul
                                        + underline=
                                        ++ tput smso
                                        + standout=
                                        ++ tput sgr0
                                        + normal=
                                        ++ tput setaf 0
                                        + black=''
                                        ++ tput setaf 1
                                        + red=''
                                        ++ tput setaf 2
                                        + green=''
                                        ++ tput setaf 3
                                        + yellow=''
                                        ++ tput setaf 4
                                        + blue=''
                                        ++ tput setaf 5
                                        + magenta=''
                                        ++ tput setaf 6
                                        + cyan=''
                                        ++ tput setaf 7
                                        + white=''
                                        + HLINE===========================================================================
                                        + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                                        + title='Welcome to the ioBroker installer!'
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + echo '    Welcome to the ioBroker installer!'
                                            Welcome to the ioBroker installer!
                                        + for text in "${@:2}"
                                        + echo '    Installer version: 2019-05-21'
                                            Installer version: 2019-05-21
                                        + for text in "${@:2}"
                                        + echo '    '
                                        
                                        + for text in "${@:2}"
                                        + echo '    You might need to enter your password a couple of times.'
                                            You might need to enter your password a couple of times.
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + export AUTOMATED_INSTALLER=true
                                        + AUTOMATED_INSTALLER=true
                                        + NUM_STEPS=4
                                        + print_step 'Installing prerequisites' 1 4
                                        + stepname='Installing prerequisites'
                                        + stepnr=1
                                        + steptotal=4
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo '    Installing prerequisites (1/4)'
                                            Installing prerequisites (1/4)
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + case "$platform" in
                                        + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                                        + declare -a packages
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd sudo
                                        + package=sudo
                                        + pkg info sudo
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd git
                                        + package=git
                                        + pkg info git
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd curl
                                        + package=curl
                                        + pkg info curl
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd bash
                                        + package=bash
                                        + pkg info bash
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd unzip
                                        + package=unzip
                                        + pkg info unzip
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd avahi-libdns
                                        + package=avahi-libdns
                                        + pkg info avahi-libdns
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd dbus
                                        + package=dbus
                                        + pkg info dbus
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd nss_mdns
                                        + package=nss_mdns
                                        + pkg info nss_mdns
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd gcc
                                        + package=gcc
                                        + pkg info gcc
                                        + for pkg in "${packages[@]}"
                                        + install_package_freebsd python
                                        + package=python
                                        + pkg info python
                                        + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                                        ln: /usr/include/dns_sd.h: File exists
                                        + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                                        + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                                        + sysrc -f /etc/rc.conf dbus_enable=YES
                                        dbus_enable: YES -> YES
                                        + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                                        avahi_daemon_enable: YES -> YES
                                        + service dbus start
                                        dbus already running?  (pid=55380).
                                        + service avahi-daemon start
                                        avahi_daemon already running?  (pid=55387).
                                        + print_step 'Creating ioBroker user and directory' 2 4
                                        + stepname='Creating ioBroker user and directory'
                                        + stepnr=2
                                        + steptotal=4
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo '    Creating ioBroker user and directory (2/4)'
                                            Creating ioBroker user and directory (2/4)
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + '[' freebsd = linux ']'
                                        + '[' freebsd = freebsd ']'
                                        + create_user_freebsd iobroker
                                        + username=iobroker
                                        + id iobroker
                                        + '[' 0 -ne 0 ']'
                                        + groups=(audio bluetooth dialout gpio i2c redis tty)
                                        + declare -a groups
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group audio
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group bluetooth
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group dialout
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group gpio
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group i2c
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group redis
                                        + for grp in "${groups[@]}"
                                        + '[' true = true ']'
                                        + getent group tty
                                        tty:*:4:iobroker
                                        + pw group mod tty -m iobroker
                                        + '[' true = true ']'
                                        + mkdir -p /opt/iobroker
                                        + cd /opt/iobroker
                                        + echo 'Directory /opt/iobroker created'
                                        Directory /opt/iobroker created
                                        + touch /opt/iobroker/INSTALLER_INFO.txt
                                        + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                                        + echo 'Installer version: 2019-05-21'
                                        ++ date +%F
                                        + echo 'Installation date 2019-05-21'
                                        + echo 'Platform: freebsd'
                                        + print_step 'Installing ioBroker' 3 4
                                        + stepname='Installing ioBroker'
                                        + stepnr=3
                                        + steptotal=4
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo '    Installing ioBroker (3/4)'
                                            Installing ioBroker (3/4)
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + '[' true = true ']'
                                        + echo 'Installed as root'
                                        + npm i iobroker --loglevel error --unsafe-perm
                                        + npm i --production --loglevel error --unsafe-perm
                                        ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock' [-Wunused-function]
                                        inline void SetNonBlock(int fd) {
                                                    ^
                                        ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec' [-Wunused-function]
                                        inline void SetCloExec(int fd) {
                                                    ^
                                        2 warnings generated.
                                        ../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(2, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(1, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(1, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(1, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(1, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(2, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(2, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        ../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          data->callback.Call(1, argv);
                                                         ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        8 warnings generated.
                                        ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here
                                              [-Wuninitialized]
                                          data->baudRate = outbaud;
                                                           ^~~~~~~
                                        ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this
                                              warning
                                          int outbaud;
                                                     ^
                                                      = 0
                                        1 warning generated.
                                        ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                          obj->callback.Call(2, argv);
                                                        ^
                                        ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                          NAN_DEPRECATED inline v8::Local<v8::Value>
                                          ^
                                        ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                        # define NAN_DEPRECATED __attribute__((deprecated))
                                                                               ^
                                        1 warning generated.
                                        + print_step 'Finalizing installation' 4 4
                                        + stepname='Finalizing installation'
                                        + stepnr=4
                                        + steptotal=4
                                        + echo
                                        
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo '    Finalizing installation (4/4)'
                                            Finalizing installation (4/4)
                                        + echo ==========================================================================
                                        ==========================================================================
                                        + echo
                                        
                                        + INITSYSTEM=unknown
                                        + [[ freebsd = \f\r\e\e\b\s\d ]]
                                        + [[ -d /usr/local/etc/rc.d ]]
                                        + INITSYSTEM=rc.d
                                        + [[ -n '' ]]
                                        + echo 'init system: rc.d'
                                        + IOB_NODE_CMDLINE=node
                                        ++ which bash
                                        + BASH_CMDLINE=/usr/local/bin/bash
                                        + '[' iobroker '!=' root ']'
                                        + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                                        + '[' rc.d = systemd ']'
                                        + '[' rc.d = launchctl ']'
                                        ++ cat
                                        + IOB_EXECUTABLE='#!/usr/local/bin/bash
                                        sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                        + '[' freebsd = linux ']'
                                        + '[' freebsd = freebsd ']'
                                        + IOB_BIN_PATH=/usr/local/bin
                                        + '[' true = true ']'
                                        + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                                        + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                                        + '[' true = true ']'
                                        + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                                        + echo '#!/usr/local/bin/bash
                                        sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                        + make_executable /opt/iobroker/iobroker
                                        + file=/opt/iobroker/iobroker
                                        + '[' true = true ']'
                                        + chmod 755 /opt/iobroker/iobroker
                                        + [[ rc.d = \i\n\i\t\.\d ]]
                                        + '[' rc.d = systemd ']'
                                        + '[' rc.d = rc.d ']'
                                        + echo 'Enabling autostart...'
                                        Enabling autostart...
                                        ++ cat
                                        + RCD_FILE='#!/bin/sh
                                        #
                                        # PROVIDE: iobroker
                                        # REQUIRE: DAEMON
                                        # KEYWORD: shutdown
                                        
                                        . /etc/rc.subr
                                        
                                        name="iobroker"
                                        rcvar="iobroker_enable"
                                        
                                        load_rc_config $name
                                        
                                        iobroker_enable=${iobroker_enable-"NO"}
                                        iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                        
                                        PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                        NODECMD=$(which node)
                                        
                                        iobroker_start ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                        }
                                        
                                        iobroker_stop ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                        }
                                        
                                        iobroker_status ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                        }
                                        
                                        PATH="${PATH}:/usr/local/bin"
                                        pidfile="${iobroker_pidfile}"
                                        
                                        start_cmd=iobroker_start
                                        stop_cmd=iobroker_stop
                                        status_cmd=iobroker_status
                                        
                                        run_rc_command "$1"'
                                        + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                                        + '[' true = true ']'
                                        + echo '#!/bin/sh
                                        #
                                        # PROVIDE: iobroker
                                        # REQUIRE: DAEMON
                                        # KEYWORD: shutdown
                                        
                                        . /etc/rc.subr
                                        
                                        name="iobroker"
                                        rcvar="iobroker_enable"
                                        
                                        load_rc_config $name
                                        
                                        iobroker_enable=${iobroker_enable-"NO"}
                                        iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                        
                                        PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                        NODECMD=$(which node)
                                        
                                        iobroker_start ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                        }
                                        
                                        iobroker_stop ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                        }
                                        
                                        iobroker_status ()
                                        {
                                        su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                        }
                                        
                                        PATH="${PATH}:/usr/local/bin"
                                        pidfile="${iobroker_pidfile}"
                                        
                                        start_cmd=iobroker_start
                                        stop_cmd=iobroker_stop
                                        status_cmd=iobroker_status
                                        
                                        run_rc_command "$1"'
                                        + set_root_permissions /usr/local/etc/rc.d/iobroker
                                        + file=/usr/local/etc/rc.d/iobroker
                                        + '[' true = true ']'
                                        + chown root:wheel /usr/local/etc/rc.d/iobroker
                                        + chmod 755 /usr/local/etc/rc.d/iobroker
                                        + sysrc iobroker_enable=YES
                                        iobroker_enable: YES -> YES
                                        + service iobroker start
                                        Before fixing dir permissions...
                                        platform: Undefined variable.
                                        + echo 'Autostart enabled!'
                                        Autostart enabled!
                                        + echo 'Autostart: rc.d'
                                        
                                        
                                        AlCalzoneA Offline
                                        AlCalzoneA Offline
                                        AlCalzone
                                        Developer
                                        schrieb am zuletzt editiert von
                                        #32

                                        @mrMuppet Ich habe nochmal einen Versuch gestartet. Probierst du bitte nochmal:

                                        rm -rf /opt/iobroker
                                        curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                        

                                        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                        M 1 Antwort Letzte Antwort
                                        0
                                        • AlCalzoneA AlCalzone

                                          @mrMuppet Ich habe nochmal einen Versuch gestartet. Probierst du bitte nochmal:

                                          rm -rf /opt/iobroker
                                          curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                          
                                          M Offline
                                          M Offline
                                          mrMuppet
                                          schrieb am zuletzt editiert von mrMuppet
                                          #33

                                          @AlCalzone komme gerade nur über's Smartphone dran, aber versucht hab ichs trotzdem Mal:

                                          root@iobroker_v2:~ # rm -rf /opt/iobroker
                                          root@iobroker_v2:~ # curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/freebsd-fix/installer.sh | bash -
                                          + INSTALLER_VERSION=2019-05-21
                                          + [[ 0 -eq 0 ]]
                                          + IS_ROOT=true
                                          + ROOT_GROUP=root
                                          ++ get_platform
                                          +++ uname
                                          ++ unamestr=FreeBSD
                                          ++ local platform=
                                          ++ '[' FreeBSD = Linux ']'
                                          ++ '[' FreeBSD = Darwin ']'
                                          ++ '[' FreeBSD = FreeBSD ']'
                                          ++ platform=freebsd
                                          ++ ROOT_GROUP=wheel
                                          ++ echo freebsd
                                          + platform=freebsd
                                          + '[' freebsd = '' ']'
                                          + IOB_DIR=/opt/iobroker
                                          + '[' freebsd = osx ']'
                                          + CONTROLLER_DIR=/opt/iobroker/node_modules/iobroker.js-controller
                                          + INSTALLER_INFO_FILE=/opt/iobroker/INSTALLER_INFO.txt
                                          + INSTALL_TARGET=iobroker
                                          + IOB_USER=iobroker
                                          + '[' freebsd = osx ']'
                                          + test -t 1
                                          ++ which tput
                                          ++ tput colors
                                          + ncolors=83
                                          + test -n 83
                                          + test 83 -ge 8
                                          ++ tput cols
                                          + termcols=83
                                          ++ tput bold
                                          + bold=
                                          ++ tput smul
                                          + underline=
                                          ++ tput smso
                                          + standout=
                                          ++ tput sgr0
                                          + normal=
                                          ++ tput setaf 0
                                          + black=''
                                          ++ tput setaf 1
                                          + red=''
                                          ++ tput setaf 2
                                          + green=''
                                          ++ tput setaf 3
                                          + yellow=''
                                          ++ tput setaf 4
                                          + blue=''
                                          ++ tput setaf 5
                                          + magenta=''
                                          ++ tput setaf 6
                                          + cyan=''
                                          ++ tput setaf 7
                                          + white=''
                                          + HLINE===========================================================================
                                          + print_bold 'Welcome to the ioBroker installer!' 'Installer version: 2019-05-21' '' 'You might need to enter your password a couple of times.'
                                          + title='Welcome to the ioBroker installer!'
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + echo '    Welcome to the ioBroker installer!'
                                              Welcome to the ioBroker installer!
                                          + for text in "${@:2}"
                                          + echo '    Installer version: 2019-05-21'
                                              Installer version: 2019-05-21
                                          + for text in "${@:2}"
                                          + echo '    '
                                          
                                          + for text in "${@:2}"
                                          + echo '    You might need to enter your password a couple of times.'
                                              You might need to enter your password a couple of times.
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + export AUTOMATED_INSTALLER=true
                                          + AUTOMATED_INSTALLER=true
                                          + NUM_STEPS=4
                                          + print_step 'Installing prerequisites' 1 4
                                          + stepname='Installing prerequisites'
                                          + stepnr=1
                                          + steptotal=4
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo '    Installing prerequisites (1/4)'
                                              Installing prerequisites (1/4)
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + case "$platform" in
                                          + packages=("sudo" "git" "curl" "bash" "unzip" "avahi-libdns" "dbus" "nss_mdns" "gcc" "python")
                                          + declare -a packages
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd sudo
                                          + package=sudo
                                          + pkg info sudo
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd git
                                          + package=git
                                          + pkg info git
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd curl
                                          + package=curl
                                          + pkg info curl
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd bash
                                          + package=bash
                                          + pkg info bash
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd unzip
                                          + package=unzip
                                          + pkg info unzip
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd avahi-libdns
                                          + package=avahi-libdns
                                          + pkg info avahi-libdns
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd dbus
                                          + package=dbus
                                          + pkg info dbus
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd nss_mdns
                                          + package=nss_mdns
                                          + pkg info nss_mdns
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd gcc
                                          + package=gcc
                                          + pkg info gcc
                                          + for pkg in "${packages[@]}"
                                          + install_package_freebsd python
                                          + package=python
                                          + pkg info python
                                          + ln -s /usr/local/include/avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
                                          ln: /usr/include/dns_sd.h: File exists
                                          + sed -i -e s/#enable-dbus/enable-dbus/ /usr/local/etc/avahi/avahi-daemon.conf
                                          + sed -i -e 's/hosts: file dns/hosts: file dns mdns/' /etc/nsswitch.conf
                                          + sysrc -f /etc/rc.conf dbus_enable=YES
                                          dbus_enable: YES -> YES
                                          + sysrc -f /etc/rc.conf avahi_daemon_enable=YES
                                          avahi_daemon_enable: YES -> YES
                                          + service dbus start
                                          Starting dbus.
                                          + service avahi-daemon start
                                          Starting avahi-daemon.
                                          + print_step 'Creating ioBroker user and directory' 2 4
                                          + stepname='Creating ioBroker user and directory'
                                          + stepnr=2
                                          + steptotal=4
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo '    Creating ioBroker user and directory (2/4)'
                                              Creating ioBroker user and directory (2/4)
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + '[' freebsd = linux ']'
                                          + '[' freebsd = freebsd ']'
                                          + create_user_freebsd iobroker
                                          + username=iobroker
                                          + id iobroker
                                          + '[' 0 -ne 0 ']'
                                          + groups=(audio bluetooth dialout gpio i2c redis tty)
                                          + declare -a groups
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group audio
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group bluetooth
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group dialout
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group gpio
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group i2c
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group redis
                                          + for grp in "${groups[@]}"
                                          + '[' true = true ']'
                                          + getent group tty
                                          tty:*:4:iobroker
                                          + pw group mod tty -m iobroker
                                          + '[' true = true ']'
                                          + mkdir -p /opt/iobroker
                                          + cd /opt/iobroker
                                          + echo 'Directory /opt/iobroker created'
                                          Directory /opt/iobroker created
                                          + touch /opt/iobroker/INSTALLER_INFO.txt
                                          + chmod 777 /opt/iobroker/INSTALLER_INFO.txt
                                          + echo 'Installer version: 2019-05-21'
                                          ++ date +%F
                                          + echo 'Installation date 2019-05-22'
                                          + echo 'Platform: freebsd'
                                          + print_step 'Installing ioBroker' 3 4
                                          + stepname='Installing ioBroker'
                                          + stepnr=3
                                          + steptotal=4
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo '    Installing ioBroker (3/4)'
                                              Installing ioBroker (3/4)
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + '[' true = true ']'
                                          + echo 'Installed as root'
                                          + npm i iobroker --loglevel error --unsafe-perm
                                          + npm i --production --loglevel error --unsafe-perm
                                          ../src/unix_dgram.cc:53:13: warning: unused function 'SetNonBlock'
                                                [-Wunused-function]
                                          inline void SetNonBlock(int fd) {
                                                      ^
                                          ../src/unix_dgram.cc:65:13: warning: unused function 'SetCloExec'
                                                [-Wunused-function]
                                          inline void SetCloExec(int fd) {
                                                      ^
                                          2 warnings generated.
                                          ../src/serialport.cpp:95:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(2, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:150:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(1, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:188:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(1, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:231:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(1, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:285:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(1, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:336:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(2, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:383:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(2, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          ../src/serialport.cpp:424:18: warning: 'Call' is deprecated
                                                [-Wdeprecated-declarations]
                                            data->callback.Call(1, argv);
                                                           ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          8 warnings generated.
                                          ../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized
                                                when used here [-Wuninitialized]
                                            data->baudRate = outbaud;
                                                             ^~~~~~~
                                          ../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to
                                                silence this warning
                                            int outbaud;
                                                       ^
                                                        = 0
                                          1 warning generated.
                                          ../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
                                            obj->callback.Call(2, argv);
                                                          ^
                                          ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
                                            NAN_DEPRECATED inline v8::Local<v8::Value>
                                            ^
                                          ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
                                          # define NAN_DEPRECATED __attribute__((deprecated))
                                                                                 ^
                                          1 warning generated.
                                          + print_step 'Finalizing installation' 4 4
                                          + stepname='Finalizing installation'
                                          + stepnr=4
                                          + steptotal=4
                                          + echo
                                          
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo '    Finalizing installation (4/4)'
                                              Finalizing installation (4/4)
                                          + echo ==========================================================================
                                          ==========================================================================
                                          + echo
                                          
                                          + INITSYSTEM=unknown
                                          + [[ freebsd = \f\r\e\e\b\s\d ]]
                                          + [[ -d /usr/local/etc/rc.d ]]
                                          + INITSYSTEM=rc.d
                                          + [[ -n '' ]]
                                          + echo 'init system: rc.d'
                                          + IOB_NODE_CMDLINE=node
                                          ++ which bash
                                          + BASH_CMDLINE=/usr/local/bin/bash
                                          + '[' iobroker '!=' root ']'
                                          + IOB_NODE_CMDLINE='sudo -H -u iobroker node'
                                          + '[' rc.d = systemd ']'
                                          + '[' rc.d = launchctl ']'
                                          ++ cat
                                          + IOB_EXECUTABLE='#!/usr/local/bin/bash
                                          sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                          + '[' freebsd = linux ']'
                                          + '[' freebsd = freebsd ']'
                                          + IOB_BIN_PATH=/usr/local/bin
                                          + '[' true = true ']'
                                          + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iobroker
                                          + ln -sfn /opt/iobroker/iobroker /usr/local/bin/iob
                                          + '[' true = true ']'
                                          + ln -sfn /opt/iobroker/iobroker /opt/iobroker/iob
                                          + echo '#!/usr/local/bin/bash
                                          sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js $@'
                                          + make_executable /opt/iobroker/iobroker
                                          + file=/opt/iobroker/iobroker
                                          + '[' true = true ']'
                                          + chmod 755 /opt/iobroker/iobroker
                                          + [[ rc.d = \i\n\i\t\.\d ]]
                                          + '[' rc.d = systemd ']'
                                          + '[' rc.d = rc.d ']'
                                          + echo 'Enabling autostart...'
                                          Enabling autostart...
                                          ++ cat
                                          + RCD_FILE='#!/bin/sh
                                          #
                                          # PROVIDE: iobroker
                                          # REQUIRE: DAEMON
                                          # KEYWORD: shutdown
                                          
                                          . /etc/rc.subr
                                          
                                          name="iobroker"
                                          rcvar="iobroker_enable"
                                          
                                          load_rc_config $name
                                          
                                          iobroker_enable=${iobroker_enable-"NO"}
                                          iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                          
                                          PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                          NODECMD=$(which node)
                                          
                                          iobroker_start ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                          }
                                          
                                          iobroker_stop ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                          }
                                          
                                          iobroker_status ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                          }
                                          
                                          PATH="${PATH}:/usr/local/bin"
                                          pidfile="${iobroker_pidfile}"
                                          
                                          start_cmd=iobroker_start
                                          stop_cmd=iobroker_stop
                                          status_cmd=iobroker_status
                                          
                                          run_rc_command "$1"'
                                          + SERVICE_FILENAME=/usr/local/etc/rc.d/iobroker
                                          + '[' true = true ']'
                                          + echo '#!/bin/sh
                                          #
                                          # PROVIDE: iobroker
                                          # REQUIRE: DAEMON
                                          # KEYWORD: shutdown
                                          
                                          . /etc/rc.subr
                                          
                                          name="iobroker"
                                          rcvar="iobroker_enable"
                                          
                                          load_rc_config $name
                                          
                                          iobroker_enable=${iobroker_enable-"NO"}
                                          iobroker_pidfile=${iobroker_pidfile-"/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid"}
                                          
                                          PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
                                          NODECMD=$(which node)
                                          
                                          iobroker_start ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start"
                                          }
                                          
                                          iobroker_stop ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js stop"
                                          }
                                          
                                          iobroker_status ()
                                          {
                                          su -m iobroker -s "/usr/local/bin/bash" -c "${NODECMD} /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js status"
                                          }
                                          
                                          PATH="${PATH}:/usr/local/bin"
                                          pidfile="${iobroker_pidfile}"
                                          
                                          start_cmd=iobroker_start
                                          stop_cmd=iobroker_stop
                                          status_cmd=iobroker_status
                                          
                                          run_rc_command "$1"'
                                          + set_root_permissions /usr/local/etc/rc.d/iobroker
                                          + file=/usr/local/etc/rc.d/iobroker
                                          + '[' true = true ']'
                                          + chown root:root /usr/local/etc/rc.d/iobroker
                                          chown: root: illegal group name
                                          + chmod 755 /usr/local/etc/rc.d/iobroker
                                          + sysrc iobroker_enable=YES
                                          iobroker_enable: YES -> YES
                                          + service iobroker start
                                          Illegal variable name.
                                          + echo 'Autostart enabled!'
                                          Autostart enabled!
                                          + echo 'Autostart: rc.d'
                                          root@iobroker_v2:~ #
                                          

                                          Edit:

                                          root@iobroker_v2:~ # iobroker start
                                          Starting iobroker controller daemon...
                                          iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
                                          Error: Failed to write pidfile (EACCES)
                                          

                                          ioBroker auf NUC (Celeron mit Ubuntu-Server)

                                          Homematic, HMIP, Hue, Unifi, Plex, Nest, Roborock, Google Assistant

                                          AlCalzoneA 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

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

                                          318

                                          Online

                                          32.7k

                                          Benutzer

                                          82.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe