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

Invalid Token Error When Using ArgoCD Step #20

Open
JasonKAls opened this issue Oct 22, 2021 · 0 comments
Open

Invalid Token Error When Using ArgoCD Step #20

JasonKAls opened this issue Oct 22, 2021 · 0 comments

Comments

@JasonKAls
Copy link

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!!!

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

No branches or pull requests

1 participant