[Mono-list] mod_mono solaris9 problem

Juha Pesonen juha.pesonen at centroid.fi
Tue Jul 4 04:32:45 EDT 2006


Hi folks!

Please please help me, I really don't know what's wrong. Couldn't find
anything about this from docs or web.

Platform is solaris 9, mono version 1.1.13.6, xsp version 
1.1.15.0, mod_mono version 1.1.14. Apache is version >= 2

Mono itself works fine when executing normal .exe files ie. compiles at
least simple .cs files and executes them from cmd-line. 

The problem is asp.net and (I guess) mod_mono that does not work. Sites
work thru xsp when xsp is started from cmd-line so the basic asp.net
architechture should be ok ?. When called thru apache/mod_mono,
everything hangs.

Funny (?) thing is that I copied the site and confs from Debian-box
where it works without any problems, mono versions differ a little
though.



Here is apache error log from solaris, at the end are relevant parts of
httpd.conf.


>> path seems ok and so does everything else so far

[Mon Jul 03 14:49:11 2006] [warn] PATH after:
/opt/mono/bin:/opt/mono/lib/xsp/1.0:/opt/mono/bin:/opt/oracle/817/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/usr/openwin/bin:/usr/ucb:.:/opt/sfw/bin:/usr/local/bin:/opt/mono/bin
mod-mono-server
Listening on: /tmp/mod_mono_server_default
Root directory: /

>> Mono process starts eating up 100% of cpu time and keeps logging this
>> (does not crash or anything)

[Mon Jul 03 14:49:24 2006] [warn] Mono Child Init
[Mon Jul 03 14:49:24 2006] [warn] Socket file name
/tmp/mod_mono_server_default
[Mon Jul 03 14:49:24 2006] [warn] try_connect: 0
[Mon Jul 03 14:49:24 2006] [warn] connected default
[Mon Jul 03 14:49:28 2006] [warn] handler: mono
[Mon Jul 03 14:49:28 2006] [warn] config = 928952
[Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
[Mon Jul 03 14:49:28 2006] [warn] idx = 1
[Mon Jul 03 14:49:28 2006] [warn] Socket file name
/tmp/mod_mono_server_default
[Mon Jul 03 14:49:28 2006] [warn] try_connect: 0
[Mon Jul 03 14:49:28 2006] [warn] After setup_socket
[Mon Jul 03 14:49:28 2006] [warn] Sending init data
[Mon Jul 03 14:49:28 2006] [warn] Send init1
[Mon Jul 03 14:49:28 2006] [warn] handler: mono
[Mon Jul 03 14:49:28 2006] [warn] config = 928952
[Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
[Mon Jul 03 14:49:28 2006] [warn] idx = 1
[Mon Jul 03 14:49:28 2006] [warn] Socket file name
/tmp/mod_mono_server_default


>> When we tried to access the site from browser, it sends bus errors, I
think it crashes httpd at this point

[Mon Jul 03 14:49:29 2006] [warn] try_connect: 0
[Mon Jul 03 14:49:29 2006] [warn] After setup_socket
[Mon Jul 03 14:49:29 2006] [warn] Sending init data
[Mon Jul 03 14:49:29 2006] [warn] Send init1
[Mon Jul 03 14:49:29 2006] [notice] child pid 28364 exit signal Bus
error (10)




>> httpd.conf


Alias /sw5 "/opt/spatialweb5/SpatialWeb5"
AddMonoApplications default "/sw5:/opt/spatialweb5/SpatialWeb5"
MonoExecutablePath default "/opt/mono/bin/mono"
MonoServerPath default "/opt/mono/lib/xsp/1.0/mod-mono-server.exe"
MonoWapidir default "/tmp/.wapi"
<Location /sw5>
       MonoSetServerAlias default
       SetHandler mono
</Location>



>> and this included from httpd.conf

 
<IfModule !mod_mono.c>
    LoadModule mono_module /opt/apache2/modules/mod_mono.so
 
    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
</IfModule>


Brs. Juha





More information about the Mono-list mailing list