Skip to content

error sending generate manifest metadata to cmp-server #25511

@heph2

Description

@heph2

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

We're trying to use a plugin for generating manifests through tanka, and we are using the CMP, actually we had using it for almost two years, without issues.
Since a couple of days we're experimenting different issues, perhaps connected between them. All our apps that use the CMP failed to sync.

First we got some issues about the application couldn't find the plugin, then we tried to specify the plugin name in all our apps. But still got some issues later, about context deadline exceeded, finally we tried to bump the timout for the CMP execution without success.

To Reproduce

Create a CMP as following

apiVersion: argoproj.io/v1alpha1
kind: ConfigManagementPlugin
metadata:
  name: tanka-argo-cmp
spec:
  version: v1.0

  generate:
    command: [sh, -c]
    args:
        - |
          set -ue ;
          ENV_DIR=$(realpath -m "environments/$ARGOCD_ENV_TK_ENV") ;
          tk show "$ENV_DIR" --dangerous-allow-redirect ${ARGOCD_ENV_EXTRA_ARGS}

  discover:
    find:
        glob: "**/jsonnetfile.json"

Deploy as a sidecar following the documentation, and finally specify the plugin name to avoid discovery and unnecessary time spent on searching for the plugin.

  plugin:
    name: tanka-argo-cmp-v1.0

Expected behavior

We expect the plugin to generate the manifests using tanka and do not throw sync errors. Also we expect the generation to be quite fast. On our laptops, tk show is almost instant, in terms of speed.

Screenshots

Image Image

Version

v3.2.1+8c4ab63

Logs

{"CWE":775,"level":"error","msg":"repository /tmp/_argocd-repo/a7dacee6-73cd-419e-8496-ce1d1032fe12 is not the match because error sending stream: error sending generate manifest metadata to cmp-server: EOF","security":2,"time":"2025-12-04T09:44:31Z"}
{"grpc.code":"Unknown","grpc.component":"server","grpc.error":"CMP processing failed for application \"welbee-staging\": could not find cmp-server plugin with name \"tanka-argo-cmp-v1.0\" supporting the given repository","grpc.method":"GenerateManifest","grpc.method_type":"unary","grpc.request.deadline":"2025-12-04T09:44:29Z","grpc.service":"repository.RepoServerService","grpc.start_time":"2025-12-04T09:43:29Z","grpc.time_ms":"61999.496","level":"error","msg":"finished call","peer.address":"10.128.2.142:21714","protocol":"grpc","time":"2025-12-04T09:44:31Z"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent:cmpConfig Management Plugin related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions