Custom sounds do not work

Description

When I upload a custom sound, it uploads and gives no error. But when I try to preview the sound in the custom sound panel I hear nothing, and when the custom sound is set as a notification sound it also does not play.

This is a fresh install of Rocket.Chat.

Server Setup Information

  • Version of Rocket.Chat Server: 4.6.1
  • Operating System: Linux
  • Deployment Method: Docker Compose
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v14.18.3
  • MongoDB Version: 4.4.13 / wiredTiger (oplog Enabled)
  • Proxy: Nginx
  • Firewalls involved: None

Any additional Information

Log when I upload a custom sound:
{"level":50,"time":"2022-04-14T12:44:28.965Z","pid":110,"hostname":"0b6aded1134a","name":"System","msg":"Exception while invoking method uploadCustomSound 'The \"listener\" argument must be of type function. Received an instance of Timeout'"}

The exact same thing is happening to me. I have a sound file that I uploaded some time ago, and it works, but anything that I upload today won’t play the sound.

Server Setup:
Version: 4.8.1
Operating System: Linux
Apps Engine Version: 1.32.0
Node Version: v14.18.3
MongoDB: 4.2.17 / wiredTiger (oplog Enabled)

{“level”:50,“time”:“2022-06-30T15:51:11.911Z”,“pid”:34121,“hostname”:“rocketchat”,“name”:“System”,“msg”:“Exception while invoking method uploadCustomSound ‘The "listener" argument must be of type function. Received an instance of Timeout’”}

I have the problem.
https://—/custom-sounds/628508b373ba8334a0b65a65.mp3

Server Setup Information

Operating System: Debian 10
Deployment Method: https://releases.rocket.chat/latest/download
Version 4.8.1
Apps Engine Version 1.32.0
Node Version v14.20.0
MongoDB 5.0.9 / wiredTiger (oplog Enabled)
Commit Details HEAD: (0b106e364)
Proxy: cloudflare + Nginx

Log ngix

[14/Jul/2022:23:53:34 +0200] - - - to: 127.0.0.1:3000:(-) “GET /custom-sounds/62d09021b978b104fd67eb8f.mp3?_dc=723 HTTP/2.0” upstream_response_time: 60.002 msec 1657835614.863, request_time 60.001, args: _dc=723 504 167 “https://-/direct/FeDKeAYzcya9aLqynFfpQ8CoW9YGrMkHEK” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0”

Log rocketchat

Jul 14 23:52:34 blue rocketchat[1277]: {“level”:50,“time”:“2022-07-14T21:52:34.251Z”,“pid”:1277,“hostname”:“-”,“name”:“System”,“msg”:"Exception while invoking method uploadCustomSound 'The "listener" argument must be of type function. Received an instance of Timeout

When I open the
https://—/admin/custom-sounds
section, I see an error
Jul 15 00:34:11 blue rocketchat[1277]: {“level”:40,“time”:“2022-07-14T22:34:11.660Z”,“pid”:1277,“hostname”:“-”,“name”:“API”,“msg”:“attribute query is deprecated”}

i changed directory
from GridFS to FileSystem /opt/Rocker.Sound

drwxr-xr-x 4 rocketchat rocketchat 4096 июн 9 05:47 Rocket.Chat

i uploaded new file, but the directory (/opt/Rocker.Sound) is empty

and log
Jul 15 00:38:00 blue rocketchat[1277]: {“level”:50,“time”:“2022-07-14T22:38:00.639Z”,“pid”:1277,“hostname”:—",“name”:“System”,“msg”:“Exception while invoking method uploadCustomSound ‘The "listener" argument must be of type function. Received an instance of Timeout’”}

Hi, have you moved your Rocket.Chat instance over to another server or moved its files at all?