StarCluster - Mailing List Archive

bash: which: command not found

From: Neal Becker <no email>
Date: Tue, 1 Oct 2013 13:55:00 -0400

This is what I got trying to start starcluster on fedora 19 x86_64:

>>> Using default cluster template: smallcluster
>>> Validating cluster template settings...
>>> Cluster template settings are valid
>>> Starting cluster...
>>> Launching a 2-node cluster...
>>> Creating security group _at_sc-mycluster...
Reservation:r-ea19208c
>>> Waiting for cluster to come up... (updating every 30s)
>>> Waiting for all nodes to be in a 'running' state...
2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100%
>>> Waiting for SSH to come up on all nodes...
2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100%
>>> Waiting for cluster to come up took 2.234 mins
>>> The master node is ec2-67-202-33-59.compute-1.amazonaws.com
>>> Configuring cluster...
>>> Running plugin starcluster.clustersetup.DefaultClusterSetup
>>> Configuring hostnames...
2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100%
>>> Creating cluster user: sgeadmin (uid: 1001, gid: 1001)
2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100%
!!! ERROR - Error occured while running plugin
'starcluster.clustersetup.DefaultClusterSetup':
!!! ERROR - error occurred in job (id=node001): remote command 'source
/etc/profile && useradd -o -u 1001 -g 1001 -s `which bash` -m sgeadmin'
failed with status 3:
bash: which: command not found
useradd: invalid shell '-m'
Traceback (most recent call last):
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/threadpool.py",
line 48, in run
    job.run()
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/threadpool.py",
line 75, in run
    r = self.method(*self.args, **self.kwargs)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/clustersetup.py",
line 210, in _add_user_to_node
    node.add_user(self._user, uid, gid, self._user_shell)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/node.py",
line 472, in add_user
    self.ssh.execute(user_add_cmd)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/sshutils/__init__.py",
line 555, in execute
    msg, command, exit_status, out_str)
RemoteCommandFailed: remote command 'source /etc/profile && useradd -o -u
1001 -g 1001 -s `which bash` -m sgeadmin' failed with status 3:
bash: which: command not found
useradd: invalid shell '-m'

error occurred in job (id=master): remote command 'source /etc/profile &&
useradd -o -u 1001 -g 1001 -s `which bash` -m sgeadmin' failed with status
3:
bash: which: command not found
useradd: invalid shell '-m'
Traceback (most recent call last):
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/threadpool.py",
line 48, in run
    job.run()
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/threadpool.py",
line 75, in run
    r = self.method(*self.args, **self.kwargs)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/clustersetup.py",
line 210, in _add_user_to_node
    node.add_user(self._user, uid, gid, self._user_shell)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/node.py",
line 472, in add_user
    self.ssh.execute(user_add_cmd)
  File
"/home/nbecker/.local/lib/python2.7/site-packages/StarCluster-0.94-py2.7.egg/starcluster/sshutils/__init__.py",
line 555, in execute
    msg, command, exit_status, out_str)
RemoteCommandFailed: remote command 'source /etc/profile && useradd -o -u
1001 -g 1001 -s `which bash` -m sgeadmin' failed with status 3:
bash: which: command not found
useradd: invalid shell '-m'


!!! ERROR - Oops! Looks like you've found a bug in StarCluster
!!! ERROR - Crash report written to:
/home/nbecker/.starcluster/logs/crash-report-6675.txt
!!! ERROR - Please remove any sensitive data from the crash report
!!! ERROR - and submit it to starcluster_at_mit.edu
Received on Tue Oct 01 2013 - 13:55:06 EDT
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject