Skip to content

500 Internal Server Error ("Cannot locate specified Dockerfile") with community.docker v5.0.0 #346

@vbaidak

Description

@vbaidak

Hi!

My GitHub Actions builds recently started failing, even though the Molecule configuration hasn’t changed.
It appears to be a compatibility issue between community.docker version 5.0.0 and the current Molecule plugins, as everything works correctly when using community.docker version 4.8.2

Here’s the error message:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.community.docker.plugins.module_utils._api.errors.APIError: 500 Server Error for http+docker://localhost/v1.48/build?t=molecule_local%2Fdebian%3Abookworm&q=False&nocache=False&rm=True&forcerm=True&pull=True&dockerfile=%2Fgithub%2Fhome%2F.cache%2Fmolecule%2Fansible-setup-collection%2Fdefault%2FDockerfile_debian_bookworm: Internal Server Error ("Cannot locate specified Dockerfile: /github/home/.cache/molecule/ansible-setup-collection/default/Dockerfile_debian_bookworm")

I’m using the default scenario.

This is a public project — you can check all relevant files here:

This is a public project and you can check the files:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions