[Mono-aspnet-list] Problem With Mono + Apache2 with Mod-Mono

Marcos Junior junalmeida at gmail.com
Mon Mar 24 02:39:40 UTC 2014


> I'm trying to configure my MVC ASP-NET 4 application with mod_mono and
> apache2.
>
> I can successfully run the application when the machine comes from a
> reboot (or restarting services and clearing temp files). All works fine.
>
> The problem is when I try to recompile the binary and replace it on the
> production server's bin folder, apache stops responding. Browser seats
> waiting for timeout. The mono-ctrl handler also stops responding. I cannot
> find any useful logs.
>
> Thanks for helping.
>
> Here goes my settings, app versions and some logs.
>
> # apache2 -v
> Server version: Apache/2.4.6 (Ubuntu)
> Server built:   Dec  5 2013 18:32:22
>
> # mono -V
> Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-1~pre1)
> Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
> www.mono-project.com
>         TLS:           __thread
>         SIGSEGV:       altstack
>         Notifications: epoll
>         Architecture:  amd64
>         Disabled:      none
>         Misc:          softdebug
>         LLVM:          supported, not enabled.
>         GC:            sgen
>
>
> # uname -a
> Linux ip-172-31-22-67 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18
> 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>
>
> # ls /etc/apache2/mods-enabled/
> access_compat.load  authn_file.load  autoindex.load  env.load
> mod_mono.load     setenvif.conf       ssl.load
> alias.conf          authz_core.load  deflate.conf    filter.load
>  mpm_worker.conf   setenvif.load       status.conf
> alias.load          authz_host.load  deflate.load    mime.conf
>  mpm_worker.load   socache_shmcb.load  status.load
> auth_basic.load     authz_user.load  dir.conf        mime.load
>  negotiation.conf  speling.load
> authn_core.load     autoindex.conf   dir.load        mod_mono.conf
>  negotiation.load  ssl.conf
>
> # mod-mono-server4 --version
> mod-mono-server4.exe 2.10.0.0
> (c) (c) 2002-2007 Novell, Inc.
> Mod_mono backend for XSP
>
>
>
> # cat /etc/apache2/sites-enabled/webmin.1395111048.conf
> <VirtualHost dev.ferloassessoria.com.br>
>   ServerName dev.ferloassessoria.com.br
>   ServerAdmin web-admin at dev.ferloassessoria.com.br
>    DocumentRoot /var/www/dev.ferloassessoria.com.br
>   MonoServerPath dev.ferloassessoria.com.br "/usr/bin/mod-mono-server4"
>   MonoDebug dev.ferloassessoria.com.br true
>   MonoSetEnv dev.ferloassessoria.com.br MONO_IOMAP=all
>   MonoApplications dev.ferloassessoria.com.br "/:/var/www/
> dev.ferloassessoria.com.br"
>   <Location "/">
>     Allow from all
>     Order allow,deny
>     MonoSetServerAlias dev.ferloassessoria.com.br
>     SetHandler mono
>     SetOutputFilter DEFLATE
>     SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
>     #ForceType application/x-asp-net
>   </Location>
>   <IfModule mod_deflate.c>
>     AddOutputFilterByType DEFLATE text/html text/plain text/xml
> text/javascript
>   </IfModule>
> </VirtualHost>
>
> # cat /etc/apache2/sites-enabled/000-default.conf
> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
> <Location /mono>
>   SetHandler mono-ctrl
>   Order deny,allow
>   Deny from all
>   Allow from 127.0.0.1
> </Location>
>
> # tail  /var/log/apache2/error.log
> [Wed Mar 19 16:51:55.947719 2014] [:error] [pid 4735:tid 140578624886528]
> command failed: failed to send file (file data)
> Change: Ferlo.Web.dll
> [Wed Mar 19 16:52:44.047803 2014] [:error] [pid 4733:tid 140578498995968]
> (104)Connection reset by peer: read_data failed
> [Wed Mar 19 16:52:44.047902 2014] [:error] [pid 4733:tid 140578498995968]
> Command stream corrupted, last command was -1
> mod-mono-server4
> mod-mono-server4
> Listening on: /tmp/mod_mono_server_dev.ferloassessoria.com.br
> Root directory: /var/www/dev.ferloassessoria.com.br
> [Wed Mar 19 16:53:26.284182 2014] [mpm_worker:error] [pid 4724:tid
> 140578848868224] AH00287: server is within MinSpareThreads of
> MaxRequestWorkers, consider raising the MaxRequestWorkers setting
> [Wed Mar 19 16:53:29.287387 2014] [mpm_worker:error] [pid 4724:tid
> 140578848868224] AH00286: server reached MaxRequestWorkers setting,
> consider raising the MaxRequestWorkers setting
>
>
> Att, Marcos Almeida Junior.
> http://about.me/junalmeida
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20140323/d47887e7/attachment.html>


More information about the Mono-aspnet-list mailing list