Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44900

Getting 404 Error While Reading Vault Secret

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • hashicorp-vault-plugin
    • None
    • Jenkins for Windows v2.64, Vault for Windows v0.6.4

      Getting the following error when using the Vault plugin to access a specific secret:

      Started by user VaultAdmin
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\.test\show-vault-environment-token
      FATAL: could not read from vault: Vault responded with HTTP status code: 404 at path: secret/sandbox/common
      com.bettercloud.vault.VaultException: Vault responded with HTTP status code: 404
      at com.bettercloud.vault.api.Logical.read(Logical.java:64)
      at com.datapipe.jenkins.vault.VaultAccessor.read(VaultAccessor.java:31)
      Caused: com.datapipe.jenkins.vault.exception.VaultPluginException: could not read from vault: Vault responded with HTTP status code: 404 at path: secret/sandbox/common
      at com.datapipe.jenkins.vault.VaultAccessor.read(VaultAccessor.java:33)
      at com.datapipe.jenkins.vault.VaultBuildWrapper.provideEnvironmentVariablesFromVault(VaultBuildWrapper.java:131)
      at com.datapipe.jenkins.vault.VaultBuildWrapper.setUp(VaultBuildWrapper.java:91)
      at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
      at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      at hudson.model.Run.execute(Run.java:1735)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:415)
      Finished: FAILURE

       

            jetersen Joseph Petersen
            ojhelweg Otto Helweg
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: