Skip to content

Permission denied error on /src/bin/annotate when running plugin in container #257

@francisco-martin-aiven

Description

@francisco-martin-aiven

Hi team 👋

I'm encountering a permission denied error when the plugin tries to execute /src/bin/annotate inside the container in:

docker \
--log-level "error" \
run \
--rm \
--volume "$artifacts_dir:/junits" \
--volume "$PLUGIN_DIR/ruby:/src" \
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN:-}" \
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_FORMAT=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_FORMAT:-}" \
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SLOWEST=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SLOWEST:-}" \
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SKIPPED=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SKIPPED:-}" \
"${RUBY_IMAGE}" ruby /src/bin/annotate /junits \
> "$annotation_path"

The error looks like this:

ruby: Permission denied -- /src/bin/annotate (LoadError)

I’ve already checked the file permissions on the host (ruby/bin/annotate), and they seem correct.

This happens at the point where the plugin runs the annotate command during the pipeline execution.

Environment

  • Plugin version: v2.6.0
  • CI environment: Buildkite agent in Podman
  • Host OS: Fedora 41

Let me know if you need any more logs or context - happy to provide more details.

Thanks in advance for your help!

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