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

Vault OSS UI 404 page not found #4345

Closed
astraios opened this issue Apr 12, 2018 · 6 comments
Closed

Vault OSS UI 404 page not found #4345

astraios opened this issue Apr 12, 2018 · 6 comments

Comments

@astraios
Copy link

Environment:
I just upgraded my vault from 0.9.6 to 0.10.0 and Vault UI is not reachable

  • Vault Version: 0.10.0
  • Operating System/Architecture: Centos7, docker

Vault Config File:

        storage "consul" {
          address = "consul.addr:port"
          path    = "consul.path"
          token   = "consul.token"
        }
        listener "tcp" {
          address     = "0.0.0.0:8200"
          tls_disable = true
        }

Startup Log Output:

==> Vault server configuration:

             Api Address: http://vault.addr
                     Cgo: disabled
         Cluster Address: https://vault.cluster.addr
              Listener 1: tcp (addr: "0.0.0.0:8200", cluster address: "0.0.0.0:8201", tls: "disabled")
               Log Level: info
                   Mlock: supported: true, enabled: true
                 Storage: consul (HA available)
                 Version: Vault v0.10.0
             Version Sha: 5dd7f25f5c4b541f2da62d70075b6f82771a650d

==> Vault server started! Log data will stream in below:

2018-04-12T21:09:16.801Z [WARN ] storage.consul: appending trailing forward slash to path

Expected Behavior:

UI should be accessible

Actual Behavior:

I got 404 page not found.

Steps to Reproduce:

I don't know, I just use my web browser to the vault URL, I got 404 there, if I try /ui, I get a 404 too.

Important Factoids:

I'm upgrading from 0.9.6 to 0.10.0. I might be missing something, the documentation speaks of nothing in particular to enable UI, I tried in -dev mode and it works on my laptop.

Thanks for your help

@calvn
Copy link
Contributor

calvn commented Apr 12, 2018

Did you enable the UI via the configuration file or environment variable (VAULT_UI)?

The UI is enabled by default in -dev mode, but otherwise you'd have to explicitly enable it.

@astraios
Copy link
Author

It seems that I fell asleep while reading the doc......

I'll try that, sorry for the inconvenience.

And thx for your help

@durgasudharshanam
Copy link

durgasudharshanam commented May 24, 2018

Hi ,
I have enabled UI in config file, but still getting the error "404 page not found". can some one help

ui = true
storage "consul" {
address = "127.0.0.1:8500"
path = "hashicorp/vaultdir/data"
}

listener "tcp" {
address = "10.2.2.43:8200"
tls_disable = 1
}

@dekimsey
Copy link
Collaborator

dekimsey commented Jun 2, 2018

I ran into this myself, mostly because I read the hashicorp guide and it doesn't mention it.

@devops-rob
Copy link
Contributor

devops-rob commented Aug 30, 2018

I'm having a slightly different issue with the Vault OSS docker image. Running in dev mode for a POC, i expected to be able to access the ui via port 8200 but i'm getting a connection refused. I'm running the version 0.11.0-beta1 image which i believe has the UI built in to it

@calvn
Copy link
Contributor

calvn commented Aug 30, 2018

@robertraybarnes you need to bind the container port to the host port if you want to access it from your host. Try adding -p 8200:8200 to your docker run ... command.

@devops-rob
Copy link
Contributor

@calvn That did the trick in my local environment - thanks. I'm hosting vault on AKS in azure so i need to map the ports on that too

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

5 participants