Wiki Mint SystemWiki Mint System
Home
Glossary
Mint System
Chat
GitHub
Home
Glossary
Mint System
Chat
GitHub
  • Odoo Troubleshooting

    • Docker containers not available
    • Cannot grab logs
    • Unexpected keyword

Odoo Troubleshooting

Docker containers not available

Problem

After a server reboot or changing the data root of the Docker daemon the containers are not available.

Solution

Ensure that the correct data-root is set.

docker info -f '{{ .DockerRootDir}}'

Check if the containers exited.

docker ps -a

Restart all stopped containers.

docker restart $(docker ps -a -q)

Cannot grab logs

Problem

When trying to show the docker logs you get this message:

error from daemon in stream: Error grabbing logs: invalid character '{' after object key:value pair

Or this message:

error from daemon in stream: Error grabbing logs: invalid character '\x00' looking for beginning of value

Solution

Clear the container logs:

docker ps -q | xargs -I {} sh -c 'truncate -s 0 $(docker inspect --format="{{.LogPath}}" {})'

Unexpected keyword

Problem

On Ubuntu 2404 when running a Docker command with Ansible this error is thrown:

Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'

Solution

Install the Python Docker package with pip instead of apt.

Backlinks:

🔗 Docker

📝 Edit on GitHub

This page is maintained by Mint System GmbH