Skip to content

Invalid Token Error When Using ArgoCD Step #20

Description

@JasonKAls

Hey guys,

So i'm building a pipeline which utilizes the argocd-sync step in CF and getting the following error:

Running plugin sync_and_wait_with_flags
Pulling image codefresh/cf-argo-plugin:0.2.2
Digest: sha256:bff036a470a2757035eb3e5af5e063870ec8c3143068bcb824009d67ed42eb10
Status: Image is up to date for codefresh/cf-argo-plugin:0.2.2
------------------------------
�[32mExecuting command:�[39m cf-argo-plugin sync "root-application" --cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="ip-dev-build-blue" --argo-host= --argo-username= --argo-password="" --sync=true --prune=false --wait-healthy=false --wait-suspend=false --debug=false --revision="" --wait-additional-flags="" --out-commands-file /codefresh/volume/${CF_BLOCK_NAME}-argo-executor --out-export-file /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
------------------------------
�[32mExecuting command:�[39m chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
------------------------------
�[32mExecuting command:�[39m chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
------------------------------
�[32mExecuting command:�[39m /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
Exporting runArgoCd_CF_OUTPUT_URL=https://argocd-server.argocd.svc.cluster.local/applications/root-application

------------------------------
�[32mExecuting command:�[39m export ARGOCD_OPTS=$(echo --loglevel debug --timeout 1200 | tr "," " ")
------------------------------
�[32mExecuting command:�[39m echo ARGOCD_OPTS=$ARGOCD_OPTS >> /meta/env_vars_to_export
Successfully ran freestyle step: Run ArgoCD
Reading environment variable exporting file contents.
Pulling image codefresh/cf-argo-plugin:0.2.2
Digest: sha256:bff036a470a2757035eb3e5af5e063870ec8c3143068bcb824009d67ed42eb10
Status: Image is up to date for codefresh/cf-argo-plugin:0.2.2
------------------------------
�[32mExecuting command:�[39m /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
Exporting runArgoCd_CF_OUTPUT_URL=https://argocd-server.argocd.svc.cluster.local/applications/root-application

�[31mFATA�[0m[0000] rpc error: code = Unauthenticated desc = invalid session: token signature is invalid 
Reading environment variable exporting file contents.
�[31m[SYSTEM] 
 �[31mMessage�[39m             �[31mFailed to run freestyle step: ExecuteArgoCd�[39m                                                        
 �[32mCaused by�[39m           Container for step title: ExecuteArgoCd, step type: freestyle, operation: Freestyle step. Failed   
                     with exit code: 20                                                                                 
 �[32mDocumentation Link�[39m  https://codefresh.io/docs/docs/codefresh-yaml/steps/freestyle/                                     
 �[32mExit code�[39m           20                                                                                                 
 �[32mName�[39m                NonZeroExitCodeError                                                                               �[0m
------
�[31m[SYSTEM] 
 �[31mMessage�[39m             �[31mstep: sync_and_wait_with_flags failed�[39m                                                              
 �[32mCaused by�[39m           plugin failed                                                                                      
 �[32mDocumentation Link�[39m  https://codefresh.io/docs/docs/codefresh-yaml/steps                                                �[0m

Using the following argocd-sync step configuration:

    title: Sync ArgoCD app and wait
    type: argocd-sync
    stage: "gitops"
    arguments:
      context: ip-dev-build-blue
      app_name: root-application
      additional_flags: '--loglevel debug --timeout 1200

Can you provide guidance on how to solve this issue? ArgoCD agent is healthy.

Thanks in advance!!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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