Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268982 - www-apache/mod_mono/mod_mono-2.4: webapp no longer works after upgrade to 2.4
Summary: www-apache/mod_mono/mod_mono-2.4: webapp no longer works after upgrade to 2.4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 22:11 UTC by Robert R. Richter
Modified: 2009-05-17 14:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert R. Richter 2009-05-07 22:11:53 UTC
webapp now shows -> 500 Internal Server Error (works before upgrade to 2.4!)

my /etc/apache2/modules.d/70_mod_mono.conf
--
# For more information on the Mono* directives, see the man page for
# mod_mono(8)

<IfDefine MONO>
        # Set this to False if you manage your ASP.Net server manually through
        # /etc/init.d/mod-mono-server
        MonoRunXSP True

        # Set this to Enabled if you want to enable AutoHosting.
        # See http://www.mono-project.com/AutoConfiguration for more info.
        # Note that if you want your automatically hosted applications
        # handled by ASP.NET 2.0 engine you have to enable the aspnet2 USE flag.
        MonoAutoApplication Disabled

        <IfModule !mod_mono.c>
                # LoadModule mono_module modules/mod_mono.so
                LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so
        </IfModule>

        <IfModule mod_mime.c>
                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 .vb
                AddType application/x-asp-net .master
                AddType application/x-asp-net .sitemap
                AddType application/x-asp-net .resources
                AddType application/x-asp-net .skin
                AddType application/x-asp-net .browser
                AddType application/x-asp-net .webinfo
                AddType application/x-asp-net .resx
                AddType application/x-asp-net .licx
                AddType application/x-asp-net .csproj
                AddType application/x-asp-net .vbproj
                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>

### Please also add "-D MONO_DEMO" in order to activate out-of-the-box mono demo
###
        # Note that the test application runs on a separate mod-mono-server
        # instance named "testinst". Athought this is not mandatory, it shows how to
        # distribute workload between multiple mod-mono-servers. For more info see:
        # http://www.mono-project.com/Mod_mono

        <IfDefine ASPNET>
                <IfModule mod_alias.c>
                        Alias /mono "/usr/share/doc/xsp/aspnet"
                </IfModule>

                # You might want to specify the version of mod-mono-server
                # instance that will handle your application. The default
                # value depends on whether the aspnet2 USE flag was set
                # during compilation
                #MonoServerPath testinst /usr/lib/mono/1.0/mod-mono-server.exe
                #MonoServerPath testinst /usr/lib/mono/2.0/mod-mono-server2.exe

                AddMonoApplications postoffice "/mono:/usr/share/doc/xsp/aspnet"

                <Directory /usr/share/doc/xsp/aspnet>
                        SetHandler mono
                        MonoSetServerAlias postoffice

                        <IfModule mod_authz_host.c>
                                Order allow,deny
                                Allow from all
                        </IfModule>
                        AuthType Basic
                        AuthName "ASP.NET Protection"
                        AuthUserFile /etc/apache2/conf/passwd/.htpasswd
                        Require user testme
                        <IfModule mod_dir.c>
                                # Sample ASP.NET 1.1/2.0 applications can be accessed
                                # via index2.aspx.
                                DirectoryIndex index.aspx
                                #DirectoryIndex index2.aspx
                        </IfModule>
                </Directory>
        </IfDefine>
### MONO_DEMO end.

</IfDefine>


Reproducible: Always

Actual Results:  
The Apache error log shows:
--
[Fri May 08 00:09:38 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8h mod_mono/2.4 PHP/5.2.9-pl2-gentoo configured -- resuming normal operations
System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.WebServer.ModMonoApplicationHost.ProcessRequest (Int32 reqId, System.String verb, System.String queryString, System.String path, System.String protocol, System.String localAddress, Int32 serverPort, System.String remoteAddress, Int32 remotePort, System.String remoteName, System.String[] headers, System.String[] headerValues, System.Object worker) [0x00000]
  at (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[],object)
  at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000]
  at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000]
[Fri May 08 00:09:44 2009] [error] (70014)End of file found: read_data failed
[Fri May 08 00:09:44 2009] [error] Command stream corrupted, last command was 1

Expected Results:  
website should show up

Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-glibc2.0
Timestamp of tree: Wed, 06 May 2009 18:00:05 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.4-r6, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa berkdb bzip2 cdr cli cracklib crypt cups dri dvd dvdread fortran gdbm gpm gstreamer gtk gtk2 gtkhtml iconv imap isdnlog libwww maildir midi mudflap mysql ncurses nls nptl nptlonly odbc openmp pam pam-mysql pcre perl pppd python readline reflection samba sasl session spl ssl sysfs tcpd tiff unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-07 22:22:23 UTC
(In reply to comment #0)
> webapp now shows -> 500 Internal Server Error (works before upgrade to 2.4!)

Did you use 2.2 before?
Comment 2 Robert R. Richter 2009-05-07 23:02:40 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > webapp now shows -> 500 Internal Server Error (works before upgrade to 2.4!)
> 
> Did you use 2.2 before?
> 

Yes! I had 2.2 installed before, BUT I am unsure whether I 've tested ASP.NET on 2.2 as I am using my WebApp not very often...

The problem is not caused by my webapp as I have tested some simple .aspx files in this directory (webapp temp. removed) and the error (apache log) is always the same. It seems that my system is unable to process .aspx files anymore.
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-07 23:58:15 UTC
I'm sorry to say I probably can't be much help in debugging this. You'll have to figure out when this broke and then I can help you get this put upstream. I don't use mod_mono myself at all, but I have made it rather easy to test new releases. 

If you have synced within the last couple of days, you should take a look at /usr/portage/profiles/package.mask . dev-lang/mono-9999 and friends are = trunk mono. Try to unmask that first, see if this is fixed there. If not, try working backwards till you find a version that works. 
Comment 4 Robert R. Richter 2009-05-12 22:47:49 UTC
Okay - tested my WebApp with 2.2 - works as expected (w/o any erros) - only on 2.4, I've the described error(s). HTH
Comment 5 Robert R. Richter 2009-05-13 08:57:43 UTC
I was able to narrow down the problem. First of all, mod-mono-2.4 is working, now. I have only tested it with https (SSL) as my WebApp requires a logon. Using http it works as expected. Sorry, that I haven't tested it earlier with http. I am about to figure out, why https isn't working anymore with my unmodified config. Maybe, you want to close this bug. I 'll report if I find anything out.
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-17 14:57:07 UTC
If you find out what caused, this please leave a note here so I can warn other users in the ebuild. Closing INVALID for now.