Discussion:
[Zope3-Users] SSL permission error
christophe petit
2013-04-18 01:19:11 UTC
Permalink
Hi,

my server sometimes stops running. I use apache2 in front of zope3 with
rewrite rules. Here's the transcript.log :

Traceback (most recent call last):
File "/var/lib/zope3/instance/www.test.com/bin/runzope", line 48, in ?
run()
File "/var/lib/zope3/instance/www.test.com/bin/runzope", line 44, in run
main(["-C", CONFIG_FILE] + sys.argv[1:])
File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line
73, in main
service = setup(load_options(args))
File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line
152, in setup
service = server.create(db)
File "/usr/lib/python2.4/site-packages/zope/app/twisted/server.py", line
187, in create
backlog=self.backlog,
File "/usr/lib/python2.4/site-packages/zope/app/twisted/server.py", line
108, in create
contextFactory = ssl.DefaultOpenSSLContextFactory(
File "/usr/lib/python2.4/site-packages/twisted/internet/ssl.py", line
78, in __init__
self.cacheContext()
File "/usr/lib/python2.4/site-packages/twisted/internet/ssl.py", line
82, in cacheContext
ctx.use_certificate_file(self.certificateFileName)
OpenSSL.SSL.Error: [('system library', 'fopen', 'Permission denied'),
('BIO routines', 'FILE_CTRL', 'system lib'), ('SSL routines',
'SSL_CTX_use_certificate_file', 'system lib')]

It seems coming from the SSL certificate file with a permission error.

I had no problems until now, anyone could see what's wrong ?
Thierry Florac
2013-04-18 07:44:00 UTC
Permalink
Hi,
Post by christophe petit
my server sometimes stops running. I use apache2 in front of zope3 with
File "/var/lib/zope3/instance/www.test.com/bin/runzope", line 48, in ?
run()
File "/var/lib/zope3/instance/www.test.com/bin/runzope", line 44, in run
main(["-C", CONFIG_FILE] + sys.argv[1:])
File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line
73, in main
service = setup(load_options(args))
File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line
152, in setup
service = server.create(db)
File "/usr/lib/python2.4/site-packages/zope/app/twisted/server.py", line
187, in create
backlog=self.backlog,
File "/usr/lib/python2.4/site-packages/zope/app/twisted/server.py", line
108, in create
contextFactory = ssl.DefaultOpenSSLContextFactory(
File "/usr/lib/python2.4/site-packages/twisted/internet/ssl.py", line
78, in __init__
self.cacheContext()
File "/usr/lib/python2.4/site-packages/twisted/internet/ssl.py", line
82, in cacheContext
ctx.use_certificate_file(self.certificateFileName)
OpenSSL.SSL.Error: [('system library', 'fopen', 'Permission denied'),
('BIO routines', 'FILE_CTRL', 'system lib'), ('SSL routines',
'SSL_CTX_use_certificate_file', 'system lib')]
It seems coming from the SSL certificate file with a permission error.
It seems that you're using Python2.4, which is quite old now.
What Zope version are you using ??

Regards,
Thierry

Loading...