Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. ioBroker auf Mac - Fehlermeldung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED ioBroker auf Mac - Fehlermeldung

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

      Ich brauche von den Mac-Usern ein bisschen Hilfe zur Fehlereingrenzung:

      1. Login als root:
        sudo su
      2. Informationen ausgeben:
        launchctl, in der folgenden Zeile export eingeben. Was dann folgt bitte hier posten. exit eingeben
      3. Login als iobroker:
        sudo su -s /bin/sh iobroker
      4. Schritt 2 wiederholen, Informationen ebenfalls hier posten
      5. Ausloggen: exit (und ggf. nochmal)
      Stuebi 1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @Stuebi last edited by

        @Stuebi
        Punkt 2 lässt sich wohl nicht so ohne weiteres anwenden - ich hab eine Anleitung aus 2010 gefunden...
        Probiere mal bitte folgendes:

        1. Suche folgende Datei:
          /Users/${IOB_USER}/Library/LaunchAgents/org.ioBroker.LaunchAtLogin.plist, wobei du ${IOB_USER} durch deinen Usernamen ersetzt.
        2. Öffne sie mit einem Texteditor. Diese sollte etwa so aussehen, nur dass die ganzen Platzhalter durch Werte ersetzt sind:
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
        <dict>
        	<key>Label</key>
        	<string>${PLIST_FILE_LABEL}</string>
        	<key>ProgramArguments</key>
        	<array>
        		<string>${NODECMD}</string>
        		<string>${CONTROLLER_DIR}/iobroker.js</string>
        		<string>start</string>
        	</array>
        	<key>KeepAlive</key>
        	<true/>
        	<key>RunAtLoad</key>
        	<true/>
        </dict>
        </plist>
        
        1. Füge vor dem schließenden </dict> folgende Zeilen ein:
        <key>EnvironmentVariables</key>
        <dict>
          <key>PATH</key>
          <string>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
        </dict>
        
        1. Datei speichern, ioBroker (oder ggf. das System) neu starten.
        Stuebi 1 Reply Last reply Reply Quote 0
        • Stuebi
          Stuebi @AlCalzone last edited by

          @AlCalzone sagte in ioBroker auf Mac - Fehlermeldung:

          Bei Punkt 2 benötige ich einmal Unterstützung. Wenn ich launchtrl aufrufe bekomme ich folgende Liste ausgegeben:

          Usage: launchctl <subcommand> ... | help [subcommand]
          Many subcommands take a target specifier that refers to a domain or service
          within that domain. The available specifier forms are:
          
          system/[service-name]
          Targets the system-wide domain or service within. Root privileges are required
          to make modifications.
          
          user/<uid>/[service-name]
          Targets the user domain or service within. A process running as the target user
          may make modifications. Root may modify any user's domain. User domains do not
          exist on iOS.
          
          gui/<uid>/[service-name]
          Targets the GUI domain or service within. Each GUI domain is associated with a
          user domain, and a process running as the owner of that user domain may make
          modifications. Root may modify any GUI domain. GUI domains do not exist on iOS.
          
          session/<asid>/[service-name]
          Targets a session domain or service within. A process running within the target
          security audit session may make modifications. Root may modify any session
          domain.
          
          pid/<pid>/[service-name]
          Targets a process domain or service within. Only the process which owns the
          domain may modify it. Even root may not do so.
          
          When using a legacy subcommand which manipulates a domain, the target domain is
          inferred from the current execution context. When run as root (whether it is
          via a root shell or sudo(1)), the target domain is assumed to be the
          system-wide domain. When run from a normal user's shell, the target is assumed
          to be the per-user domain for that current user.
          
          Subcommands:
          	bootstrap       Bootstraps a domain or a service into a domain.
          	bootout         Tears down a domain or removes a service from a domain.
          	enable          Enables an existing service.
          	disable         Disables an existing service.
          	uncache         Removes the specified service name from the service cache.
          	kickstart       Forces an existing service to start.
          	attach          Attach the system's debugger to a service.
          	debug           Configures the next invocation of a service for debugging.
          	kill            Sends a signal to the service instance.
          	blame           Prints the reason a service is running.
          	print           Prints a description of a domain or service.
          	print-cache     Prints information about the service cache.
          	print-disabled  Prints which services are disabled.
          	plist           Prints a property list embedded in a binary (targets the Info.plist by default).
          	procinfo        Prints port information about a process.
          	hostinfo        Prints port information about the host.
          	resolveport     Resolves a port name from a process to an endpoint in launchd.
          	limit           Reads or modifies launchd's resource limits.
          	runstats        Prints performance statistics for a service.
          	examine         Runs the specified analysis tool against launchd in a non-reentrant manner.
          	config          Modifies persistent configuration parameters for launchd domains.
          	dumpstate       Dumps launchd state to stdout.
          	dumpjpcategory  Dumps the jetsam properties category for all services.
          	reboot          Initiates a system reboot of the specified type.
          	bootshell       Brings the system up from single-user mode with a console shell.
          	load            Bootstraps a service or directory of services.
          	unload          Unloads a service or directory of services.
          	remove          Unloads the specified service name.
          	list            Lists information about services.
          	start           Starts the specified service.
          	stop            Stops the specified service if it is running.
          	setenv          Sets the specified environment variables for all services within the domain.
          	unsetenv        Unsets the specified environment variables for all services within the domain.
          	getenv          Gets the value of an environment variable from within launchd.
          	bsexec          Execute a program in another process' bootstrap context.
          	asuser          Execute a program in the bootstrap context of a given user.
          	submit          Submit a basic job from the command line.
          	managerpid      Prints the PID of the launchd controlling the session.
          	manageruid      Prints the UID of the current launchd session.
          	managername     Prints the name of the current launchd session.
          	error           Prints a description of an error.
          	variant         Prints the launchd variant.
          	version         Prints the launchd version.
          	help            Prints the usage for a given subcommand.
          

          Export als User root:

          sh-3.2# export
          export HOME="/var/root"
          export LANG="de_DE.UTF-8"
          export LOGNAME="root"
          export MAIL="/var/mail/root"
          export OLDPWD
          export PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          export PWD="/usr/local/lib/node_modules/npm/bin"
          export SHELL="/bin/sh"
          export SHLVL="1"
          export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.P1KlzH9dbi/Listeners"
          export SUDO_COMMAND="/usr/bin/su"
          export SUDO_GID="20"
          export SUDO_UID="501"
          export SUDO_USER="thorsten.stueben"
          export TERM="xterm-256color"
          export USER="root"
          export USERNAME="root"
          export __CF_USER_TEXT_ENCODING="0x0:0:3"
          

          Export als User thorsten. Mit dem starte ich ioBroker:

          declare -x Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.bIDguCQHQs/Render"
          declare -x HOME="/Users/thorsten.xxxxxx"
          declare -x LANG="de_DE.UTF-8"
          declare -x LOGNAME="thorsten.xxxxxxx"
          declare -x OLDPWD="/usr/local/bin"
          declare -x PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          declare -x PWD="/usr/local/lib/node_modules/npm/bin"
          declare -x SECURITYSESSIONID="186c9"
          declare -x SHELL="/bin/bash"
          declare -x SHLVL="1"
          declare -x SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.P1KlzH9dbi/Listeners"
          declare -x TERM="xterm-256color"
          declare -x TERM_PROGRAM="Apple_Terminal"
          declare -x TERM_PROGRAM_VERSION="421.2"
          declare -x TERM_SESSION_ID="54D0DD7E-3378-4D6A-97C1-130ABCFC6123"
          declare -x TMPDIR="/var/folders/xp/z3n3d9pj34zdn81w6l02k1tm0000gn/T/"
          declare -x USER="thorsten.stueben"
          declare -x XPC_FLAGS="0x0"
          declare -x XPC_SERVICE_NAME="0"
          
          AlCalzone 1 Reply Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @Stuebi last edited by

            @Stuebi
            Punkt 2 lässt sich wohl nicht so ohne weiteres anwenden - ich hab eine Anleitung aus 2010 gefunden...
            Probiere mal bitte folgendes:

            1. Suche folgende Datei:
              /Users/${IOB_USER}/Library/LaunchAgents/org.ioBroker.LaunchAtLogin.plist, wobei du ${IOB_USER} durch deinen Usernamen ersetzt.
            2. Öffne sie mit einem Texteditor. Diese sollte etwa so aussehen, nur dass die ganzen Platzhalter durch Werte ersetzt sind:
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
            <plist version="1.0">
            <dict>
            	<key>Label</key>
            	<string>${PLIST_FILE_LABEL}</string>
            	<key>ProgramArguments</key>
            	<array>
            		<string>${NODECMD}</string>
            		<string>${CONTROLLER_DIR}/iobroker.js</string>
            		<string>start</string>
            	</array>
            	<key>KeepAlive</key>
            	<true/>
            	<key>RunAtLoad</key>
            	<true/>
            </dict>
            </plist>
            
            1. Füge vor dem schließenden </dict> folgende Zeilen ein:
            <key>EnvironmentVariables</key>
            <dict>
              <key>PATH</key>
              <string>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
            </dict>
            
            1. Datei speichern, ioBroker (oder ggf. das System) neu starten.
            Stuebi 1 Reply Last reply Reply Quote 0
            • Stuebi
              Stuebi @AlCalzone last edited by

              @AlCalzone, das war die Lösung! Danke für die Hilfe!

              Bildschirmfoto 2019-07-02 um 18.29.07.png

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

                @Stuebi Prima dass es so einfach ist - ich werde es morgen in den Fixer/Installer einbauen.

                Stuebi 1 Reply Last reply Reply Quote 1
                • Stuebi
                  Stuebi @AlCalzone last edited by Stuebi

                  @AlCalzone , ich habe eben den Fixer nochmals auf meinem Mac laufen lassen und festgestellt, dass ich danach ioBroker startet.
                  Der Teil unten fehlt:

                  <key>EnvironmentVariables</>
                  

                  So läuft es bei mir mit der Ergänzung dann:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                  <plist version="1.0">
                    <dict>
                      <key>Label</key>
                      <string>org.ioBroker.LaunchAtLogin</string>
                      <key>ProgramArguments</key>
                      <array>
                        <string>/usr/local/bin/node</string>
                        <string>/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js</string>
                        <string>start</string>
                      </array>
                      <key>KeepAlive</key>
                      <true/>
                      <key>RunAtLoad</key>
                      <true/>
                      <key>EnvironmentVariables</key>
                      <dict>
                        <key>PATH</key>
                        <string>/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
                      </dict>
                    </dict>
                  </plist>
                  
                  AlCalzone 1 Reply Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer @Stuebi last edited by AlCalzone

                    @Stuebi Oh... 😓 das sollte ich gleich ändern...

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

                      @AlCalzone , ich über meine bestehende ioBroker Version folgendes aufgerufen: curl -sL https://iobroker.net/fix.sh | bash -

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

                        @AlCalzone , mir ist noch aufgefallen, dass der Fixer ioBroker im Verzeichnis /usr/local/iobroker sucht. Ist das beim Mac anders als bei den anderen Umgebungen wo ioBroker in /opt/iobroker installiert wird?

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

                          @Stuebi Ja, da das laut meinen Recherchen der empfohlene Ordner für solche Programminstallationen ist.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          819
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

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