Ask Your Question

How to remove PID of defunct notebook server?

asked 2019-10-16 18:31:47 +0200

PatB gravatar image

Hi Sage users

It looks like a system crash left a lock file for a sage notebook server. I cannot run the notebook: Another Sage Notebook server is running, PID 2128. Opening web browser at http://localhost:8080/ ...

Does anyone know where this lock file is or what the procedure is to clear up this error? I have no PID 2128 running at the time this error occurs. Hence I think it is some lock file or ressource that needs to be freed or deleted. Thanks Pat

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-16 21:35:42 +0200

PatB gravatar image

Hi folks,

I tried running notebook(require_login=False) .... which produced an error and probably as a side-effect deleted the "lock" file I was looking for with the defunct pid.

Then I restarted the notebook() and it works... The terminal message told me: Executing twistd --pidfile="sage_notebook.sagenb/" -ny "sage_notebook.sagenb/twistedconf.tac"

I then checked :~/.sage/sage_notebook.sagenb for .... this file contained 3800 --- which is the currently running server.

So I suspect that if I get this problem again, alls I need to do is delete this "lock" file.

Eh bien!


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-10-16 18:31:47 +0200

Seen: 273 times

Last updated: Oct 16 '19