-
Notifications
You must be signed in to change notification settings - Fork 188
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
UI problems #1977
Comments
First one will be addressed by #1978 The second one I'm not able to replicate. When you click the logs link:
|
Regarding the second one, yes that's the link I'm talking about. It's unable to tail the slave logs for any task. Clicking that link takes me to When I look at Singularity logs, I can see that it tried to access the slave but it failed:
The Any ideas? |
Hmm, best guess is that the ip:port isn't accessible from singularity. Are you able to curl that same endpoint from the container that singularity is running in? |
So you are saying when I navigate to What does it do for you? What data do you get back? (For reference, my mesos-master is the |
As another data point, if I switch to using Does this functionality require using your |
Ah, it's missing #1949 , which we added as part of the upgrade to 1.8. We're overdue to release some new stuff anyways. I'll try and get a release put together today or tomorrow morning and get 0.23.0 out there |
Awesome thank you! Could you also please make sure #1978 gets included in there as well? |
https://github.com/HubSpot/Singularity/releases/tag/Singularity-0.23.0 just released in sonatype, jars should show up in a little while on maven central |
I downloaded 0.23 (shaded) from here. #1978 should be in this release correct? The link still has My environment at work is a bit locked down so I've been relying on these release jars to evaluate Singularity, but I'll try to build it locally. |
It should be in there. May need to hard refresh. We have one open issue on the cache headers being too aggressive and not updating nicely between releases |
Ah that was it, thank you very much! |
Unfortunately, the Logs link still doesn't work for me, I get the same message. I'm not sure how to debug this on my end, I'm not getting any errors from SingularityService I have the following images running on docker:
and I run SingularityService on the command line on the host machine (Windows 10) directly. Everything appears to be running properly and I can see the logs if I look at them in the mesos web UI. |
Ok. Places to look for stack traces:
I'd expect the first in this case. Also, I've never actually tested this all out on a windows machine, only mac/linux. So there could possibly be some weirdness there |
Oh I think I found the problem: When I click on the Logs link, the page it takes me does a call to this url:
That file actually exists on the slave but notice the Is this something easy to fix? It would be very convenient to get this working so we don't have to dig into the mesos web UI to look at logs. |
Btw, when I look at
So I imagine it's Java using the |
Ah, didn't realize that. Unfortunately there aren't a lot of dev running windows here at HubSpot. I can take a quick look and would be happy to review/merge any PRs if you find the issue as well |
Must be this https://github.com/HubSpot/Singularity/blob/master/SingularityService/src/main/java/com/hubspot/singularity/resources/SandboxResource.java#L166 . Can probably PR to generate that path in a different way |
I'm going to be away next week, but going to cc @baconmania @pschoenfelder @sjeropkipruto who might be able to finish this up as well and release 0.23.1 |
FYI, this is not forgotten, just trickier than expected. Mesos does in fact have support for windows, meaning that if I do a blanket replace \ -> /, then if this ever runs against windows mesos it would be wrong. Right now the assumption is that Singularity is running on the same os it is managing Another option for you could be to used some of our published docker images and run Singularity there |
@ssalinas Thank you for the update. Speaking of Singularity docker image, it turns out Docker for Windows currently does not support Yes I agree this is a tricky situation. In my setup, Singularity is running on Windows while Mesos slave is running inside a docker container running Linux. Could you simply use |
While running shaded jar version 0.22 (I downloaded it from here), I ran into the following problems with the UI:
On the Requests page, the DeployId links don't work because the links don't have the request-id in them. They are like this:
http://localhost:7099/singularity/request/undefined/deploy/1
. Notice it saysundefined
instead of the actual request idAfter I navigate to the Deployment page for a specific Request id using the correct link from above, I can see the history of tasks that ran for that deployment. Each task in the history has a link to its logs. However Singularity can't seem to find/read the logs on the slave. Clicking on any of them says:
I can actually view the logs if I look at them from the Mesos UI by clicking on the specific
Sandbox
link. In fact I can see bothstdout
andstderr
. For some reason, Singularity framework is unable to get to the logs.It would be great if these two UI issues could be fixed.
Thank you
The text was updated successfully, but these errors were encountered: