User.create REST API timeout!

It has actually been or is being created, but the users.create api interface never returns and eventually times out!
users.register api also has the same problem!

I am using the
docker-compose.yml

volumes:
  mongodb_data: { driver: local }

services:
  rocketchat:
    # image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest}
    image: rocket.chat:${RELEASE:-latest}
    restart: on-failure
    labels:
      traefik.enable: "true"
      traefik.http.routers.rocketchat.rule: Host(`${DOMAIN}`)
      traefik.http.routers.rocketchat.tls: "true"
      traefik.http.routers.rocketchat.entrypoints: https
      traefik.http.routers.rocketchat.tls.certresolver: le
    environment:
      MONGO_URL: "${MONGO_URL:-\
        mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
        ${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
      MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
        -mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
        local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
      ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
      PORT: ${PORT:-3000}
      DEPLOY_METHOD: docker
      DEPLOY_PLATFORM: ${DEPLOY_PLATFORM}
      ROCKETCHAT_USER: bot
      ROCKETCHAT_PASSWORD: bot
      BOT_NAME: bot
      RESPOND_TO_DM: "true"
      RESPOND_TO_LIVECHAT: "true"
      ROCKETCHAT_URL: "http://192.168.0.124:3000"
      EXTERNAL_SCRIPTS: hubot-pugme,hubot-help
      CREATE_TOKENS_FOR_USERS: "true"
    depends_on:
      - mongodb
    expose:
      - ${PORT:-3000}
    ports:
      - "${BIND_IP:-0.0.0.0}:${HOST_PORT:-3000}:${PORT:-3000}"

  mongodb:
    image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
    restart: on-failure
    volumes:
      - mongodb_data:/bitnami/mongodb
    environment:
      MONGODB_REPLICA_SET_MODE: primary
      MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
      MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
      MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
      MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
      MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
      MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
      ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}

I know some of the environment variables aren’t needed, but that shouldn’t be the cause of these phenomena!

Hi! Welcome to our Community :slight_smile:

Can you please:
1 - State the version you are running
2 - Provide us a curl command that I can run myself and replicate this issue?

Also, is there any outstanding logs from Rocket.Chat?

Thanks!

RELEASE=4.8.4

dolphin@dolphin:~/dockerdir/rocketchat$ curl -X POST --header "X-Auth-Token: Vqt68JGoy-Hndv-hHhkae8CT1Cyel-BQDgCD3FKjhGg" --header "Content-Type:application/json" --header "X-User-Id: ciZhnbuKpEtuWhb6c" --data '{
  "roles": [
    "user"
  ],
  "name": "a220830002",
  "username": "a220830002",
  "statusText": "",
  "bio": "",
  "nickname": "",
  "email": "a220830003@test.com",
  "password": "hhh",
  "verified": true,
  "requirePasswordChange": false,
  "setRandomPassword": false,
  "sendWelcomeEmail": false,
  "joinDefaultChannels": true,
  "customFields": {}
}' http://localhost:3000/api/v1/users.create
curl: (52) Empty reply from server

I’m guessing it might be a mail service! But I didn’t change the configuration!

Is there any way to make sure the mail service is off! I already have this feature in my own app!

solved !

API users.create · Issue #24954 · RocketChat/Rocket.Chat · GitHub

One suggestion: all default settings should be based on no network!

thx, your reply !

Nice catch.

Thanks for sharing! :hugs: