[Mono-aspnet-list] Ubuntu, mod_mono, and 2.6
Joe Dluzen
jdluzen at gmail.com
Wed Mar 10 12:31:49 EST 2010
After some more editing, I've got some answers just in case anyone
else needs to upgrade too.
The multiple servers running was caused by me having multiple
virtualhosts, and setting MonoServerPath in them.
Editing /etc/mono-server2/mono-server2-hosts.conf:
MonoServerPath default /opt/mono2.6/bin/mod-mono-server2
MonoPath default /opt/mono2.6/lib
The "default" above looks to be the name of the .webapp, but I changed
mine to a different name, and it still works.
Everything auto starts now, and uses the correct assemblies. I
couldn't prepend the new lib path to the existing MonoPath, it still
attempted to load the wrong mscorlib, and then crashed.
Joe
On Tue, Mar 9, 2010 at 12:29 PM, Joe Dluzen <jdluzen at gmail.com> wrote:
> Hello all,
>
> I recently stumbled across a bug while browsing the mailing list:
> https://bugzilla.novell.com/show_bug.cgi?id=568441
>
> I'm currently on Ubuntu 9.10 with Mono 2.4.2 using mod_mono with
> Apache2, the standard out of the box packages. Although not bitten by
> this bug yet, I'm proactively addressing it by determining the best
> way to upgrade to Mono 2.6. I don't package things much, but I've
> successfully built a Mono 2.6 package, and runs well on a number of
> machines. However, it is a parallel installation in /opt.
>
> What I'd like to know is, what is the easiest way to do this?
> 1. Build a giant Mono package that contains everything, and set it to
> replace every every mono* and libmono* package there is? (My guess is
> that this is ill advised.)
> 2. Reconfigure mod_mono to use the installation in /opt.
> 2a. This is what I am currently attempting. I've edited my virtualhost
> to set the MonoServerPath (again, something I stumbled across while
> not even looking for it) to the new mod-mono-server2. It starts, runs,
> and has the correct 2.6 assemblies opened. However, it seems that the
> old mod-mono-server2 is running at the same time, and is possibly
> stepping on the other one because the output from starting Apache is:
> "[crit] (13)Permission denied: Failed to attach to existing dashboard,
> and removing dashboard file '/tmp/mod_mono_dashboard_XXGLOBAL_1'
> failed (Operation not permitted). Further action impossible." The
> permissions on the file seem fine, read and write with owner set to
> www-data. I am then able to kill the old mod-mono-server2, and it
> still works. The old one is not restarted.
>
> Thoughts on how to fix this? Or do this "correctly"? Or even a new
> option entirely? Or do it this way
> http://lists.ximian.com/pipermail/mono-aspnet-list/2010-February/000648.html
> ?
>
> In a related question, is there an easy way/command/build option to
> strip the debug symbols from Mono itself?
>
> Thanks,
> Joe
More information about the Mono-aspnet-list
mailing list