port 55555 in use error

13 views
Skip to first unread message

James Platt

unread,
Nov 8, 2021, 5:05:03 PM11/8/21
to racket users
I'm getting an error (shown below) when trying to run any code from Emacs with Racket Mode. It says to restart the REPL but that does not clear the problem. It even persists through a reboot. I was on Racket 8.0 and I tried upgrading to 8.2 to solve the problem but that did not work either.

If I take a file that has just "#lang racket ", nothing else, and hit C-c C-c in emacs, I get the following error:

Welcome to Racket v8.2 [cs].
tcp-listen: listen failed
hostname: 127.0.0.1
port number: 55555
system error: Address already in use; errno=48
context...:
/Users/jtp/.emacs.d/elpa/racket-mode-20191016.1311/racket/command-server.rkt:108:3
example_code.rkt>


To try and see what is going on, I tried the following commands after getting the error and then exiting the Racket REPL but neither showed anything using port 55555.

$ ps -fA | grep -E [r]acket


$ sudo lsof -i :55555
Password:


What can I do to get clear of this error?
Reply all
Reply to author
Forward
0 new messages