ssh: connect to host ubuntu port 22: Connection refused

Asked by Andrew New

Hi,

I have followed the instructions provided for installing ESys-Particle and everything seemed to have gone fine until I tried to run the GravityTut.py script. When I enter:

mpirun -np 5 'which mpipython' GravityTut.py

I get the message ssh: connect to host ubuntu port 22: Connection refused

followed by information starting with

"A daemon (pid 28020) died unexpectedly with status 255 while attempting
to launch so we are aborting."

I am afraid I am a new Ubuntu/unix user as well as a new ESys-Particle user, so am probably your worst nightmare!

Any help greatly appreciated.

Cheers

Andrew

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :
#1

Hi Andrew,

Thanks for your interest in ESyS-Particle and your question. I've not encountered this problem before but I suspect that it may be similar to a problem experienced by a couple of others, see this question:
https://answers.launchpad.net/esys-particle/+question/70285

For a start, I would suggest you open a terminal window and type:

sudo gedit /etc/hosts

This should open the /etc/hosts file in a text editor. Add the following lines to the top of that file:

127.0.0.1 localhost
w.x.y.z myhost.mydomain myhost

where w.x.y.z is the IP address of your PC and myhost.mydomain are your PC hostname and DNS domain respectively.

If this doesn't work, could you please let me know which version of OpenMPI you have installed. You can do this by typing the following in the terminal:

dpkg -l | grep openmpi

I hope this helps.

Cheers,

Dion.

Revision history for this message
Andrew New (andrew-new) said :
#2

Hi Dion,

Thank you for your help. I actually had another problem with my Ubuntu installation which meant I had to re-install. I took the opportunity to revert to version 8.04 and your "standard" system. After a bit of a tussle I have managed to get esys-particle to work with the bingle scripts (although I do still get some funny messages during execution and my terminal doesn't return when the run finishes, as reported by others), so today I'm generally a pretty happy bunny!

For your interest, I am planning on having a go at using esys for modelling bone graft and bone graft substitutes. These are relatively large grained particulate materials (a civil engineer or soil mechanist would call them "friable aggregates" I think, we call them "morcellised" since they are made by grinding up bits of solid bone). We've used (continuum) finite element models in the past but I've never really been comfortable with the assumptions that are made, mostly due to the relative scales of the particle size and the graft layer thicknesses used in practice. I don't think anyone else has tried modelling bone graft with DEM. I am guessing I am going to have to get into using multiple spherical particles in clusters to try and represent the geometrically complex graft particles. I'll let you know how I get on (and no doubt come begging for more help!).

Cheers

Andrew

Andrew New
Apogee Engineering Analysis Solutions Ltd
11 Denbigh Road, Norwich, NR2 3AA, UK
T: +44 (0)1603 612928
M: +44 (0)7905 243122
E: <email address hidden> <mailto:<email address hidden>>
W: www.apogee-analysis.com <http://www.apogee-analysis.com/>

This e-mail message is sent for and on behalf of Apogee Engineering Analysis Solutions Ltd. It is intended for use by the addressee(s) only and may be confidential. If the message is received by anyone other than the addressee(s), please reply to the sender indicating the error and then delete the message from your computer. E-mail is not necessarily a secure form of communication and Apogee Engineering Analysis Solutions Ltd accepts no responsibility for changes made to this message after it was sent.

Whilst reasonable care has been taken to avoid the transmission of viruses and other malicious data and software, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect their systems or data. No responsibility is accepted by Apogee Engineering Analysis Solutions Ltd in this regard and the recipient should carry out such virus and other checks as they consider appropriate.

Apogee Engineering Analysis Solutions Ltd is a private limited company, registered in England and Wales, registered number 6778817, registered office King Street House, 15 Upper King Street, Norwich, NR3 1RB, United Kingdom.

________________________________

From: <email address hidden> on behalf of Dion Weatherley
Sent: Sun 07/06/2009 22:34
To: Andrew New
Subject: Re: [Question #73349]: ssh: connect to host ubuntu port 22:Connection refused

Your question #73349 on ESyS-Particle changed:
https://answers.launchpad.net/esys-particle/+question/73349

    Status: Open => Answered

Dion Weatherley proposed the following answer:
Hi Andrew,

Thanks for your interest in ESyS-Particle and your question. I've not encountered this problem before but I suspect that it may be similar to a problem experienced by a couple of others, see this question:
https://answers.launchpad.net/esys-particle/+question/70285

For a start, I would suggest you open a terminal window and type:

sudo gedit /etc/hosts

This should open the /etc/hosts file in a text editor. Add the
following lines to the top of that file:

127.0.0.1 localhost
w.x.y.z myhost.mydomain myhost

where w.x.y.z is the IP address of your PC and myhost.mydomain are your
PC hostname and DNS domain respectively.

If this doesn't work, could you please let me know which version of
OpenMPI you have installed. You can do this by typing the following in
the terminal:

dpkg -l | grep openmpi

I hope this helps.

Cheers,

Dion.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/esys-particle/+question/73349/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/esys-particle/+question/73349

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dion Weatherley (d-weatherley) said :
#3

Hi Andrew,

Glad you are now up and running with ESyS-Particle. You might be interested to know that we are currently working on a new release of ESyS-Particle for later this year. The release will include a bugfix for the problem with bingle scripts that do not terminate as well as a new geometry creation library with many more features than currently available in-line. The new library includes some tools for constructing geometries comprised of clustered particles which might be useful for your application.

Feel free to ask questions at any time and have fun!

Cheers,

Dion.

Can you help with this problem?

Provide an answer of your own, or ask Andrew New for more information if necessary.

To post a message you must log in.