StarCluster - Mailing List Archive

Re: error when starting starcluster

From: Justin Riley <no email>
Date: Wed, 6 Jul 2011 09:54:32 -0400

Hi Marcin,

After some quick googling I found that this error is caused when Python's built-in socket module wasn't compiled with SSL support. Here's a link to someone else having the same error with boto on stackoverflow:

http://stackoverflow.com/questions/877072/httpsconnection-module-missing-in-python-2-6-on-centos-5-2

In short you basically need to recompile Python 2.6 with SSL support. Here's a link to a slightly older doc that does this for python 2.5 on CentOS 5.1:

http://agiletesting.blogspot.com/2008/05/compiling-python-25-with-ssl-support.html

Unfortunately this is not something StarCluster or boto can fix by way of code. Either the Python install has SSL support or not. However, boto could do a better job of checking for SSL support and raising an exception with a better error message instructing the user of the *real* problem (Python install not compiled with SSL support). I've filed a bug report about this on boto's issue tracker:

https://github.com/boto/boto/issues/249

If I get some time I might try to hack this in myself.

Hope that helps,

~Justin


On Jul 5, 2011, at 6:58 PM, marcin joachimiak wrote:

Hello,

I'm running into trouble when starting up the starcluster example. I
am running a custom x86_64 centOS AMI with Python 2.6.

Below is the command and output:

[marcin]#starcluster start mycluster
StarCluster - (http://web.mit.edu/starcluster) (v. 0.92rc2)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster_at_mit.edu<mailto:starcluster_at_mit.edu>
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/starcluster/cli.py", line 155, in main
sc.execute(args)
File "build/bdist.linux-x86_64/egg/starcluster/commands/start.py",
line 143, in execute
cluster_exists = self.cm.get_cluster_or_none(tag)
File "build/bdist.linux-x86_64/egg/starcluster/cluster.py", line 80,
in get_cluster_or_none
return self.get_cluster(cluster_name)
 File "build/bdist.linux-x86_64/egg/starcluster/cluster.py", line 42,
in get_cluster
   group = self.ec2.get_security_group(clname) File
"build/bdist.linux-x86_64/egg/starcluster/awsutils.py", line 1043, in
get_security_group
   groupname})[0]
 File "build/bdist.linux-x86_64/egg/boto/ec2/connection.py", line
1658, in get_all_security_groups [('item', SecurityGroup)],
verb='POST')
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 584, in get_list
   response = self.make_request(action, params, path, verb)
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 571, in
make_request
   return self._send_http_request(http_request)
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 527, in
_send_http_request
   http_request.host, sender, override_num_retries)
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 432, in _mexe
   connection = self.get_http_connection(host, self.is_secure)
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 329, in
get_http_connection
   return self.new_http_connection(host, is_secure)
 File "build/bdist.linux-x86_64/egg/boto/connection.py", line 343, in
new_http_connection
   connection = httplib.HTTPSConnection(host)
AttributeError: 'module' object has no attribute 'HTTPSConnection'

!!! ERROR - Oops! Looks like you've found a bug in StarCluster
!!! ERROR - Debug file written to: /tmp/starcluster-debug-root.log
!!! ERROR - Look for lines starting with PID: 31121
!!! ERROR - Please submit this file, minus any private information,
!!! ERROR - to starcluster_at_mit.edu<mailto:starcluster_at_mit.edu>


Any help would be greatly appreciated.

thanks,
marcin
_______________________________________________
StarCluster mailing list
StarCluster_at_mit.edu<mailto:StarCluster_at_mit.edu>
http://mailman.mit.edu/mailman/listinfo/starcluster
Received on Wed Jul 06 2011 - 09:54:35 EDT
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject