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

Failure to start Jupyter? #28

Closed
Tony-64 opened this issue Oct 15, 2021 · 7 comments
Closed

Failure to start Jupyter? #28

Tony-64 opened this issue Oct 15, 2021 · 7 comments

Comments

@Tony-64
Copy link

Tony-64 commented Oct 15, 2021

Hi,

Unfortunately, I experienced a full system crash while I was running Sage 9.4 (screen going black, followed by a restart). Following the crash, the app fails to start Jupyter (i.e. Safari complains that it failed to open the page localhost:8888/tree?token=... because it could not connect to the server localhost). Upgrading to v1.2.1 didn't resolve the issue.

Interestingly enough, I can still start the Jupyter server by opening a terminal and running sage -n Jupyter. Moreover, for any other account on the machine (such as the guest account), I can start Jupyter from the app as usual.

I guess the crash messed up one or more of the access controls in my account. However, I have no clue about how to resolve the issue. Any thoughts about what can be wrong and how to repair it? Would the app be able to give some diagnostic information to help the user troubleshoot the problem?

Thanks!

@Tony-64 Tony-64 changed the title Failure to start Jupiter? Failure to start Jupyter? Oct 15, 2021
@NathanDunfield
Copy link
Member

Try deleting the folder ~/Library/Application Support/SageMath/9.4/Jupyter.

@Tony-64
Copy link
Author

Tony-64 commented Oct 15, 2021

Yes, this worked! It could be helpful to remove this folder automatically when the app detects a problem with starting Jupyter, or at the very least when running a fresh install.

@an-algebraic-geometer
Copy link

Hi!

I have installed sagemath 9.4 on my mac but the app fails to start Jupyter saying the localhost is refused to connect. what should I do to fix this?

Thanks!

@culler
Copy link
Member

culler commented Dec 23, 2021

Please try the suggestion above: delete the folder ~/Library/Application Support/SageMath/9.4/Jupyter.

@an-algebraic-geometer
Copy link

Thanks a lot! finally, It worked.!!

@culler
Copy link
Member

culler commented Feb 2, 2022

In the SageMath 9.5 release this will be handled automatically. At startup the app will verify that each of the kernel process descriptors actually corresponds to a running kernel, and delete it if that is not the case.

I will close this ticket now and hope that we will not see this issue again with 9.5 or later.

@dimpase
Copy link

dimpase commented Apr 23, 2024

This seems to be still a problem for some users of Sage 10.3, see https://groups.google.com/g/sage-support/c/tMipcvECiFY/m/9jnN6FhmBAAJ

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