You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kris Verbeeck <Kr...@ubizen.com> on 2002/08/22 16:14:31 UTC
SSL: Cannot allocate shared memory: (17)File exists
Hi,
I have the following line in my httpd.conf (Apache 2.0 on
Solaris 8):
SSLSessionCache shm:/apache/logs/ssl_scache(512000)
and am unable to restart the server. Before I started the
server I
deleted any existing ssl_scache file. The apache error_log
shows
the following lines:
[Thu Aug 22 15:55:27 2002] [info] Init: Initializing OpenSSL
library
[Thu Aug 22 15:55:27 2002] [info] Init: Seeding PRNG with
136 bytes of entropy
[Thu Aug 22 15:55:27 2002] [info] Init: Generating temporary
RSA private keys (512/1024 bits)
[Thu Aug 22 15:55:29 2002] [info] Init: Generating temporary
DH parameters (512/1024 bits)
[Thu Aug 22 15:55:29 2002] [info] Init: Initializing
(virtual) servers for SSL
[Thu Aug 22 15:55:29 2002] [info] Server: Apache/2.0.39,
Interface: mod_ssl/2.0.39, Library: OpenSSL/0.9.6e
[Thu Aug 22 15:55:29 2002] [info] Init: Initializing OpenSSL
library
[Thu Aug 22 15:55:29 2002] [info] Init: Seeding PRNG with
136 bytes of entropy
[Thu Aug 22 15:55:29 2002] [info] Init: Generating temporary
RSA private keys (512/1024 bits)
[Thu Aug 22 15:55:31 2002] [info] Init: Generating temporary
DH parameters (512/1024 bits)
[Thu Aug 22 15:55:31 2002] [error] Cannot allocate shared
memory: (17)File exists
If a rename the file to ssl_scache2 or something it works.
The
error_log then contains:
[Thu Aug 22 15:55:56 2002] [info] Init: Initializing OpenSSL
library
[Thu Aug 22 15:55:56 2002] [info] Init: Seeding PRNG with
136 bytes of entropy
[Thu Aug 22 15:55:56 2002] [info] Init: Generating temporary
RSA private keys (512/1024 bits)
[Thu Aug 22 15:55:57 2002] [info] Init: Generating temporary
DH parameters (512/1024 bits)
[Thu Aug 22 15:55:57 2002] [info] Init: Initializing
(virtual) servers for SSL
[Thu Aug 22 15:55:57 2002] [info] Server: Apache/2.0.39,
Interface: mod_ssl/2.0.39, Library: OpenSSL/0.9.6e
[Thu Aug 22 15:55:57 2002] [info] Init: Initializing OpenSSL
library
[Thu Aug 22 15:55:57 2002] [info] Init: Seeding PRNG with
136 bytes of entropy
[Thu Aug 22 15:55:57 2002] [info] Init: Generating temporary
RSA private keys (512/1024 bits)
[Thu Aug 22 15:55:59 2002] [info] Init: Generating temporary
DH parameters (512/1024 bits)
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(389):
shmcb_init allocated 512000 bytes of shared memory
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(591):
entered shmcb_init_memory()
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(613):
for 512000 bytes, recommending 4266 indexes
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(656):
shmcb_init_memory choices follow
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(658):
division_mask = 0x1F
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(660):
division_offset = 64
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(662):
division_size = 15998
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(664):
queue_size = 1604
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(666):
index_num = 133
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(668):
index_offset = 8
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(670):
index_size = 12
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(672):
cache_data_offset = 8
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(674):
cache_data_size = 14386
[Thu Aug 22 15:55:59 2002] [debug] ssl_scache_shmcb.c(687):
leaving shmcb_init_memory()
[Thu Aug 22 15:55:59 2002] [info] Shared memory session
cache initialised
[Thu Aug 22 15:55:59 2002] [info] Init: Initializing
(virtual) servers for SSL
[Thu Aug 22 15:55:59 2002] [info] Server: Apache/2.0.39,
Interface: mod_ssl/2.0.39, Library: OpenSSL/0.9.6e
[Thu Aug 22 15:55:59 2002] [notice] web server configured --
resuming normal operations
[Thu Aug 22 15:55:59 2002] [info] Server built: Aug 16 2002
15:54:53
[Thu Aug 22 15:55:59 2002] [debug] prefork.c(1035):
AcceptMutex: pthread (default: pthread)
Is this a Solaris caching problem? Does the OS think that
the
file still exists while it doesn't?? Or what is happening
here?
--
ir. Kris Verbeeck
Development Engineer
Ubizen - Ubicenter - Philipssite 5 - 3001 Leuven - Belgium
T: +32 16 28 70 64
F: +32 16 28 70 77
Ubizen - We Secure e-business - www.ubizen.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org