Eclipse mqtt error

My mqtt config:

version: '2'
services:
  mosquitto:
      image: eclipse-mosquitto
      container_name: mosquitto
      volumes:
        - /opt/AppConfig/mosquitto:/mosquitto
        - /opt/AppConfig/mosquitto/data:/mosquitto/data
        - /opt/Appconfig/mosquitto/log:/mosquitto/log
      ports:
        - 1883:1883
        - 9001:9001`

I’ve had this eclipse-mosquitto error for a long time that I can’t find a solution for:

500 - Internal Server Error
Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker-compose --file ‘/opt/AppConfig//mqtt/mqtt.yml’ --env-file ‘/opt/AppConfig//mqtt/mqtt.env’ up -d 2>&1’: Starting mosquitto … ERROR: for mosquitto a bytes-like object is required, not ‘str’ ERROR: for mosquitto a bytes-like object is required, not ‘str’ Traceback (most recent call last): File “/usr/lib/python3/dist-packages/docker/api/client.py”, line 261, in _raise_for_status response.raise_for_status() File “/usr/lib/python3/dist-packages/requests/models.py”, line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.22/containers/2d3ba87a68c0e2866bce629fed1e8fd18a557b8bbc68ab66db28b7824b888197/start During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/usr/lib/python3/dist-packages/compose/service.py”, line 625, in start_container container.start() File “/usr/lib/python3/dist-packages/compose/container.py”, line 241, in start return self.client.start(self.id, **options) File “/usr/lib/python3/dist-packages/docker/utils/decorators.py”, line 19, in wrapped return f(self, resource_id, *args, **kwargs) File “/usr/lib/python3/dist-packages/docker/api/container.py”, line 1095, in start self._raise_for_status(res)…