Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with SLIME and SWANK: Lisp connection closed unexpectedly: connection broken by remote peer

I was trying to use the slime-connect function to get access to a remote server with sbcl. I followed all the steps from the slime.mov movie from Marco Baringer, but I got stuck when creating the ssh connection for slime. This is after already starting the swank server on the remote machine. I did it like this:

ssh -L 4005:127.0.0.1:4005 [email protected]

And I got this errors, on local SLIME:

Lisp connection closed unexpectedly: connection broken by remote peer

...and on the remote server:

channel 3: open failed: connect failed: Connection refused

What could possibly be wrong?

like image 925
wallyqs Avatar asked Dec 16 '08 21:12

wallyqs


3 Answers

Have you checked that the version of SLIME and SWANK you use are the same? I've had odd things happening when I've used mismatched versions of those two halves of a SLIME session.

like image 175
Vatine Avatar answered Oct 14 '22 16:10

Vatine


I don't know, but you can try to connect to swank on remote machine locally.

ssh [email protected]
telnet 127.0.0.1:4005

May be there you will find errors. Also you can try localhost:4005 instead of 127.0.0.1 and check if localhost interface is properly configured.

like image 35
Anton Nazarov Avatar answered Oct 14 '22 14:10

Anton Nazarov


The easiest thing to miss is the tcp port the swank server listens on. I haven't been doing a lot of remote development lately, but I remember that the first times I did, I had a bit of trouble understanding how to tell swank which port to bind, or to find out which one it picked.

Would you mind expanding on how you actually started the swank server?

like image 36
JB. Avatar answered Oct 14 '22 15:10

JB.