[Mono-list] mmap problem with mod_mono

Gonzalo Paniagua Javier reply.to.the.list.iam.suscribed@notexists.ximian.com
Thu, 05 May 2005 19:33:02 -0600

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.