[hunchentoot-devel] Hunchentoot crashing behind mod_lisp with SSL

Jeffrey Cunningham jeffrey at cunningham.net
Thu Dec 28 20:57:27 UTC 2006


I'm probably doing something dumb but I haven't been able to figure
this out. My understanding of Apache is pretty limited. 

Both apache and my Hunchentoot servers work fine w/o SSL. My
Hunchentoot server works fine *with* SSL standalone (not behind
mod_lisp). But when I try put it behind mod_lisp and hit the domain
with a browser (https://makewavs.com/) the Hunchentoot server goes
into debug with the following message:


The variable HUNCHENTOOT:*REPLY* is unbound.
   [Condition of type UNBOUND-VARIABLE]

Restarts:
  0: [TERMINATE-THREAD] Terminate this thread (#<THREAD "hunchentoot-worker-305" {D41F4B9}>)

Backtrace:
  0: ((SB-PCL::FAST-METHOD HUNCHENTOOT:LOG-MESSAGE (T #1="#<...>" . #1#)) #<unused argument> #<unused argument> :ERROR "Error while processing connection: ~A" #<CL+SSL::SSL-ERROR-INITIALIZE {D43AE31}>)
      Locals:
        HUNCHENTOOT::ARGS = (#<CL+SSL::SSL-ERROR-INITIALIZE {D43AE31}>)
        HUNCHENTOOT::FMT = "Error while processing connection: ~A"
        HUNCHENTOOT::LOG-LEVEL = :ERROR
  1: ((LAMBDA (COND)) #<CL+SSL::SSL-ERROR-INITIALIZE {D43AE31}>)
  2: ((LAMBDA (COND)) #<CL+SSL::SSL-ERROR-INITIALIZE {D43AE31}>)
  3: (SIGNAL #<CL+SSL::SSL-ERROR-INITIALIZE {D43AE31}>)
  4: (ERROR CL+SSL::SSL-ERROR-INITIALIZE)
  5: (CL+SSL:MAKE-SSL-SERVER-STREAM #<unavailable lambda list>)
  6: (HUNCHENTOOT::PROCESS-CONNECTION #<HUNCHENTOOT::SERVER {D03E4B1}> #<SB-BSD-SOCKETS:INET-SOCKET descriptor 7 {CCFAA79}>)
  7: ((LAMBDA NIL))
  8: ("foreign function: call_into_lisp")
  9: ("foreign function: funcall0")
 10: ("foreign function: new_thread_trampoline")
 11: ("foreign function: #xB7FB8604")



I have apache listening on port 443 and using mod_lisp to
talk to a Hunchentoot server on port 4433. The relevant vhosts setup
in apache is:


<VirtualHost *:443>
	ServerName	makewavs.com
	ServerAlias 	makewavs.com *.makewavs.com
	ServerAdmin	webmaster at makewavs.com
	DocumentRoot	"/domains/makewavs.com/htdocs"
        CustomLog       /domains/makewavs.com/logs/ssl_access_log combined
        ErrorLog        /domains/makewavs.com/logs/ssl_error_log
	LogLevel   	debug
    <IfDefine SSL>
	SSLEngine on
	SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
	SSLCertificateFile /domains/makewavs.com/htdocs/CA/ca-cert.pem
	SSLCertificateKeyFile /domains/makewavs.com/htdocs/CA/private/ca-key.pem
	<Directory	"/domains/makewavs.com/htdocs">
	        Options Indexes FollowSymLinks
	        Order allow,deny
	        Allow from all
	</Directory>
        <FilesMatch "\.(gif|jpe?g|png|wav|mp3|ogg)$">
	        Options Indexes FollowSymLinks
	        Order allow,deny
	        Allow from all
	</FilesMatch>
	<LocationMatch ^/$>
		LispServer 127.0.0.1 4433 "makewavs-ssl"
		SetHandler lisp-handler
		SSLOptions +StdEnvVars
	</LocationMatch>
	<LocationMatch ^/.+\.htm.*>
		LispServer 127.0.0.1 4433 "makewavs-ssl"
		SetHandler lisp-handler
		SSLOptions +StdEnvVars
	</LocationMatch>
    </IfDefine>
</VirtualHost>



The log ends up saying:

[Thu Dec 28 12:33:31 2006] [info] Initial (No.1) HTTPS request received for child 65 (server makewavs.com:443)
[Thu Dec 28 12:34:31 2006] [error] (70007)The timeout specified has expired: error reading from Lisp


I'm running apache-2.0.58-r2, hunchentoot-0.4.12/, SBCL 1.0 on a
gentoo system, and I've read through the last 3 months of the
devel-list without seeing anything relevant.

Any help would be appreciated.

Regards,
--Jeff




More information about the Tbnl-devel mailing list