Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Gong-Files #277

Open
cavernerg opened this issue Aug 2, 2023 · 9 comments
Open

Error with Gong-Files #277

cavernerg opened this issue Aug 2, 2023 · 9 comments

Comments

@cavernerg
Copy link

cavernerg commented Aug 2, 2023

Describe the bug
Bei Auswahl einer beliebigen mp3 erhalte ich seit Kurzem den Fehler:

sayit.0 2023-08-02 17:40:52.311 error Cannot play file: Error: Cannot upload file "tts.userfiles/gong.mp3" to state: Error: ENOENT: no such file or directory, open 'tts.userfiles/gong.mp3'
sayit.0 2023-08-02 17:40:52.308 error Cannot write file: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object

To Reproduce
Steps to reproduce the behavior:

  1. open sayit-instance
  2. define as "browser" ,
  3. use any mp3 file of your choice (or take the zip file attached here)
  4. klick "Test" (not!! the green play button!)
  5. See error / browser plays test-text without the gong

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
grafik

Versions:

  • Adapter version: 3.0.5
  • JS-Controller version: 4.0.24
  • Node version: 16.20.0
  • Operating system: ubuntu

Additional context
Add any other context about the problem here.
when uploading through the instance-settings, this error occurs: "Cannot upload file: sayit.0 is not an object of type "meta""
gong.zip

@cavernerg
Copy link
Author

Dieser Fehlermeldung erscheint auch hin und wieder ohne erkennbaren Zusammenhang oder Auswirkung:

sayit.0 2023-08-04 17:47:17.604 error Error: dns service error: unknown

@Apollon77
Copy link
Contributor

dns service error couldmean that your used/configured nameserver has issues

@cavernerg
Copy link
Author

cavernerg commented Aug 8, 2023

I checked that - the lxc is set to 8.8.8.8 which should be fine. (checked via ifconfig)

//Btw how can I upload gong mp3 files through GUI?

@uklatt
Copy link

uklatt commented Aug 14, 2023

Same "dns service" error here:

2023-08-14 10:54:09.211  - info: sayit.0 (989) starting. Version 3.0.5 in /opt/iobroker/node_modules/iobroker.sayit, node: v18.17.1, js-controller: 4.0.24
2023-08-14 10:54:09.224  - info: sayit.0 (989) Upload announce mp3 files
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
2023-08-14 10:55:04.769  - error: sayit.0 (989) Error: dns service error: unknown
2023-08-14 10:55:06.766  - info: sayit.0 (989) saying: Hallo 1
2023-08-14 10:55:07.012  - info: sayit.0 (989) Set "chromecast.0.e4f042148eb0.player.announcement to {"url":"http://192.168.178.223:8082/sayit.0/tts.mp3?ts=1692003307012","volume":32}
2023-08-14 10:55:10.018  - debug: sayit.0 (989) chromecast.0.e4f042148eb0.player.announcement finished playing announcement: {"url":"http://192.168.178.223:8082/sayit.0/tts.mp3?ts=1692003307012","volume":32}
2023-08-14 10:55:47.379  - info: sayit.0 (989) stopping...
2023-08-14 10:55:47.380  - info: sayit.0 (989) stopping...
2023-08-14 10:55:47.383  - debug: sayit.0 (989) Plugin sentry destroyed
2023-08-14 10:55:47.384  - info: sayit.0 (989) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason

Uwe

@christofkac
Copy link

I have the same problem.
After a NodeJS update I got the error
Error: The module '/opt/iobroker/node_modules/mdns/build/Release/dns_sd_bindings.node'was compiled against a different Node.js version usingNODE_MODULE_VERSION 72. This version of Node.js requiresNODE_MODULE_VERSION 108. Please try re-compiling or re-installingthe module (for instance, using npm rebuildornpm install).

Then I recompiled mdns with
iobroker rebuild mdns --install
and now the incompatibility error is gone but I get the Avahi related errors:
ioBroker Log:
sayit.0 | 2023-09-02 11:57:07.321 | error | Error: dns service error: unknown
Syslog:

Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility Layer of Avahi.
Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** Please fix your application to use the native API of Avahi!
Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** Please fix your application to use the native API of Avahi!
Sep  2 11:57:07 ioBrokerProductive node[940362]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>

@Apollon77
Copy link
Contributor

@christofkac COuld it be permissions? iobroker processes are executed as user "iobroker" and not as normal user.... sowhen you check manually please alo execute as this user to verify

@instalator
Copy link
Contributor

image

@instalator
Copy link
Contributor

instalator commented Sep 21, 2023

image

image

<ul class="MuiList-root MuiList-padding MuiMenu-list css-r8u8y9" role="listbox" tabindex="-1">
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="tts.userfiles/air.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="tts.userfiles/air_2.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters Mui-selected MuiMenuItem-root MuiMenuItem-gutters Mui-selected css-hfhr79" tabindex="0" role="option" aria-selected="true" data-value="tts.userfiles/air_3.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="tts.userfiles/gong.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="tts.userfiles/mp3_silence_1sec.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
   <li class="MuiButtonBase-root MuiMenuItem-root MuiMenuItem-gutters MuiMenuItem-root MuiMenuItem-gutters css-hfhr79" tabindex="-1" role="option" aria-selected="false" data-value="tts.userfiles/scifi.mp3">
      <div class="MuiListItemIcon-root css-5n5rd1">
         <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="MusicNoteIcon">
            <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"></path>
         </svg>
      </div>
      <div class="MuiListItemText-root css-1tsvksn"><span class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-yb0lig">air_3.mp3</span></div>
      <span class="MuiTouchRipple-root css-w0pj6f"></span>
   </li>
</ul>

Если нажать в настройках кнопку тест, то зачем то создает фал тут:
image

@christofkac
Copy link

@christofkac COuld it be permissions? iobroker processes are executed as user "iobroker" and not as normal user.... sowhen you check manually please alo execute as this user to verify

I recompiled the component using the user iobroker user and confirmed that the files are all owned by iobroker:iobroker. So this is not the problem but when I searched in the Internet for this error, also other users reported the same and gave up on resolving this ;-) (e.g. link).
Seems that this error is around since many years.

If you have any idea, I'm happy to try it out - but it does not harm as it looks
Bye
Christof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants