Hi, I'm updating ZServerSSL to work with Zope 2.7.0b2. I did the following to install Zope: $ configure --prefix=~/pkg/zope270b2 $ make; make install $ ~/pkg/zope270b2/bin/mkzopeinstance.py The instance is in ~/pkg/inst_zope/. Next, apply ZServerSSL patches, copy stuff over... Then, away we go! $ ~/pkg/inst_zope/bin/runzope But: IOError: [Errno 2] No such file or directory: '/usr/local/home/ngps/pkg/zope270b2/ssl/dh1024.pem' The offending code is this: ssl_ctx.set_tmp_dh('%s/ssl/dh1024.pem' % INSTANCE_HOME) So INSTANCE_HOME is pointing to ~/pkg/zope270b2. Shouldn't it be pointing to ~/pkg/inst_zope? BTW, $ (cd ~/pkg/zope270b2; ln -s ../inst_zope/ssl; ../inst_zope/bin/runzope) 2003-09-28T00:45:15 INFO(0) ZServer (ZServerSSL/0.12) HTTPS server started at Sun Sep 28 00:45:15 2003 Hostname: vista.netmemetic.com Port: 8443 Woo-hoo! -- Ng Pheng Siong <ngps@netmemetic.com>
On Sat, 2003-09-27 at 12:50, Ng Pheng Siong wrote:
Hi,
I'm updating ZServerSSL to work with Zope 2.7.0b2.
I did the following to install Zope:
$ configure --prefix=~/pkg/zope270b2 $ make; make install $ ~/pkg/zope270b2/bin/mkzopeinstance.py
The instance is in ~/pkg/inst_zope/.
Next, apply ZServerSSL patches, copy stuff over...
Then, away we go! $ ~/pkg/inst_zope/bin/runzope
But: IOError: [Errno 2] No such file or directory: '/usr/local/home/ngps/pkg/zope270b2/ssl/dh1024.pem'
The offending code is this: ssl_ctx.set_tmp_dh('%s/ssl/dh1024.pem' % INSTANCE_HOME)
So INSTANCE_HOME is pointing to ~/pkg/zope270b2.
Shouldn't it be pointing to ~/pkg/inst_zope?
I'm not sure, but I think 'runzope' is a fossil; you want to be using '~/pkg/inst_zope/bin/zopectl start', which will do more of the housekeeping you need.
BTW, $ (cd ~/pkg/zope270b2; ln -s ../inst_zope/ssl; ../inst_zope/bin/runzope)
2003-09-28T00:45:15 INFO(0) ZServer (ZServerSSL/0.12) HTTPS server started at Sun Sep 28 00:45:15 2003 Hostname: vista.netmemetic.com Port: 8443
Woo-hoo!
Excellent! Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
This sounds like a bug. I'll put it in the collector... ----- Original Message ----- From: "Tres Seaver" <tseaver@zope.com> To: "Ng Pheng Siong" <ngps@netmemetic.com> Cc: <zope-dev@zope.org> Sent: Saturday, September 27, 2003 3:00 PM Subject: Re: [Zope-dev] Zope 2.7b2 INSTANCE_HOME
On Sat, 2003-09-27 at 12:50, Ng Pheng Siong wrote:
Hi,
I'm updating ZServerSSL to work with Zope 2.7.0b2.
I did the following to install Zope:
$ configure --prefix=~/pkg/zope270b2 $ make; make install $ ~/pkg/zope270b2/bin/mkzopeinstance.py
The instance is in ~/pkg/inst_zope/.
Next, apply ZServerSSL patches, copy stuff over...
Then, away we go! $ ~/pkg/inst_zope/bin/runzope
But: IOError: [Errno 2] No such file or directory: '/usr/local/home/ngps/pkg/zope270b2/ssl/dh1024.pem'
The offending code is this: ssl_ctx.set_tmp_dh('%s/ssl/dh1024.pem' % INSTANCE_HOME)
So INSTANCE_HOME is pointing to ~/pkg/zope270b2.
Shouldn't it be pointing to ~/pkg/inst_zope?
I'm not sure, but I think 'runzope' is a fossil; you want to be using '~/pkg/inst_zope/bin/zopectl start', which will do more of the housekeeping you need.
BTW, $ (cd ~/pkg/zope270b2; ln -s ../inst_zope/ssl;
../inst_zope/bin/runzope)
2003-09-28T00:45:15 INFO(0) ZServer (ZServerSSL/0.12) HTTPS server started at Sun Sep 28 00:45:15 2003 Hostname: vista.netmemetic.com Port: 8443
Woo-hoo!
Excellent!
Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Oh, and BTW, runzope isn't a fossil... it's just a way to run Zope without the daemon process. ----- Original Message ----- From: "Chris McDonough" <chris.mcdonough@cox.net> To: "Tres Seaver" <tseaver@zope.com>; "Ng Pheng Siong" <ngps@netmemetic.com> Cc: <zope-dev@zope.org> Sent: Saturday, September 27, 2003 7:38 PM Subject: Re: [Zope-dev] Zope 2.7b2 INSTANCE_HOME
This sounds like a bug. I'll put it in the collector...
----- Original Message ----- From: "Tres Seaver" <tseaver@zope.com> To: "Ng Pheng Siong" <ngps@netmemetic.com> Cc: <zope-dev@zope.org> Sent: Saturday, September 27, 2003 3:00 PM Subject: Re: [Zope-dev] Zope 2.7b2 INSTANCE_HOME
On Sat, 2003-09-27 at 12:50, Ng Pheng Siong wrote:
Hi,
I'm updating ZServerSSL to work with Zope 2.7.0b2.
I did the following to install Zope:
$ configure --prefix=~/pkg/zope270b2 $ make; make install $ ~/pkg/zope270b2/bin/mkzopeinstance.py
The instance is in ~/pkg/inst_zope/.
Next, apply ZServerSSL patches, copy stuff over...
Then, away we go! $ ~/pkg/inst_zope/bin/runzope
But: IOError: [Errno 2] No such file or directory: '/usr/local/home/ngps/pkg/zope270b2/ssl/dh1024.pem'
The offending code is this: ssl_ctx.set_tmp_dh('%s/ssl/dh1024.pem' % INSTANCE_HOME)
So INSTANCE_HOME is pointing to ~/pkg/zope270b2.
Shouldn't it be pointing to ~/pkg/inst_zope?
I'm not sure, but I think 'runzope' is a fossil; you want to be using '~/pkg/inst_zope/bin/zopectl start', which will do more of the housekeeping you need.
BTW, $ (cd ~/pkg/zope270b2; ln -s ../inst_zope/ssl;
../inst_zope/bin/runzope)
2003-09-28T00:45:15 INFO(0) ZServer (ZServerSSL/0.12) HTTPS server started at Sun Sep 28 00:45:15 2003 Hostname: vista.netmemetic.com Port: 8443
Woo-hoo!
Excellent!
Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
On Sat, Sep 27, 2003 at 07:38:08PM -0400, Chris McDonough wrote:
This sounds like a bug. I'll put it in the collector...
Thanks. The code is in lib/python/ZServer/datatypes.py, in HTTPS_ServerFactory.__init__. (This factory is added by ZServerSSL.) Perhaps at that point in time, INSTANCE_HOME doesn't yet point to the instance home? Cheers. -- Ng Pheng Siong <ngps@netmemetic.com>
participants (3)
-
Chris McDonough -
Ng Pheng Siong -
Tres Seaver