[Mono-aspnet-list] No response from fastcgi-mono-server2 on lighttpd/FreeBSD

patricius patrick.kristiansen at gmail.com
Fri Jul 17 05:25:04 EDT 2009


I am a complete newbie to this, so hopefully you'll excuse me if the
solution to my problem is obvious.

I'm trying to run ASP.NET on Mono on a lighttpd/FreeBSD box. So far,
I have the lighttpd server running fine and it can serve static files
without any problems. At least until I follow these guidelines:


First, I experienced a problem where fastcgi-mono-server reported the
following in its error log:

"Error: Pipe sockets are not supported on this system."

To remedy this, I set MONO_FCGI_SOCKET to "unix" (since the default
"pipe", I found out, only works on Linux). This fixed the above error,
but now, when I request a page from the web server, nothing happens.
There aren't any entries in lighttpd's error or access logs, and
nothing is reported in fastcgi-mono-server2's error log. Furthermore,
the browser I use to try and access the web server just keeps waiting
for a response.

I have verified that a new instance of fastcgi-mono-server2 is started
when a HTTP request is recieved, if one doesn't exist. So it seems
that there is at least contact to lighttpd (and its mod_fastcgi).

I am using FreeBSD 7.2 with lighttpd 1.4.22, Mono and xsp (which includes fastcgi-mono-server and fastcgi-mono-server2).

Has anyone experienced similar problems, or does anyone have a ready
answer to solve my problem?

Here are my configuration files for lighttpd:

<lighttpd.conf> (modified lighttpd.conf.sample):
include "conf.d/fastcgi.conf"

index-file.names += ( "index.aspx", "default.aspx" )
var.mono_dir = "/usr/local/"
var.mono_shared_dir = "/tmp/"
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server2"
var.mono_fcgi_root = server.document-root
var.mono_fcgi_applications = "/:."

# Include Mono specific configuration
include "conf.d/mono.conf"

server.modules += ( "mod_fastcgi" )

# FastCGI configuration
fastcgi.server = (
  "" => ((
        "socket" => mono_shared_dir + "fastcgi-mono-server",
        "bin-path" => mono_fastcgi_server,
        "bin-environment" => (
          "PATH" => "/bin:/usr/bin:" + mono_dir + "bin",
          "LD_LIBRARY_PATH" => mono_dir + "lib:",
          "MONO_SHARED_DIR" => mono_shared_dir,
          "MONO_FCGI_LOGLEVELS" => "Standard",
          "MONO_FCGI_LOGFILE" => mono_shared_dir + "fastcgi.log",
          "MONO_FCGI_ROOT" => mono_fcgi_root,
          "MONO_FCGI_APPLICATIONS" => mono_fcgi_applications,
          "MONO_FCGI_SOCKET" => "unix"
        "max-procs" => 1,
        "check-local" => "disable"
View this message in context: http://www.nabble.com/No-response-from-fastcgi-mono-server2-on-lighttpd-FreeBSD-tp24531252p24531252.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list