[Mono-list] mmap problem with mod_mono
Sébastien Robitaille
sebastien.robitaille@croesus.com
Fri, 6 May 2005 11:30:08 -0400
Hello,
thanks for your answer (Gonzalo).
I did set the MonoWapiDir directive as you suggested, but now I have a different error message:
[Fri May 06 10:11:48 2005] [error] /sebas/.wapi: Permission denied
I looked in my /sebas directory and the .wapi directory was not created as expected.
To make sure it was not a permission issue, I executed the following commands:
mkdir /sebas/.wapi/
chown apache.apache /sebas/.wapi/
chmod -R 777 /sebas
But the error message still appears in the log file.
Do you have another suggestion ? :-)
How do I make sure mod-mono-server is running as user "apache" ?
Thanks
Sébastien
If it can help, here is the content of my mod_mono.conf file:
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
Alias /mono "/usr/share/doc/xsp/test"
MonoApplications "/:."
MonoWapiDir "/sebas"
<Directory /usr/share/doc/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Gonzalo Paniagua
Javier
Sent: Thursday, May 05, 2005 9:33 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] mmap problem with mod_mono
On Thu, 2005-05-05 at 15:35 -0400, Sébastien Robitaille wrote:
> Hello,
>
> I am trying to use mod_mono with Apache for the first time and I am =
facing the following problem:
>
> When I try to access my asp web page, I receive a "Service Temporarily =
Unavailable" message.
> Also, in the apache error log file, the following message appears =
several times:
>
> ** (/usr/lib/mono/1.0/mod-mono-server.exe:2784): CRITICAL **: =
_wapi_shm_attach: mmap error: Permission denied
> ** ERROR **: file handles.c: line 123 (shared_init): assertion failed: =
(_wapi_shared_layout != NULL)
> aborting...
>
> I changed the permissions on my /tmp directory (chmod 777 /tmp) but =
the problem is still there.
> The following file exists on my disk (the file used with mmap): =
/tmp/.wapi/shared_data-MACHINENAME-5-0
> I tried removing the .wapi directory.
> I also ran xsp instead of Apache with success.
>
> Any idea on what could be wrong?
Make sure that the user running apache is the same that runs
mod-mono-server and owns /tmp/.wapi directory.
As an alternative, you can use MonoWapiDir directive to tell
mod-mono-server the directory in which .wapi will be created.
-Gonzalo
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list