Problem solved. Python 2.5 does not include an ssl module and I guess
openssl isn't good enough. I had to download the ssl 1.15 package from
the python website and manually build & install it. The server now
executes as expected.

On Jun 12, 4:47 pm, The Czar <[email protected]> wrote:
> Some additional information: running python-2.5,2 and web2py 1.78.3
> has exactly the same problem.
>
> On Jun 12, 10:38 am, The Czar <[email protected]> wrote:
>
> > Duh. Sorry - it is the source on FreeBSD
>
> > On Jun 12, 8:04 am, mdipierro <[email protected]> wrote:
>
> > > did you upgrade the source or binary version? windows or mac?
>
> > > On Jun 12, 9:36 am, The Czar <[email protected]> wrote:
>
> > > > I just upgraded from 1.76 to 1.79.2 using the built-in upgrade
> > > > feature. Attempting to start the server with SSL yields the following
> > > > error. Any ideas on what's happening here? BTW - the gluon code looks
> > > > redundant - am I missing something? Thanks in advance.
>
> > > > here is the startup info: ====
> > > > python web2py.py -a xxxxxxxx -i 192.168.1.2p 8040 -c security/
> > > > ebuyasst.crt -k security/ebuyasst.key
> > > > web2py Enterprise Web Framework
> > > > Created by Massimo Di Pierro, Copyright 2007-2010
> > > > Version 1.79.2 (2010-06-08 22:45:26)
> > > > Database drivers available: SQLite3, MySQL
> > > > Starting hardcron...
> > > > please visit:
> > > >        http://192.168.1.2:8040
> > > > use "kill -SIGTERM 30722" to shutdown the web2py server
> > > > Traceback (most recent call last):
> > > >   File "web2py.py", line 20, in <module>
> > > >     gluon.widget.start(cron=True)
> > > >   File "/m/content/www/data/ebuyasst.new/gluon/widget.py", line 863,
> > > > in start
> > > >     path=options.folder)
> > > >   File "/m/content/www/data/ebuyasst.new/gluon/main.py", line 622, in
> > > > __init__
> > > >     elif not rocket.ssl:
> > > > AttributeError: 'module' object has no attribute 'ssl'
>
> > > > ======
>
> > > > The code in the gluon module looks like this: (line 622 is ***)
> > > >         if not ssl_certificate or not ssl_private_key:
> > > >               logging.info('SSL is off')
> > > > ***   elif not rocket.ssl:
> > > >              logging.warning('Python "ssl" module unavailable. SSL is
> > > > OFF')
> > > >         if not ssl_certificate or not ssl_private_key:
> > > >             logging.info('SSL is off')
> > > >         elif not rocket.ssl:
> > > >             logging.warning('Python "ssl" module unavailable. SSL is
> > > > OFF')
> > > >         elif not os.path.exists(ssl_certificate):
> > > >             logging.warning('unable to open SSL certificate. SSL is
> > > > OFF')
> > > >         elif not os.path.exists(ssl_private_key):
> > > >             logging.warning('unable to open SSL private key. SSL is
> > > > OFF')
> > > >         else:
> > > >             sock_list.extend([ssl_private_key, ssl_certificate])
> > > >             logging.info('SSL is ON')

Reply via email to