Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] sayit - mp3 erzeugen geht nicht mehr

    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

    [gelöst] sayit - mp3 erzeugen geht nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active @DJMarc75 last edited by

      @djmarc75 sagte in sayit - mp3 erzeugen geht nicht mehr:

      mp3s lokal drauf..

      wo genau ?

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

        @thomas-braun sagte in sayit - mp3 erzeugen geht nicht mehr:

        mount | sort

        dieter@iobroker:~$ mount | sort
        //192.168.243.100/1_Sound on /mnt type cifs (rw,relatime,vers=3.1.1,cache=strict                               ,username=dieter,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.243.100,file_mod                               e=0777,dir_mode=0777,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,                               bsize=1048576,echo_interval=60,actimeo=1,user=dieter)
        cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelega                               te,memory_recursiveprot)
        configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
        debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
        devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod                               e=000)
        /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
        /etc/auto.nfs on /home/nfs type autofs (rw,relatime,fd=6,pgrp=465,timeout=300,mi                               nproto=5,maxproto=5,indirect,pipe_ino=12034)
        fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatim                               e)
        hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
        mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
        none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
        proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
        pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
        securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relat                               ime)
        sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
        sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
        systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,time                               out=0,minproto=5,maxproto=5,direct,pipe_ino=13369)
        tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
        tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
        tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=607128k,mode=755)
        tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=607124k,nr_ino                               des=151781,mode=700,uid=1000,gid=1000)
        tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
        udev on /dev type devtmpfs (rw,nosuid,relatime,size=3017776k,nr_inodes=754444,mo                               de=755)
        dieter@iobroker:~$
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @bahnuhr last edited by

          @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

          wo genau ?

          /opt/iobroker/mp3

          bahnuhr 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

            @bahnuhr

            Bitte PuTTY breiter schieben oder gleich ein besseres Terminal verwenden. Das Ding zerhackt die Ausgaben.

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

              @thomas-braun

              so besser ?

              dieter@iobroker:~$ mount | sort
              //192.168.243.100/1_Sound on /mnt type cifs (rw,relatime,vers=3.1.1,cache=strict,username=dieter,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.243.100,file_mode=0777,dir_mode=0777,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1,user=dieter)
              cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
              configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
              debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
              devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
              /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
              /etc/auto.nfs on /home/nfs type autofs (rw,relatime,fd=6,pgrp=465,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=12034)
              fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
              hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
              mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
              none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
              proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
              pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
              securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
              sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
              sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
              systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13369)
              tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
              tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
              tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=607128k,mode=755)
              tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=607124k,nr_inodes=151781,mode=700,uid=1000,gid=1000)
              tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
              udev on /dev type devtmpfs (rw,nosuid,relatime,size=3017776k,nr_inodes=754444,mode=755)
              dieter@iobroker:~$
              
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @DJMarc75 last edited by

                @djmarc75 sagte in sayit - mp3 erzeugen geht nicht mehr:

                @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

                wo genau ?

                /opt/iobroker/mp3

                ne, den Ordner hab ich nicht !

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

                  @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

                  ne, den Ordner hab ich nicht !

                  na klar haste den nicht.... musst anlegen 😉

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

                    @djmarc75

                    Na und was soll das dann ?
                    Und wie kommt die mp3, wenn mit
                    setState('sayit.2.tts.text', "1 2 3 4");
                    erzeugt dann in dieses Verzeichnis.

                    Ich versteh jetzt deine Logik nicht so ganz.

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @bahnuhr last edited by

                      @bahnuhr

                      Man mounted nicht direkt auf /mnt sondern legt sich dort entsprechend mountpunkte an.
                      Dann würde ich da auch nicht mit uid=0 /gid=0 mounten, das ist nämlich der root und den verwenden wir nicht, der soll ja auch keine Sounds hören sondern sich schön im Hintergrund halten.

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

                        @thomas-braun sagte in sayit - mp3 erzeugen geht nicht mehr:

                        @bahnuhr

                        Man mounted nicht direkt auf /mnt sondern legt sich dort entsprechend mountpunkte an.
                        Dann würde ich da auch nicht mit uid=0 /gid=0 mounten, das ist nämlich der root und den verwenden wir nicht, der soll ja auch keine Sounds hören sondern sich schön im Hintergrund halten.

                        Ok, dann hab ich da was falsch gemacht.

                        Aber, es hat jetzt jahreslang funktioniert.
                        Und seit update auf V3 von sayit halt nicht mehr.
                        Bin jetzt wieder zurück auf V1.13. und da klappt es wieder.

                        Das Problem dürfte doch dann nicht an dem /mnt liegen, oder ?

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @bahnuhr last edited by

                          @bahnuhr sagte in sayit - mp3 erzeugen geht nicht mehr:

                          Aber, es hat jetzt jahreslang funktioniert.

                          Falsche Vorgehen funktionieren solange, bis es irgendwem auffällt, das User es falsch machen und den 'illegalen Weg' zumauern.

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

                            @thomas-braun sagte in sayit - mp3 erzeugen geht nicht mehr:

                            Falsche Vorgehen funktionieren solange, bis es irgendwem auffällt, das User es falsch machen und den 'illegalen Weg' zumauern.

                            Danke für die Antwort, das hab ich jetzt gebraucht.
                            Hilfreich war dies jetzt nicht.

                            Gut, ich hab alles falsch gemacht.
                            Und es liegt auf keinen Fall am Adapter.
                            Fazit:
                            Illegaler Weg ist gestoppt.
                            Frust.
                            Schönen Sonntag noch.

                            Thomas Braun 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

                              @bahnuhr

                              Ich hab dir doch oben was zu den mount Optionen gesagt. Umsetzen musst du das in deinem System schon selber.
                              Wobei es nicht (nur) daran liegt, aber ggfs halt auch.

                              1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @bahnuhr last edited by

                                @bahnuhr

                                Wir schaut es denn aus, wenn die ganze CIFS/SMB-Geschichte erstmal außen vor ist und du schaust was mit einer rein lokal angelegten Datei passiert?

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

                                  @thomas-braun sagte in sayit - mp3 erzeugen geht nicht mehr:

                                  was mit einer rein lokal angelegten Datei

                                  wo gespeichert ?

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @bahnuhr last edited by

                                    @bahnuhr

                                    Irgendwo wo es bestimmt keine Probleme gebe sollte.
                                    /home/iobroker z.B.

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

                                      @thomas-braun

                                      Ich glaube du verstehsst mich nicht.
                                      Oder umgedreht.

                                      Die Datei wird mit V1.13 korrekt gespeichert, wenn:

                                      setTimeout(function(){ request('http://192.168.243.15:8082/state/sayit.2.tts.mp3', {encoding:'binary'}, function(error, response, body) {
                                          fs.writeFile("/mnt/2_sayit.mp3", body, 'binary', function (err) { if(err) log('Fehler!'); }); });
                                      }, 2000);
                                       
                                      

                                      Ich kann da gerne auch ein anderes Verzeichnis probieren.

                                      Nur dies klappt halt mit V 3.0.5 nicht mehr.

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @bahnuhr last edited by

                                        @bahnuhr

                                        Doch, ich verstehe das schon.

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

                                          So, ganz neu.
                                          sayit, Adapter gelöscht.
                                          und neu installiert, jetzt 3.0.5

                                          Beim erstellen einer Instanz.2 kommt folgende log Meldungen (schon da stimmt was nicht)

                                          sayit.2
                                          2023-06-25 13:39:21.943	error	amixer is not available, so you may hear no audio. Install manually!
                                          
                                          sayit.2
                                          2023-06-25 13:39:21.936	error	sayIt.play: there was an error while playing the file: Error: spawn amixer ENOENT
                                          
                                          sayit.2
                                          2023-06-25 13:39:21.497	info	Upload announce mp3 files
                                          
                                          sayit.2
                                          2023-06-25 13:39:21.440	info	starting. Version 3.0.5 in /opt/iobroker/node_modules/iobroker.sayit, node: v18.16.1, js-controller: 4.0.24
                                          

                                          Und später kommt noch sowas:

                                          sayit.2
                                          2023-06-25 13:40:30.978	error	Error: dns service error: unknown
                                          

                                          Instanz.2 mit folgenden Einstellungen:
                                          12b906fc-c96c-499b-9be2-53b4770702ab-image.png

                                          und
                                          003840c5-1079-4a9b-b99c-27a69ab5e5f8-image.png

                                          Instanz wird dann grün.

                                          Script laufen gelassen:

                                          var request = require('request'),   fs = require('fs');
                                          setState('sayit.2.tts.text', "alles 1 2");  
                                          setTimeout(function(){ request('http://192.168.243.15:8082/state/sayit.2.tts.mp3', {encoding:'binary'}, function(error, response, body) {
                                              fs.writeFile("/home/iobroker/2_sayit.mp3", body, 'binary', function (err) { if(err) log('Fehler!'); }); });
                                          }, 2000);
                                          

                                          (auf Verz. /home/iobroker/...

                                          Datei wird erzeugt, aber nur 1 kb
                                          fd3bd790-3f97-4f3c-9dc3-5e56158fabff-image.png

                                          Und wenn ich diese dann per wscp kopieren auf win Rechner dann kommt im wmp
                                          36a44333-c80b-44c1-9950-141a9a0e5181-image.png

                                          Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @bahnuhr last edited by

                                            @bahnuhr

                                            Da scheint schonmal der amixer zu fehlen.

                                            alsa-utils sind auf dem System vorhanden?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            639
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            errorsyntaxerror unexpected sayit
                                            6
                                            78
                                            3780
                                            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