Quantcast

Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

Yuri-10
After I upgraded the 8.2-STABLE to more current code and upgraded all
ports I am unable to connect to svn repository through apache: client
gets this:
Could not authenticate to server: rejected basic challenge.
httpd-errors.log gets messages, see below.

Line SSLSessionCache "dbm:/var/run/ssl_scache" is in the file
/usr/local/etc/apache22/extra/httpd-ssl.conf. This file is included from
httpd.conf.

What may be a problem?

Yuri


---httpd-errors.log---
[Fri Jul 01 14:56:26 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 14:56:26 2011] [notice] Digest: done
[Fri Jul 01 14:56:26 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 14:56:27 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 14:56:27 2011] [info] Server built: Jul  1 2011 14:55:14
[Fri Jul 01 15:00:43 2011] [info] removed PID file /var/run/httpd.pid
(pid=61366)
[Fri Jul 01 15:00:43 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 01 15:00:43 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:00:43 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:00:43 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:00:43 2011] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jul 01 15:00:43 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:00:43 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:00:43 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:00:44 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:00:44 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:00:44 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:00:44 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:00:44 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:00:44 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 15:00:44 2011] [notice] Digest: done
[Fri Jul 01 15:00:44 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:00:45 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 15:00:45 2011] [info] Server built: Jul  1 2011 14:55:14
[Fri Jul 01 15:03:37 2011] [info] removed PID file /var/run/httpd.pid
(pid=61485)
[Fri Jul 01 15:03:37 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 01 15:04:32 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:04:32 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:04:32 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:04:32 2011] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jul 01 15:04:32 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:04:32 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:04:32 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:04:33 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:04:33 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:04:33 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:04:33 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:04:33 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:04:33 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 15:04:33 2011] [notice] Digest: done
[Fri Jul 01 15:04:33 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:04:34 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 15:04:34 2011] [info] Server built: Jul  1 2011 14:55:14
[Fri Jul 01 15:07:37 2011] [info] removed PID file /var/run/httpd.pid
(pid=61621)
[Fri Jul 01 15:07:37 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 01 15:07:37 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:07:37 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:07:37 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:07:37 2011] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jul 01 15:07:37 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:07:37 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:07:37 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:07:38 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:07:38 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:07:38 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:07:38 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:07:38 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:07:38 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 15:07:38 2011] [notice] Digest: done
[Fri Jul 01 15:07:38 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:07:39 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 15:07:39 2011] [info] Server built: Jul  1 2011 14:55:14
[Fri Jul 01 15:08:54 2011] [info] removed PID file /var/run/httpd.pid
(pid=61695)
[Fri Jul 01 15:08:54 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 01 15:08:54 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:08:54 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:08:54 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:08:54 2011] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jul 01 15:08:54 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:08:54 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:08:54 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:08:55 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:08:55 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:08:55 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:08:55 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:08:55 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:08:55 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 15:08:55 2011] [notice] Digest: done
[Fri Jul 01 15:08:55 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:08:56 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 15:08:56 2011] [info] Server built: Jul  1 2011 14:55:14
[Fri Jul 01 15:10:20 2011] [info] removed PID file /var/run/httpd.pid
(pid=61746)
[Fri Jul 01 15:10:20 2011] [notice] caught SIGTERM, shutting down
[Fri Jul 01 15:10:20 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:10:20 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:10:20 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:10:20 2011] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jul 01 15:10:20 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:10:20 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:10:20 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:10:21 2011] [info] Init: Seeding PRNG with 144 bytes of
entropy
[Fri Jul 01 15:10:21 2011] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jul 01 15:10:21 2011] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jul 01 15:10:21 2011] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jul 01 15:10:21 2011] [info] mod_ssl/2.2.19 compiled against
Server: Apache/2.2.19, Library: OpenSSL/0.9.8q
[Fri Jul 01 15:10:21 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Jul 01 15:10:21 2011] [notice] Digest: done
[Fri Jul 01 15:10:21 2011] [info] mod_unique_id: using ip addr 127.0.0.1
[Fri Jul 01 15:10:22 2011] [notice] Apache/2.2.19 (FreeBSD)
mod_ssl/2.2.19 OpenSSL/0.9.8q DAV/2 SVN/1.6.17 configured -- resuming
normal operations
[Fri Jul 01 15:10:22 2011] [info] Server built: Jul  1 2011 14:55:14

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

Jeremy Chadwick
On Fri, Jul 01, 2011 at 03:13:13PM -0700, Yuri wrote:

> After I upgraded the 8.2-STABLE to more current code and upgraded
> all ports I am unable to connect to svn repository through apache:
> client gets this:
> Could not authenticate to server: rejected basic challenge.
> httpd-errors.log gets messages, see below.
>
> Line SSLSessionCache "dbm:/var/run/ssl_scache" is in the file
> /usr/local/etc/apache22/extra/httpd-ssl.conf. This file is included
> from httpd.conf.
>
> What may be a problem?

Hmm?  The stock /usr/local/etc/apache22/extra/httpd-ssl.conf file has
the following lines:

 58 #   Inter-Process Session Cache:
 59 #   Configure the SSL Session Cache: First the mechanism
 60 #   to use and second the expiring timeout (in seconds).
 61 #SSLSessionCache         "dbm:/var/run/ssl_scache"
 62 SSLSessionCache        "shmcb:/var/run/ssl_scache(512000)"
 63 SSLSessionCacheTimeout  300

Note line 61 is commented out, and line 62 IS NOT commented out.  Line
62 is what you should be using.

We use Apache with SSL on our production web infrastructure and do not
have any issues with "Session Cache is not configured".

Please double and triple-check your Apache configuration.  Every time
Apache is upgraded, it's the administrator's responsibility to go
through and make sure his/her configuration files are properly "merged"
with the default/stock ones.

--
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, US |
| Making life hard for others since 1977.               PGP 4BD6C0CB |

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

Yuri-10
On 07/01/2011 15:46, Jeremy Chadwick wrote:

> Hmm? The stock /usr/local/etc/apache22/extra/httpd-ssl.conf file has
> the following lines: 58 # Inter-Process Session Cache: 59 # Configure
> the SSL Session Cache: First the mechanism 60 # to use and second the
> expiring timeout (in seconds). 61 #SSLSessionCache
> "dbm:/var/run/ssl_scache" 62 SSLSessionCache
> "shmcb:/var/run/ssl_scache(512000)" 63 SSLSessionCacheTimeout 300 Note
> line 61 is commented out, and line 62 IS NOT commented out. Line 62 is
> what you should be using. We use Apache with SSL on our production web
> infrastructure and do not have any issues with "Session Cache is not
> configured". Please double and triple-check your Apache configuration.
> Every time Apache is upgraded, it's the administrator's responsibility
> to go through and make sure his/her configuration files are properly
> "merged" with the default/stock ones.

The problem is that my configuration had no SSL at all.  httpd-ssl.conf
was not even included. Very simple local site. I didn't touch
configuration during system upgrade.
After upgrade this problem occurs with svn/dav connections. ([warn]
Init: Session Cache is not configured [hint: SSLSessionCache])

This section causes the problem:
<Location /svn/app>
   DAV svn
   SVNPath /home/my-repository
   AuthUserFile /usr/local/www/.htpasswd
   AuthName "Subversion repository"
   AuthType Basic
   require valid-user
</Location>

If such a simple configuration breaks this should be noted in
/usr/ports/UPGRADING.

It asks for SSL certificate on the server with no SSL at all.

Yuri
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

Frank Bonnet
could you show the httpd.conf file ?

Le 02/07/2011 02:15, Yuri a écrit :

> On 07/01/2011 15:46, Jeremy Chadwick wrote:
>> Hmm? The stock /usr/local/etc/apache22/extra/httpd-ssl.conf file has
>> the following lines: 58 # Inter-Process Session Cache: 59 # Configure
>> the SSL Session Cache: First the mechanism 60 # to use and second the
>> expiring timeout (in seconds). 61 #SSLSessionCache
>> "dbm:/var/run/ssl_scache" 62 SSLSessionCache
>> "shmcb:/var/run/ssl_scache(512000)" 63 SSLSessionCacheTimeout 300 Note
>> line 61 is commented out, and line 62 IS NOT commented out. Line 62 is
>> what you should be using. We use Apache with SSL on our production web
>> infrastructure and do not have any issues with "Session Cache is not
>> configured". Please double and triple-check your Apache configuration.
>> Every time Apache is upgraded, it's the administrator's responsibility
>> to go through and make sure his/her configuration files are properly
>> "merged" with the default/stock ones.
>
> The problem is that my configuration had no SSL at all. httpd-ssl.conf
> was not even included. Very simple local site. I didn't touch
> configuration during system upgrade.
> After upgrade this problem occurs with svn/dav connections. ([warn]
> Init: Session Cache is not configured [hint: SSLSessionCache])
>
> This section causes the problem:
> <Location /svn/app>
> DAV svn
> SVNPath /home/my-repository
> AuthUserFile /usr/local/www/.htpasswd
> AuthName "Subversion repository"
> AuthType Basic
> require valid-user
> </Location>
>
> If such a simple configuration breaks this should be noted in
> /usr/ports/UPGRADING.
>
> It asks for SSL certificate on the server with no SSL at all.
>
> Yuri
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-apache
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error from apache/dav after system upgrade: Init: Session Cache is not configured [hint: SSLSessionCache]

ohauer
In reply to this post by Yuri-10
On 2011-07-02 00:13, Yuri wrote:

> After I upgraded the 8.2-STABLE to more current code and upgraded all ports I am
> unable to connect to svn repository through apache: client gets this:
> Could not authenticate to server: rejected basic challenge.
> httpd-errors.log gets messages, see below.
>
> Line SSLSessionCache "dbm:/var/run/ssl_scache" is in the file
> /usr/local/etc/apache22/extra/httpd-ssl.conf. This file is included from
> httpd.conf.
>
> What may be a problem?

The SVNActivitiesDB is a sqlite3 database and the last sqlite3 version
has broken subversion.

Please downgrade sqlite3 to 3.7.6.3 then rebuild apr1, apache and subversion.

Use this Makefile:
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/databases/sqlite3/Makefile?rev=1.59;content-type=text%2Fplain

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-apache
To unsubscribe, send any mail to "[hidden email]"
Loading...