Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. (Gelöst) Sonos Lovelace mime.lookup is not a function

    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 (Gelöst) Sonos Lovelace mime.lookup is not a function

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: DS918+
      Arbeitsspeicher: 8GB
      Festplattenart: SD
      Betriebssystem: Debian GNU/Linux 9 (stretch)
      Node-Version: 10.19.0
      Nodejs-Version: 10.19.0
      NPM-Version: 6.13.4
      Installationsart: Docker
      Image genutzt: ?
      Ort/Name der Imagedatei: https://registry.hub.docker.com/r/buanet/iobroker

      Hallo Zusammen,

      Ich bin neu hier im Forum, also verzeiht mir eventuelle Fehler.

      Wie ihr anhand meiner Systemdaten sehen könnt, nutze ich ioBroker in einem Docker Container, der wiederum auf meiner Synology NAS läuft. Ich habe diverse Adapter am laufen und nutze Lovelace zur Visualisierung.

      Nun möchte ich gerne meine SONOS Boxen in Lovelace abbilden. Am Liebsten mit dem Mini Media Player.
      Ich habe die Boxen entsprechend im ioBroker Admin in den Aufzählungen Räumen und Funktionen zugewiesen, damit sie von Lovelace erkannt werden.

      Nun zu meinem Problem:
      Wenn ich eine Box zu einer Ansicht hinzufügen möchte, stürzt der Lovelace Adapter immer ab.
      Hier der Auszug aus dem Log:

      host.ioBroker	2020-04-15 21:24:03.331	info	Restart adapter system.adapter.lovelace.0 because enabled
      host.ioBroker	2020-04-15 21:24:03.331	info	instance system.adapter.lovelace.0 terminated with code 0 (NO_ERROR)
      host.ioBroker	2020-04-15 21:24:03.330	error	Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:68:7)
      host.ioBroker	2020-04-15 21:24:03.330	error	Caught by controller[0]: at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
      host.ioBroker	2020-04-15 21:24:03.330	error	Caught by controller[0]: at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
      host.ioBroker	2020-04-15 21:24:03.330	error	Caught by controller[0]: at (anonymous function).(anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:71697)
      host.ioBroker	2020-04-15 21:24:03.330	error	Caught by controller[0]: at objects.getObject (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2491:65)
      host.ioBroker	2020-04-15 21:24:03.329	error	Caught by controller[0]: at adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.lovelace/lib/server.js:2988:44)
      host.ioBroker	2020-04-15 21:24:03.329	error	Caught by controller[0]: TypeError: mime.lookup is not a function
      lovelace.0	2020-04-15 21:24:02.772	info	(500) Terminated (NO_ERROR): Without reason
      lovelace.0	2020-04-15 21:24:02.771	info	(500) terminating
      lovelace.0	2020-04-15 21:24:02.722	info	(500) cleaned everything up...
      lovelace.0	2020-04-15 21:24:02.721	error	at process._tickCallback (internal/process/next_tick.js:68:7)
      lovelace.0	2020-04-15 21:24:02.721	error	at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
      lovelace.0	2020-04-15 21:24:02.721	error	at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
      lovelace.0	2020-04-15 21:24:02.721	error	at (anonymous function).(anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:71697)
      lovelace.0	2020-04-15 21:24:02.721	error	at objects.getObject (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2491:65)
      lovelace.0	2020-04-15 21:24:02.721	error	at adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.lovelace/lib/server.js:2988:44)
      lovelace.0	2020-04-15 21:24:02.721	error	(500) TypeError: mime.lookup is not a function
      lovelace.0	2020-04-15 21:24:02.721	error	(500) uncaught exception: mime.lookup is not a function
      

      Beim Googeln von "TypeError: mime.lookup is not a function" bin ich nur auf diesen Beitrag gestoßen, jedoch hat hier nie jemand geantwortet.
      Ich habe noch gelesen, dass es ggf. an mime 2.x liegen kann, jedoch bin ich mir nicht sicher wie ich das fixen kann.

      Zur Info: Ich habe noch einen ChromeCast, dem ich auch einen Raum und eine Funktion zugewiesen habe.
      Hier stürzt Lovelace nicht ab, wenn ich ihn zu einer Ansicht hinzufüge.

      Ich vermute es liegt am SONOS Adapter.

      Könnt Ihr mir weiterhelfen?

      Besten Dank,
      Wlad

      Edit:

      So verhält sich Lovelace beim versuch eine Mediensteuerung hinzuzufügen:

      Lovelace Error.jpg

      Editv2:

      Dieser Link hat mich auf die "Lösung" gebracht.
      Im Lovelace Adapter war mime 2 installiert, womit anscheinend der SONOS Adapter noch nicht zurecht kommt.
      Habe dann mime 2 deinstalliert und mime 1 installiert.
      Das alles in diesem Folder --> /opt/iobroker/node_modules/iobroker.lovelace

      Ich kann jedoch nicht sagen, welche negativen Auswirkungen das hat.
      Bisher läuft aber alles wie gewohnt.

      G 1 Reply Last reply Reply Quote 0
      • G
        gravidi @Wladimir22 last edited by

        @Wladimir22

        Hi Wladimir, magst du einmal posten welche Befehle du genau verwendest hast? Habe das selbe Problem. Danke!

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

        Support us

        ioBroker
        Community Adapters
        Donate

        522
        Online

        31.9k
        Users

        80.1k
        Topics

        1.3m
        Posts

        lovelace sonos adapter
        2
        2
        327
        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