View Full Version : [ubuntu] Mod_mono issues
brianhenson
January 6th, 2009, 09:48 PM
I installed mod_mono and the mono-apache-server2 along with the required packages for mono and such and I cannot get mono to work. when running a simple hello world in vb.net I get this error in the apache error.log
[Tue Jan 06 18:39:01 2009] [error] Failed running '/usr/bin/mod-mono-server --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory
I have it set to use the mod-mono-server2 in the mono.conf file but it is still trying to use the version 1 witch is not installed. Anyone have a solution or can point me in the right direction?
edit: forgot to say I am running intrepid on x86
directhex
January 7th, 2009, 05:02 AM
Sorry, which file exactly are you editing?
brianhenson
January 8th, 2009, 02:51 AM
I followed the guide located here http://frugalcoder.us/post/2008/02/Setting-up-mod_mono-(ASPNet-20)-on-Ubuntu-710-(Gutsy-Gibbon).aspx and made a auto_mono_hosting.conf
directhex
January 8th, 2009, 03:24 AM
I followed the guide located here http://frugalcoder.us/post/2008/02/Setting-up-mod_mono-(ASPNet-20)-on-Ubuntu-710-(Gutsy-Gibbon).aspx and made a auto_mono_hosting.conf
The guide is wrong.
Unfortunately, MonoAutoApplication does not permit you to override MonoServerPath - it is hard-coded to use /usr/bin/mod-mono-server
I filed a bug on this here: https://bugzilla.novell.com/show_bug.cgi?id=440415
Oh, and the guide is wrong for another reason - use "a2dismod" and "a2enmod", don't symlink things in /etc/apache2 manually
brianhenson
January 11th, 2009, 11:32 PM
Do you have any sujections on how to get this up and running? I am up for anything and not afraid of the command line :lolflag:
directhex
January 12th, 2009, 03:30 AM
I HATE to suggest it, but ln -s /usr/bin/mod-mono-server2 /usr/bin/mod-mono-server
brianhenson
January 12th, 2009, 04:27 AM
ok now I have done that it is asking me to download the file. at least we are getting somewhere now.
directhex
January 12th, 2009, 04:52 AM
ok now I have done that it is asking me to download the file. at least we are getting somewhere now.
Restart apache
brianhenson
January 12th, 2009, 08:35 PM
I did that with the same results and just to make sure I wasn't to tired to work on it I did it again just now with the same result, it asking me to download the file
directhex
January 14th, 2009, 03:33 AM
Check your apache log then, mod_mono isn't being used properly
brianhenson
January 15th, 2009, 02:08 AM
ok i checked the error.log and here is what i am getting
[Wed Jan 14 23:06:43 2009] [error] [client 192.168.1.20] Invalid method in request \x16\x03\x01
directhex
January 15th, 2009, 04:59 AM
Paste your config file
directhex
January 15th, 2009, 05:00 AM
Oh, and make sure you have libmono-i18n{1,2}.0-cil installed
brianhenson
January 15th, 2009, 08:48 PM
Ok i had those installed and here is my mod_mono_auto.conf file
MonoServerPath "/usr/bin/mod-mono-server2"
MonoAutoApplication enabled
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 .config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
and the directory that hosts the files
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
SetHandler mono
AllowOverride None
Order allow,deny
allow from all
</Directory>
directhex
January 16th, 2009, 03:26 AM
Ok i had those installed and here is my mod_mono_auto.conf file
Unfortunately, MonoAutoApplication does not permit you to override MonoServerPath - it is hard-coded to use /usr/bin/mod-mono-server
One day people might listen to me. One day...
brianhenson
January 16th, 2009, 07:50 PM
Yes I remember and I asked how to fix it. Those are the files i have configured the rest is stock from the package. I don't know anything about mono so I am just relying on help. once i screwed up with it once i didnt want to do anything else that would hinder the troubleshooting process
directhex
January 17th, 2009, 06:25 AM
Yes I remember and I asked how to fix it. Those are the files i have configured the rest is stock from the package. I don't know anything about mono so I am just relying on help. once i screwed up with it once i didnt want to do anything else that would hinder the troubleshooting process
You cannot combine ANY settings starting with "Mono" with "MonoAutoApplication" - you need to remove your MonoServerPath setting.
brianhenson
January 17th, 2009, 06:25 PM
Ok I removed that line and i get this from the error.log and it askes me to download the file. [Sat Jan 17 15:22:23 2009] [warn] long lost child came home! (pid 14689)
[Sat Jan 17 15:22:23 2009] [warn] long lost child came home! (pid 14691) if I have to we can work from scratch and purge and reinstall mono and start over if you feel that is needed.
directhex
January 17th, 2009, 08:36 PM
Ok I removed that line and i get this from the error.log and it askes me to download the file. if I have to we can work from scratch and purge and reinstall mono and start over if you feel that is needed.
Purging libapache2-mod-mono2 and installing it again might help, as long as you're certain that all the config files are gone. Then use "a2dismod mod_mono" and "a2enmod mod_mono_auto"
brianhenson
January 17th, 2009, 09:12 PM
Ok i purged it. i removed the autohosting file i created using the howto. I now have a clean mono and mod-mono install. I did not enable the auto hosting so I can use the mod_mono.conf file. If i am wrong please let me know. I want to set it up the right way not the fast way.
MaedMaex
October 1st, 2010, 11:32 AM
Hi. I'm stuck on the same Problem. Did you solve it?
brianhenson
October 1st, 2010, 12:58 PM
nope never did had to switch to suse :(
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.