[Mono-list] Mono 1.9 + mod_mono on Ubuntu - strange problems

Petit Eric surfzoid at gmail.com
Fri Feb 13 14:10:11 EST 2009


I think you should upgrade to a more recent version :
http://www.go-mono.com/mono-downloads/download.html
or svn :-)

2009/2/13 Bálint Kardos <kardosbalint at gmail.com>:
> Hi,
> I've installed Mono 1.9 and mod_mono on Ubuntu.
> I have two mono-related sites in my apache config.
> The config is the same structure for both:
> <VirtualHost www.site.hu:80>
>     DocumentRoot /web/site.hu/
>     MonoServerPath site /usr/bin/mod-mono-server2
>     MonoApplications site "/:/web/site.hu/"
>     <Directory /web/site.hu>
>         MonoSetServerAlias site
>         SetHandler mono
>     </Directory>
> </VirtualHost>
> <VirtualHost www.site2.hu:80>
>     DocumentRoot /web/site2.hu/
>     MonoServerPath site2 /usr/bin/mod-mono-server2
>     MonoApplications site2 "/:/web/site2.hu/"
>     <Directory /web/site2.hu>
>         MonoSetServerAlias site2
>         SetHandler mono
>     </Directory>
> </VirtualHost>
> This is the only way I found to start 2 (two) instances of the mono-server.
> This brings up
> Problem 1)
> On Apache start, I see an error:
> [Fri Feb 13 18:36:54 2009] [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.
> [Fri Feb 13 18:36:54 2009] [crit] (17)File exists: Failed to create shared
> memory segment for backend 'XXGLOBAL' at '/tmp/mod_mono_dashboard_XXGLOBAL_
> 1'.
> Question 1) How to get rid of these errors?
> And I have 3 mono-server instances running (ps aux out):
> 1) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename
> /tmp/.mod_mono_server2 --nonstop --appconfigdir /etc/mono-server2
> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename
> /tmp/mod_mono_server_site --applications /:/web/site.hu --nonstopSsl
> 2) /usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename
> /tmp/mod_mono_server_site2 --applications /:/web/site2.hu --nonstopSsl
> Question 2) How can I disable server no.1 - I need only 2 instances?
> Problem 2)
> Without setting MonoServerPath, always mod-mono-server is starting, which
> gives a file not found, so i linked mod-mono-server to mod-mono-server2 for
> a quick workaround.
> In /etc/mono-server2/mono-server2-host.conf I have mod-mono-server2, so I
> don't understand where apache gets it's "mod-mono-server" string.
>
> Can anyone please HELP me with a clear, understandable, multi-site mod_mono
> setup? :)
> It would be really appreciated!
>
> Thanks,
> Balint
>
> üdvözlettel
> with regards
>
> Kardos Bálint
> _______________________________________
> http://skaelede.hu 10 (0xA) év a magyar weben
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-list mailing list