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

Not working through SSH port forwards #58

Closed
demianw opened this issue May 14, 2015 · 5 comments
Closed

Not working through SSH port forwards #58

demianw opened this issue May 14, 2015 · 5 comments

Comments

@demianw
Copy link

demianw commented May 14, 2015

Hi! Thanks for this wonderful tool! I'm using it a lot and many times I don't have direct access to where my files and soft are. So I use port forwarding a lot. However, this doesn't work with snakeviz.

Could it be due to absolute vs relative paths in the web application?

Thanks in advance to check this out and let me know if I can help

@jiffyclub
Copy link
Owner

Can you give a little more detail about how you're trying to start snakeviz? Are you using server-only mode?

@demianw
Copy link
Author

demianw commented May 15, 2015

Hello! I'm in a remote SSH session, using the port forwarding option
-L 8888:127.0.0.1:8888
And I'm starting snakeviz on that specific port and in server mode.

Then, I start a browser on my local machine and go to the address 127.0.0.1 port 8888

This works perfectly with other tornado-based web apps such as the ipython notebook

Thanks!

Demian Wassermann, PhD
demian.wassermann@inria.fr
Research Scientist
Athena Project Team
INRIA Sophia Antipolis - Méditerranée
2004 route des lucioles - FR-06902

On May 14, 2015, at 18:55, Matt Davis notifications@github.com wrote:

Can you give a little more detail about how you're trying to start snakeviz? Are you using server-only mode?


Reply to this email directly or view it on GitHub.

@jiffyclub
Copy link
Owner

Do you get a 404, or nothing at all?

You can't go to just the root of the app (e.g. http://127.0.0.1:8888) because there's no handler for that, it will 404. You need to go to the full URL for a specific profile. SnakeViz prints that out when you start it.

@demianw
Copy link
Author

demianw commented May 16, 2015

You're right. That was the problem! Thanks, this is a great tool.

If you give me a couple pointers, maybe I could help in adding a root handler that just performs redirection. Unless there's a reason not to have a root handler

@jiffyclub
Copy link
Owner

We might want to save the root handler to be a file browser, but I don't have any immediate plans to work on that. One thing the root handler could be for now is a list of known profiles. (You can always change the URL to open a visualization of a different profile than the one you originally started from.) I think the best way to keep that list would be as a Python set in the Tornado application's settings dictionary. The set could be updated every time SnakeViz serves a profile.

If it's something you're interested in we can talk about it more, but no rush or pressure.

yjmade added a commit to yjmade/snakeviz that referenced this issue Mar 21, 2018
jiffyclub pushed a commit that referenced this issue Jan 21, 2019
…he visualization inside the notebook as a html cell #58 #88
jiffyclub pushed a commit that referenced this issue Jan 28, 2019
…he visualization inside the notebook as a html cell #58 #88
jiffyclub pushed a commit that referenced this issue Jan 28, 2019
…he visualization inside the notebook as a html cell #58 #88
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

2 participants