Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] BUG: sayit funktioniert bei win nicht zuverlässig.

    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

    UNSOLVED [gelöst] BUG: sayit funktioniert bei win nicht zuverlässig.

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hansi1234 @bahnuhr last edited by

      @bahnuhr kann ich bestätigen. Ist aber schon lange so

      1 Reply Last reply Reply Quote 1
      • bahnuhr
        bahnuhr Forum Testing Most Active last edited by

        Danke für die Antwort.

        Wäre doch schön, wenn dieser Standard-Adapter, der schon lange existiert endlich einmal richtig funktionieren würde!

        mfg

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

          Haben die anderen die den Fehler haben auch das Problem wie in https://github.com/ioBroker/ioBroker.sayit/issues/93 beschrieben ... also mit EBUSY?

          Windows oder auch Linux?

          bahnuhr created this issue in ioBroker/ioBroker.sayit

          closed mp3 wird nicht immer erzeugt. #93

          bahnuhr 1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @apollon77 last edited by

            @apollon77 sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

            Haben die anderen die den Fehler haben auch das Problem wie in https://github.com/ioBroker/ioBroker.sayit/issues/93 beschrieben ... also mit EBUSY?

            Windows oder auch Linux?

            @apollon77

            Gibt es hier was Neues?
            Wäre doch schön wenn wir dies Problem lösen könnten.

            apollon77 1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active last edited by

              Vielleicht hilft dies zur Fehlersuche:

              • sayit Instanz neu gestartet
              • in sayit debug eingeschaltet.
              setState('sayit.2.tts.text', "a b c "); 
              
              

              Im log kommt:

              sayit.2	2020-07-27 09:17:53.686	debug	(6940) Duration "a b c ": 0
              sayit.2	2020-07-27 09:17:53.685	error	(6940) File error: Error: EBUSY: resource busy or locked, open 'C:\iobroker\node_modules\iobroker.sayit\sayit.2.say.mp3'
              sayit.2	2020-07-27 09:17:53.582	debug	(6940) Cache File C:\iobroker\cache\97531baa945533aab17f6d0f5c9cba36.mp3 for "de;a b c " not found
              sayit.2	2020-07-27 09:17:53.581	info	(6940) saying: a b c
              

              Fragen:
              Wieso findet er ein cache file nicht?
              wieso busy or locked ?

              sigi234 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @bahnuhr last edited by

                @bahnuhr sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                Gibt es hier was Neues?
                Wäre doch schön wenn wir dies Problem lösen könnten.

                Was soll ich sagen ... Google gibt leider nichts sinnvolles her was mich zu irgendwelchen Vermutungen bringt.

                EIne Interessante Frage wäre ob das nur bei Windows auftritt oder auch auf Linux ... wir hatten letztens schonmal Fälle wo bei Windows unbekannterweise File Descriptoren offen geblieben waren und so logfiles nicht entfernt wurden bzw noch als "da" erkannt wurden.
                Habe da gerade keinen echten Ansatzpunkt 😞 Weiter beobachten und dokumentieren ... vllt kommt ja irgendwann mal die relevante Info

                1 Reply Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active last edited by

                  Weißt du eine Alternative wie man mp3 files erzeugen kann.

                  hatte das hier:
                  https://forum.iobroker.net/topic/33635/text-to-mp3
                  schon mal probiert.

                  Hat aber nicht so richtig geklappt.

                  apollon77 1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @bahnuhr last edited by

                    @bahnuhr Naja die Frage ist ja ... wenn es mit dem nicht tut warum sollte was anderes tun ... Man muss rausfinden wo dieses BUSY herkommt

                    1 Reply Last reply Reply Quote 0
                    • sigi234
                      sigi234 Forum Testing Most Active @bahnuhr last edited by sigi234

                      @bahnuhr

                      Gerade unter Win getestet, funktioniert einwandfrei.

                      setState('sayit.0.tts.text', "a b c "); 
                      
                      sayit.0	2020-07-27 10:27:28.741	debug	(36764) Duration "a b c ": 4
                      sayit.0	2020-07-27 10:27:28.719	info	(36764) saying: a b c
                      sayit.0	2020-07-27 10:27:19.713	debug	(36764) Duration "C:\Program Files\iobroker\Test\node_modules\iobroker.sayit/gong.mp3": 9
                      sayit.0	2020-07-27 10:27:19.662	info	(36764) saying: C:\Program Files\iobroker\Test\node_modules\iobroker.sayit/gong.mp3
                      

                      Hast du mehrer SayIt Instanzen?

                      bahnuhr 1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @sigi234 last edited by

                        @sigi234 sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                        @bahnuhr

                        Gerade unter Win getestet, funktioniert einwandfrei.

                        setState('sayit.0.tts.text', "a b c "); 
                        
                        sayit.0	2020-07-27 10:27:28.741	debug	(36764) Duration "a b c ": 4
                        sayit.0	2020-07-27 10:27:28.719	info	(36764) saying: a b c
                        sayit.0	2020-07-27 10:27:19.713	debug	(36764) Duration "C:\Program Files\iobroker\Test\node_modules\iobroker.sayit/gong.mp3": 9
                        sayit.0	2020-07-27 10:27:19.662	info	(36764) saying: C:\Program Files\iobroker\Test\node_modules\iobroker.sayit/gong.mp3
                        

                        Hast du mehrer SayIt Instanzen?

                        Manchmal klappt es, sehr oft aber nicht.
                        Wenn du es direkt hintereinander probierst dann klappt es meistens nicht.

                        und ja, habe 3 sayit instanzen

                        apollon77 1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @bahnuhr last edited by

                          @bahnuhr sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                          und ja, habe 3 sayit instanzen

                          Und die schreiben alle ins kleiche File? ... hm ... vllt sollte man da mal den Filenamen "zufälliger" machen (also pro instanz oder so)

                          bahnuhr 1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @apollon77 last edited by

                            @apollon77 sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                            Und die schreiben alle ins kleiche File? ... hm ... vllt sollte man da mal den Filenamen "zufälliger" machen (also pro instanz oder so)

                            das versteh ich jetzt nicht.

                            apollon77 1 Reply Last reply Reply Quote 0
                            • bahnuhr
                              bahnuhr Forum Testing Most Active last edited by

                              Das hat aber eigentlich nichts mit den Instanzen zu tun (glaub ich zumindest).

                              hat ja früher mit meinem win Laptop auch nicht funktioniert.

                              1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @bahnuhr last edited by

                                @bahnuhr Ja war auch blödsinn ... ist ja schon instanzspezifisch: sayit.2.say.mp3 Schade 🙂

                                Ein Log mit nem "grösseren zeitrum drim rum gibt auch nix her oder ?!

                                bahnuhr 1 Reply Last reply Reply Quote 0
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @apollon77 last edited by bahnuhr

                                  @apollon77 sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                                  @bahnuhr Ja war auch blödsinn ... ist ja schon instanzspezifisch: sayit.2.say.mp3 Schade 🙂

                                  Ein Log mit nem "grösseren zeitrum drim rum gibt auch nix her oder ?!

                                  Eigentlich nicht; zumindest fällt mir nichts auf.

                                  Wie schon erwähnt, hab ich das problem aber schon ganz lange.
                                  Und auch schon auf dem alten Rechner.

                                  P.S.
                                  Ich weiß, dass ist jetzt nicht sehr aussagefähig.
                                  Aber wo soll man ansetzen?

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

                                    Ok, installiere mal von Githbu (version bleibt gleich). Ich habe jetzt mal verhindert das versucht wird das File parallel zu beschreiben ... da gab es zwei Stellen im Code die schreiben wollten ... Keine Ahnung ob es was hilft. Wenn ja ist cool ... wenn nein bin ich erstmal wieder am Ende meiner Ideen

                                    bahnuhr 1 Reply Last reply Reply Quote 0
                                    • bahnuhr
                                      bahnuhr Forum Testing Most Active @apollon77 last edited by

                                      @apollon77 sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                                      Ok, installiere mal von Githbu (version bleibt gleich). Ich habe jetzt mal verhindert das versucht wird das File parallel zu beschreiben ... da gab es zwei Stellen im Code die schreiben wollten ... Keine Ahnung ob es was hilft. Wenn ja ist cool ... wenn nein bin ich erstmal wieder am Ende meiner Ideen

                                      Habs probiert, kam aber Fehler 25

                                      $ ./iobroker url "https://github.com/ioBroker/ioBroker.sayit/tarball/master" sayit
                                      install https://github.com/ioBroker/ioBroker.sayit/tarball/master
                                      NPM version: 6.14.4
                                      npm install https://github.com/ioBroker/ioBroker.sayit/tarball/master --loglevel error (System call)
                                      npm
                                       ERR! code EPERMnpm ERR! syscall unlinknpm ERR! path C:\iobroker\node_modules\iobroker.sayit\sayit.2.say.mp3npm ERR! errno -4048
                                      npm 
                                      ERR! Error: EPERM: operation not permitted, unlink 'C:\iobroker\node_modules\iobroker.sayit\sayit.2.say.mp3'npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'C:\iobroker\node_modules\iobroker.sayit\sayit.2.say.mp3'] {npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'C:\iobroker\node_modules\iobroker.sayit\sayit.2.say.mp3'] {npm ERR!     errno: -4048,npm ERR!     code: 'EPERM',npm ERR!     syscall: 'unlink',npm ERR!     path: 'C:\\iobroker\\node_modules\\iobroker.sayit\\sayit.2.say.mp3'npm ERR!   },npm ERR!   errno: -4048,npm ERR!   code: 'EPERM',npm ERR!   syscall: 'unlink',npm ERR!   path: 'C:\\iobroker\\node_modules\\iobroker.sayit\\sayit.2.say.mp3',npm ERR!   parent: 'iobroker'npm ERR! }npm ERR! npm ERR! The operation was rejected by your operating system.npm ERR! It's possible that the file was already in use (by a text editor or antivirus),npm ERR! or that you lack permissions to access it.npm 
                                      ERR! npm ERR! If you believe this might be a permissions issue, please double-check thenpm ERR! permissions of the file and its containing directories, or try runningnpm ERR! the command again as root/Administrator.
                                      npm
                                       ERR! A complete log of this run can be found in:npm ERR!     C:\Users\iobroker\AppData\Roaming\npm-cache\_logs\2020-07-27T09_25_58_104Z-debug.log
                                      ERROR: host.NUC-Buero Cannot install https://github.com/ioBroker/ioBroker.sayit/tarball/master: 4294963248
                                      ERROR: process exited with code 25
                                      

                                      Ich versuch es gleich nochmal.

                                      apollon77 1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @bahnuhr last edited by

                                        @bahnuhr stoppe mal die Instanz, sieht so aus als ob er das File löschen wollte als versucht wurde was rein zu schreiben

                                        1 Reply Last reply Reply Quote 0
                                        • bahnuhr
                                          bahnuhr Forum Testing Most Active last edited by

                                          Instanz gestoppt und neu versucht.

                                          Weiterhin Fehler 25:

                                          $ ./iobroker url "https://github.com/ioBroker/ioBroker.sayit/tarball/master" sayit
                                          install https://github.com/ioBroker/ioBroker.sayit/tarball/master
                                          NPM version: 6.14.4
                                          npm install https://github.com/ioBroker/ioBroker.sayit/tarball/master --loglevel error (System call)
                                          npm
                                           ERR! code EPERMnpm ERR! syscall renamenpm ERR! path C:\iobroker\node_modules\iobroker.sayitnpm ERR! dest C:\iobroker\node_modules\.iobroker.sayit.DELETEnpm ERR! errno -4048
                                          npm 
                                          ERR! Error: EPERM: operation not permitted, rename 'C:\iobroker\node_modules\iobroker.sayit' -> 'C:\iobroker\node_modules\.iobroker.sayit.DELETE'npm ERR!  [OperationalError: EPERM: operation not permitted, rename 'C:\iobroker\node_modules\iobroker.sayit' -> 'C:\iobroker\node_modules\.iobroker.sayit.DELETE'] {npm ERR!   cause: [Error: EPERM: operation not permitted, rename 'C:\iobroker\node_modules\iobroker.sayit' -> 'C:\iobroker\node_modules\.iobroker.sayit.DELETE'] {npm ERR!     errno: -4048,npm ERR!     code: 'EPERM',npm ERR!     syscall: 'rename',npm ERR!     path: 'C:\\iobroker\\node_modules\\iobroker.sayit',npm ERR!     dest: 'C:\\iobroker\\node_modules\\.iobroker.sayit.DELETE'npm ERR!   },npm ERR!   errno: -4048,npm ERR!   code: 'EPERM',npm ERR!   syscall: 'rename',npm ERR!   path: 'C:\\iobroker\\node_modules\\iobroker.sayit',npm ERR!   dest: 'C:\\iobroker\\node_modules\\.iobroker.sayit.DELETE',npm ERR!   parent: 'iobroker'npm
                                           ERR! }npm ERR! npm ERR! The operation was rejected by your operating system.npm ERR! It's possible that the file was already in use (by a text editor or antivirus),npm ERR! or that you lack permissions to access it.npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check thenpm ERR! permissions of the file and its containing directories, or try runningnpm ERR!
                                           the command again as root/Administrator.
                                          npm ERR! A complete log of this run can be found in:npm ERR!     C:\Users\iobroker\AppData\Roaming\npm-cache\_logs\2020-07-27T09_30_00_889Z-debug.log
                                          ERROR: host.NUC-Buero Cannot install https://github.com/ioBroker/ioBroker.sayit/tarball/master: 4294963248
                                          ERROR: process exited with code 25
                                          
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @bahnuhr last edited by

                                            @bahnuhr sagte in BUG: sayit funktioniert unter win nicht zuverlässig.:

                                            EPERM: operation not permitted

                                            Irgendetwas sagt das npm das nichtdarf ... lösch das verzeichnis doch mal "per hand"

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            531
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            bug sayit
                                            6
                                            95
                                            4588
                                            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