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

[bug]Miss the voice message mic icon. #22864

Open
lijicheng168 opened this issue Aug 5, 2021 · 6 comments
Open

[bug]Miss the voice message mic icon. #22864

lijicheng168 opened this issue Aug 5, 2021 · 6 comments

Comments

@lijicheng168
Copy link

Description:

After testing, I found that the voice message icon still exists during the local installation, but when it is started in docker mode, the voice message icon is gone. Is it because I configured it incorrectly or a certain environment variable of docker was not passed into the app correctly?
image
image

Steps to reproduce:

  1. In chanel,there should be a mic icon for sending voice message.

Expected behavior:

  1. In chanel,there should be a mic icon for sending voice message.

Actual behavior:

Server Setup Information:

docker-compose.yml

services:
  rocketchat:
    image: registry.rocket.chat/rocketchat/rocket.chat:latest
    command: >
      bash -c
        "for i in `seq 1 30`; do
          node main.js &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - PORT=8301
      - ROOT_URL=http://48.x.x.x:8301
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - MAIL_URL=smtp://smtp.email
#       - HTTP_PROXY=http://proxy.domain.com
#       - HTTPS_PROXY=http://proxy.domain.com
    depends_on:
      - mongo
    ports:
      - 8301:8301
    labels:
      - "traefik.backend=rocketchat"
      - "traefik.frontend.rule=Host: your.domain.tld"

  • Version of Rocket.Chat Server: 3.17.0
  • Operating System: Linux
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enable
  • NodeJS Version: v12.22.1
  • MongoDB Version:4.0.26 / mmapv1 (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version:Chrome Firefox
  • Operating System:Windows

Additional context

Relevant logs:

@lijicheng168 lijicheng168 changed the title Miss the voice message mic icon. [bug]Miss the voice message mic icon. Aug 5, 2021
@debdutdeb
Copy link
Member

Hi lijicheng168 👋🏼

I just checked this on 3.17.0, can't reproduce this. By default audio recording should be enabled. Are you sharing a mongodb database with another rc instance (like for example the one you're addressing as "local installation"?) where you previously disabled audio recording?

You can make sure it is enabled on startup, by passing this environment variable and value tuple to the container -

OVERWRITE_SETTING_Message_AudioRecorderEnabled=true

As a side note, I advice you not to use the latest tag. Use a specific version tag like registry.rocket.chat/rocketchat/rocket.chat:3.17.0

Thank you !

@lijicheng168
Copy link
Author

lijicheng168 commented Aug 6, 2021

Hi lijicheng168 👋🏼

I just checked this on 3.17.0, can't reproduce this. By default audio recording should be enabled. Are you sharing a mongodb database with another rc instance (like for example the one you're addressing as "local installation"?) where you previously disabled audio recording?

You can make sure it is enabled on startup, by passing this environment variable and value tuple to the container -

OVERWRITE_SETTING_Message_AudioRecorderEnabled=true

As a side note, I advice you not to use the latest tag. Use a specific version tag like registry.rocket.chat/rocketchat/rocket.chat:3.17.0

Thank you !

Thank you for response!
I have changed to use the registry.rocket.chat/rocketchat/rocket.chat:3.17.0.
OVERWRITE_SETTING_Message_AudioRecorderEnabled=true is no work.

I have test that if I use localhost or 127.0.0.1 to access,there will show the icon,but if I use the REAL IP like 48.x.x.x:8300,there will not shown the icon.
I still try the snap install,docker all have the same situation.
Thank you!

@Lucas-Simoes-SI
Copy link

Hello .. I also have the same problem, I installed via Snap and since the first login the voice icon doesn't appear

@debdutdeb
Copy link
Member

What happens when you enable audio messages? - Administration > Message > Audio Message

Can you simultaneously check the logs if something odd appears there or not?

Another thing you can try, is inspecting the send button. Look for a div with rc-message-box__audio-message class.

Do check the console as well for any clues.

@lijicheng168
Copy link
Author

I have enabled the Audio Message
image
No odd logs.
image
No rc-message-box__audio-message class.
image
Console log.
image
Thank you!

@matheusvancoll
Copy link

I'm also having the same problem, on localhost it works normally but running on some server the option simply a few

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

4 participants