Mattermost 7.10, uploading files is stuck on processing while ClamAV is on

Hi @ivan1 and welcome to the Mattermost forums!

You cannot connect to localhost:3310 from one container to the other. localhost will always only be reachable from within a container itself and all services you want to reach from there need to be running in the same container.
Each docker container gets its own IP address in your docker network and the containers can usually communicate with each other using the container names.

Can you post the output of the following commands, please?

docker inspect <mattermostcontainerid>| jq .[].NetworkSettings.Networks
docker inspect <clamavcontainerid>| jq .[].NetworkSettings.Networks

The output will look like this (I’ve removed irrelevant parts):

{
  "mm-780_default": {
    "Aliases": [
      "mm-780-mattermost-1",
      "mattermost",
      "2c68b8873807"
    ],
    "IPAddress": "172.29.0.3",
  }
}

As you can see, my container is in the network mm-780_default and has the IP address 172.29.0.3 and is reachable via the names mm-780-mattermost-1, mattermost and 2c68b8873807.

Your clamav container needs to be in the same network so that the containers can talk to each other using the docker network, alternatively you can route the traffic through your host if you do not want to put them in the same network.

If you want to communicate via the host, you need to put the IP address of the docker host (not the localhost IP) into the clamav plugin’s configuration, so that the connections goes from the mattermost container to your docker host, turns around there and goes back into your clamav container.

1 Like