-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from JoshKarpel/force-stop
Add a --force option to jupyter stop
- Loading branch information
Showing
3 changed files
with
174 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _troubleshooting: | ||
|
||
.. py:currentmodule:: dask_chtc | ||
Troubleshooting | ||
=============== | ||
|
||
|
||
Jupyter | ||
------- | ||
|
||
Jupyter notebook server is stuck in the ``REMOVED`` state | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
If something goes wrong during a normal ``dask-chtc jupyter stop``, you may | ||
find that your notebook server will refuse to shut down. | ||
The notebook server status will get stuck in ``REMOVED``, like this: | ||
|
||
.. code-block:: console | ||
$ dask-chtc jupyter status | ||
█ REMOVED jupyter lab | ||
├─ Contact Address: http://127.0.0.1:8888/?token=d1717bce73ebc0e54ebeb16eeeef70811ead8eaae23e213c | ||
├─ Python Executable: /home/karpel/miniconda3/bin/python | ||
├─ Working Directory: /home/karpel | ||
├─ Job ID: 8138911.0 | ||
├─ Last status change at: 2020-07-19 21:34:02+00:00 UTC (23 minutes ago) | ||
├─ Originally started at: 2020-07-19 18:57:07+00:00 UTC (3 hours ago) | ||
├─ Output: /home/karpel/.dask-chtc/jupyter-logs/current.out | ||
├─ Error: /home/karpel/.dask-chtc/jupyter-logs/current.err | ||
└─ Events: /home/karpel/.dask-chtc/jupyter-logs/current.events | ||
Because you can only run one notebook server at a time, this will prevent you | ||
from launching a new notebook server. | ||
To resolve this issue, you should run ``dask-chtc jupyter stop --force``: | ||
|
||
.. code-block:: console | ||
$ dask-chtc jupyter stop --force | ||
000 (16453.000.000) 2020-07-21 11:58:25 Job submitted from host: <10.0.1.43:40415?addrs=10.0.1.43-40415+[2600-6c44-1180-1661-99fa-fc04-10e3-fd8d]-40415&alias=JKARPEL&noUDP&sock=schedd_20423_5f31> | ||
001 (16453.000.000) 2020-07-21 11:58:27 Job executing on host: <10.0.1.43:40415?addrs=10.0.1.43-40415+[2600-6c44-1180-1661-99fa-fc04-10e3-fd8d]-40415&alias=JKARPEL&noUDP&sock=starter_20464_7d39_11> | ||
005 (16453.000.000) 2020-07-21 11:58:30 Job terminated. | ||
(0) Abnormal termination (signal 9) | ||
(0) No core file | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Run Remote Usage | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Run Local Usage | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Total Remote Usage | ||
Usr 0 00:00:00, Sys 0 00:00:00 - Total Local Usage | ||
0 - Run Bytes Sent By Job | ||
0 - Run Bytes Received By Job | ||
0 - Total Bytes Sent By Job | ||
0 - Total Bytes Received By Job | ||
Always try stopping your notebook server with a plain ``stop`` command before | ||
trying ``stop --force``; | ||
``--force`` does not give the notebook server a chance | ||
to shut down cleanly, so your Jupyter kernels may be interrupted while in the | ||
middle of an operation. |