Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'find' of undefined When trying to inspect WF containers in UI #4745

Closed
avifried1 opened this issue Dec 15, 2020 · 2 comments
Labels

Comments

@avifried1
Copy link

Summary

Happens only for specific workflow (regardless of exit status). Reproduce in dashboard:

  • Go to workflow.
  • Press running pod.
  • Go to Containers section.

Console throws:

TypeError: Cannot read property 'find' of undefined
    at Object.t.getResolvedTemplates (template-resolution.ts:19)
    at n.render (workflow-node-info.tsx:240)
    at Oi (react-dom.production.min.js:173)
    at Ti (react-dom.production.min.js:172)
    at Ni (react-dom.production.min.js:180)
    at Ua (react-dom.production.min.js:232)
    at Xa (react-dom.production.min.js:233)
    at Os (react-dom.production.min.js:249)
    at Cs (react-dom.production.min.js:248)
    at Ps (react-dom.production.min.js:251)

Component stack:

Component Stack

    in n
    in div
    in div
    in t
    in div
    in Unknown
    in div
    in div
    in div
    in div
    in div
    in Unknown
    in t
    in t
    in t
    in Unknown
    in t
    in t
    in t
    in div
    in Unknown
    in t
    in n

Diagnostics

What version of Argo Workflows are you running? 2.12.0-rc5

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: graph-template
  labels:
    job-name: graph
spec:
  entrypoint: graph
  arguments:
    parameters:
      - name: date
        value: ""
      - name: range
        value: ""
      - name: debug
        value: "false"
  workflowMetadata:
    labels:
      app-group: general
  ttlStrategy:
    secondsAfterSuccess: 1209600
    secondsAfterFailure: 604800
  activeDeadlineSeconds: 86400

  templates:
  - name: graph
    volumes:
      - name: graph-config-volume
        configMap:
          name: graph-config-map
          items:
            - key: config-as-json
              path: configApp.json
    inputs:
      parameters:
      - name: date
      - name: range
      - name: debug
        default: "false"
    container:
      image: "11111111.dkr.ecr.us-east-1.amazonaws.com/image-name:latest"
      args:
        - "--date"
        - "{{inputs.parameters.date}}"
        - "--range"
        - "{{inputs.parameters.range}}"
      imagePullPolicy: Always
      env:
        - name: ENV
          value: prod
      volumeMounts:
        - name: graph-config-volume
          mountPath: /etc/config

No controller log errors


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@paalkr
Copy link

paalkr commented Dec 15, 2020

I believe this bug is the same as #4691, which is now fixed in master.
You can test using test image that @alexec created, argoproj/argocli:fix-4691

@alexec
Copy link
Contributor

alexec commented Dec 15, 2020

This is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants