-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot fetch logs for tasks in Nomad UI #8136
Comments
Can you reproduce this outside of Instruqt? |
Also, is this fixed in 0.11.3? |
@DingoEatingFuzz : I have not tried outside Instruqt yet and have not yet tried Nomad 0.11.3. But are you aware of changes in 0.11.3 that would have affected display of logs in the Nomad UI. |
@DingoEatingFuzz : I tested in Instruqt with Nomad 0.11.3 and still cannot access allocation/task logs in the Nomad UI. It would require more effort for me to test outside Instruqt. But you should be able to easily test with any Nomad 0.11.x cluster of your own by running any job. Note that I tested today with this track, https://play.instruqt.com/hashicorp/tracks/nomad-consul-connect, that is based on https://www.nomadproject.io/docs/integrations/consul-connect/#nomad-with-consul-connect-integration. So, perhaps you could test yourself by following that guide? |
I believe my problem was caused by using Instruqt. What appeared to be happening was that the Nomad UI was using a private IP within Instruqt that corresponded to the Nomad client that the allocation was running on and could not access that IP. The reason is that in Instruqt the various tabs go through a proxy and are effectively "outside" the Instruqt network. I have not had a chance to test outside Instruqt. But I'm glad to hear from @chenjpu that they did see allocation logs in Nomad 0.11.3. It's unfortunate that Nomad 0.120-beta 1 is not working for you. I suggest reporting this as a separate issue with release set to Nomad 0.12.0-beta1, so that the Nomad engineering team knows your issue is specific to the beta. |
@rberlind I'm glad you got to the bottom of that! @chenjpu This is a known issue with the current beta (see known issues here). I'm sorry you ran into it, but we're working on a beta2 which will include that fix among other things! |
@DingoEatingFuzz Thanks for your reply, I already know. :) |
Since the Instruqt issue ended up being unrelated and the 0.12.0-beta2 and 0.12.0-rc builds have fixed log streaming, I'm closing this. |
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. |
Nomad version
Nomad v0.11.2 (807cfeb)
Operating system and Environment details
Ubuntu 18.04
Issue
The Nomad UI cannot fetch allocation logs any more. It used to be able to do so. The problem started after upgrading to Nomad 0.11.x.
Reproduction steps
Run https://play.instruqt.com/hashicorp/tracks/nomad-simple-cluster and try to view logs for redis task of standard example.nomad job in Nomad UI.
Job file (if appropriate)
Nomad Client logs (if appropriate)
If possible please post relevant logs in the issue.
==> Loaded configuration from client1.hcl
==> Starting Nomad agent...
==> Nomad agent configuration:
==> Nomad agent started! Log data will stream in below:
==> Newer Nomad version available: 0.11.3 (currently running: 0.11.2)
2020-06-09T15:29:45.511Z [INFO] client.driver_mgr.docker: created container: driver=docker container_id=893fc4311350d50154ceb4cee46f3144cb426ac5ec6036934ec7ed5129712398
2020-06-09T15:29:45.824Z [INFO] client: node registration complete
2020-06-09T15:29:46.399Z [INFO] client.driver_mgr.docker: started container: driver=docker container_id=893fc4311350d50154ceb4cee46f3144cb426ac5ec6036934ec7ed5129712398
Nomad Server logs (if appropriate)
I did see the following at the end of the server log:
2020-06-09T15:29:38.649Z [ERROR] http: request failed: method=GET path=/v1/namespaces error
="Nomad Enterprise only endpoint" code=501 2020-06-09T15:29:42.130Z [ERROR] http: request failed: method=GET path=/v1/namespace/defaul
t error="Nomad Enterprise only endpoint" code=501
2020-06-09T15:36:52.629Z [ERROR] http: request failed: method=GET path=/v1/namespaces error
="Nomad Enterprise only endpoint" code=501
The text was updated successfully, but these errors were encountered: