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

Nomad UI showing 'vUnknown' #10672

Closed
bjornicus opened this issue May 30, 2021 · 6 comments · Fixed by #10755
Closed

Nomad UI showing 'vUnknown' #10672

bjornicus opened this issue May 30, 2021 · 6 comments · Fixed by #10755
Assignees
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/api HTTP API and SDK issues theme/ui type/bug

Comments

@bjornicus
Copy link

bjornicus commented May 30, 2021

Nomad version

Nomad v1.1.0 (2678c36)

Operating system and Environment details

Linux 4.15.0-1002-azure-fips #2-Ubuntu SMP Wed May 27 01:47:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Issue

The nomad UI is showing the version as vUknown:
image

Reproduction steps

unsure.

Expected Result

it should show V1.1.0

Actual Result

it shows vUnknown


And as I'm finishing writing this up I refreshed the UI and it now shows the expected v1.1.0. What I think happened is I had upgraded the server nodes to 1.1.0 but not the clients yet. I just finished adding new clients with 1.1.0 and removed all of the old (1.0.4) clients. Does vUnknown just mean I have a mix of different versions? Being connected to the server I was expecting to see the server nomad version in the UI.

@tgross
Copy link
Member

tgross commented Jun 1, 2021

Hi @bjornicus! I'm not one of our UI experts but it looks like this is bubbling up from app/services/system.js#L42 which is a call to /v1/agent/self. What was happening here probably depends on a bit on which agent you were getting the web UI from. Was that from one of the new servers?

@the-maldridge
Copy link

I have observed this on a homogeneous 1.1.0 fleet as well. At first I thought it might be because my binaries did not have all of the version symbols defined at build time, but I have also observed this occasionally with Hashicorp provided binaries in my testing cluster which is also 1.1.0.

@bjornicus
Copy link
Author

I'm not actualy sure if I was getting the UI from. We have a load balancer in front of them so I'd get a random one of 3 servers. I think I did connect directly to a specific instance (running new) as well to check, but I'm not certain. I also think even after upgrading all 3 servers I was still seeing this until the clients also were upgraded, based on what I wrote above, which means I definitely would have been getting UI from the new server.

FWIW, I have definitely seen vUnknown previously, so this is not a new issue with 1.1.0.

@bfqrst
Copy link

bfqrst commented Jun 3, 2021

Can confirm this on v1.1.0 AND on earlier builds. In my setup this happens when the UI is reverse proxied from a Caddy...

@tgross tgross added stage/accepted Confirmed, and intend to work on. No timeline committment though. and removed stage/waiting-reply labels Jun 7, 2021
@tgross
Copy link
Member

tgross commented Jun 7, 2021

Thanks folks. I've marked the bug as accepted and we'll get it on the roadmap to fix. There's a couple things to detangle here: the goofy behavior of the web UI concatenating "v" and "Unknown" and why the API might be returning an unknown value here for what should be local to the same host that's serving the web UI itself.

@tgross tgross added the theme/api HTTP API and SDK issues label Jun 7, 2021
@ChaiWithJai ChaiWithJai self-assigned this Jun 7, 2021
ChaiWithJai added a commit that referenced this issue Jul 11, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/api HTTP API and SDK issues theme/ui type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants