[Mono-list] mod_mono (mono 1.9)with Apache 2.2 and windows 2003

gsvi greg.svitak at onbase.com
Wed Jun 18 15:36:57 EDT 2008


Hello,

I am struggling trying to get mod_mono to work with a windows 2003
environment.  I was wondering if someone could post a sample conf file for
the windows version of mod_mono. Additionally, if anyone could point out
what seems to be my problem, I would greatly appreciate the help. I have
included my conf file and log file at the bottom of the post.

I am using mod 1.9 and able to get xsp2 server to load up the samples
without any problem.

I need to launch the mod_mono-server2 because I have asp.net 2.0 application
that I would like to test out on windows.

I have installed apache 2.2.3 and downloaded the mod_mono.so from
http://anmar.eu.org/mono/mod_mono/. I am using the latest version with debug
turned on to help me diagnosis the problem.

I am running the apache server from the console and not a windows service.

When i attempt to hit the index2.aspx page, three command windows open and
close so I think it is trying to start the mod-mono-server2.exe process. In
the temp directory, it appears to be creating the temp files for the sockets
so I know the os permissions are correct.

However when the page loads, I get the 503 Service Temporarily Unavailable
message. 

Any help would be appreciated,

Thanks,
Greg


The following is the apache error log:

[Wed Jun 18 14:40:59 2008] [notice] Child 3256: Acquired the start mutex.
[Wed Jun 18 14:40:59 2008] [notice] Child 3256: Starting 250 worker threads.
[Wed Jun 18 14:41:00 2008] [notice] Child 3256: Starting thread to listen on
port 8080.
[Wed Jun 18 14:42:21 2008] [warn] handler: mono
[Wed Jun 18 14:42:21 2008] [warn] config = 0x8854c0
[Wed Jun 18 14:42:21 2008] [warn] dir_config = 0x8854b8
[Wed Jun 18 14:42:21 2008] [warn] idx = 1
[Wed Jun 18 14:42:22 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:22 2008] [warn] After setup_socket
[Wed Jun 18 14:42:22 2008] [warn] No backend found, will start a new copy.
[Wed Jun 18 14:42:22 2008] [warn] Acquiring the
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp/mod_mono_dashboard_default_2.lock
lock for backend start
[Wed Jun 18 14:42:23 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:23 2008] [warn] forking default
[Wed Jun 18 14:42:23 2008] [warn] Applications: /test:/Mono19/lib/xsp/test
[Wed Jun 18 14:42:23 2008] [warn] Config file: (null)
[Wed Jun 18 14:42:23 2008] [warn] Config dir.: (null)
[Wed Jun 18 14:42:23 2008] [warn] Listen port: 2001
[Wed Jun 18 14:42:23 2008] [warn] Listen address: (null)
[Wed Jun 18 14:42:23 2008] [warn] PATH:
C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:23 2008] [warn] serverdir: C:\\Mono19/bin
[Wed Jun 18 14:42:23 2008] [warn] PATH after:
C:\\Mono19/bin;C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:23 2008] [warn] Started new backend, sleeping 2s to let it
configure
[Wed Jun 18 14:42:26 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:26 2008] [warn] After setup_socket
[Wed Jun 18 14:42:26 2008] [warn] No backend found, will start a new copy.
[Wed Jun 18 14:42:26 2008] [warn] Acquiring the
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp/mod_mono_dashboard_default_2.lock
lock for backend start
[Wed Jun 18 14:42:27 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:27 2008] [warn] forking default
[Wed Jun 18 14:42:27 2008] [warn] Applications: /test:/Mono19/lib/xsp/test
[Wed Jun 18 14:42:27 2008] [warn] Config file: (null)
[Wed Jun 18 14:42:27 2008] [warn] Config dir.: (null)
[Wed Jun 18 14:42:27 2008] [warn] Listen port: 2001
[Wed Jun 18 14:42:27 2008] [warn] Listen address: (null)
[Wed Jun 18 14:42:27 2008] [warn] PATH:
C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:27 2008] [warn] serverdir: C:\\Mono19/bin
[Wed Jun 18 14:42:27 2008] [warn] PATH after:
C:\\Mono19/bin;C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:27 2008] [warn] Started new backend, sleeping 2s to let it
configure
[Wed Jun 18 14:42:30 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:30 2008] [warn] After setup_socket
[Wed Jun 18 14:42:30 2008] [warn] No backend found, will start a new copy.
[Wed Jun 18 14:42:30 2008] [warn] Acquiring the
C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp/mod_mono_dashboard_default_2.lock
lock for backend start
[Wed Jun 18 14:42:31 2008] [warn] try_connect: -1
[Wed Jun 18 14:42:31 2008] [warn] forking default
[Wed Jun 18 14:42:31 2008] [warn] Applications: /test:/Mono19/lib/xsp/test
[Wed Jun 18 14:42:31 2008] [warn] Config file: (null)
[Wed Jun 18 14:42:31 2008] [warn] Config dir.: (null)
[Wed Jun 18 14:42:31 2008] [warn] Listen port: 2001
[Wed Jun 18 14:42:31 2008] [warn] Listen address: (null)
[Wed Jun 18 14:42:31 2008] [warn] PATH:
C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:31 2008] [warn] serverdir: C:\\Mono19/bin
[Wed Jun 18 14:42:31 2008] [warn] PATH after:
C:\\Mono19/bin;C:\\OnBase;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\WBEM;c:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program
Files\\Hyland\\OnBase\\ocr;C:\\OnBase\\ocr;C:\\WINDOWS\\system32\\
[Wed Jun 18 14:42:31 2008] [warn] Started new backend, sleeping 2s to let it
configure
[Wed Jun 18 14:42:33 2008] [error] Failed to connect to mod-mono-server
after several attempts to spawn the process.



The following is my mod_mono.conf

# mod_mono.conf

# Acthung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx


<IfModule !mod_mono.c>
    MonoServerPath c:\Mono19\bin\
    AddType application/x-asp-net .aspx
    AddType application/x-asp-net .asmx
    AddType application/x-asp-net .ashx
    AddType application/x-asp-net .asax
    AddType application/x-asp-net .ascx
    AddType application/x-asp-net .soap
    AddType application/x-asp-net .rem
    AddType application/x-asp-net .axd
    AddType application/x-asp-net .cs
    AddType application/x-asp-net .config
    AddType application/x-asp-net .Config
    AddType application/x-asp-net .dll
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
    DirectoryIndex login.aspx
</IfModule>


<VirtualHost *:8080>
			ServerName vm-coredemo
			DocumentRoot "/Mono19/lib/xsp/test"
			MonoDocumentRootDir "/Mono19/lib/xsp/test"
			MonoApplications default "/test:/Mono19/lib/xsp/test"
</VirtualHost>

-- 
View this message in context: http://www.nabble.com/mod_mono-%28mono-1.9%29with-Apache-2.2-and-windows-2003-tp17990145p17990145.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list