[Mono-aspnet-list] One VirtualHost runs, with a second the first fails
flowdy
kunz.florian at gmx.de
Fri Feb 11 05:43:59 EST 2011
Hello Mono-Community,
I'm runnin' Ubuntu 10.04 LTS and have installed the mono-packes from the
Ubuntu & badgerports repository
If I configure only one VirtualHost (VH) everything works fine. If I add a
second VH the system, only the 2nd works. The first is throwing an
Exception. I was looking through the mailing list and someone suggested to
run both hosts in one mod-mono-server instance and place the MonoApplactions
outside the VH's config with the following line:
MonoApplications "page1:/:/path/to/page1,page2:/:/path/to/page2"
I changed to my needs to:
MonoApplications "87.106.20.253:/:/var/www/,fvk-edv.de:/:/var/www-fvk/"
but this only lead to errors in the log file which told me there are no
MonoApplicaton registered and mod-mono-server2 fails because of that. I set
my configuration back. The configuration is added to the end of the message.
I'm grateful for every hint you can give me.
Best regards,
Florian
My first host in /etc/apache2/sites-enabled/default (this is the one that
fails)
<VirtualHost *:80>
ServerName 87.106.20.253
ServerAdmin kunz.florian at gmx.de
DocumentRoot /var/www/
MonoServerPath 87.106.20.253 "/usr/bin/mod-mono-server2"
MonoDebug 87.106.20.253 true
MonoSetEnv 87.106.20.253 MONO_IOMAP=all
MonoApplications 87.106.20.253 "/:/var/www/"
<Location "/">
Allow from all
Order allow,deny
MonoSetServerAlias 87.106.20.253
SetHandler mono
</Location>
</VirtualHost>
the second /etc/apache2/sites-enabled/fvk-edv (the one that is working)
looks like this:
<VirtualHost *:80>
ServerName fvk-edv.de
ServerAlias www.fvk-edv.de
ServerAdmin kunz.florian at gmx.de
DocumentRoot /var/www-fvk/
MonoServerPath fvk-edv.de "/usr/bin/mod-mono-server2"
MonoDebug fvk-edv.de true
MonoSetEnv fvk-edv.de MONO_IOMAP=all
MonoApplications fvk-edv.de "/:/var/www-fvk/"
<Location "/">
Allow from all
Order allow,deny
MonoSetServerAlias fvk-edv.de
SetHandler mono
</Location>
</VirtualHost>
the errorlog of apache shows me:
[Fri Feb 11 11:00:23 2011] [notice] Apache/2.2.14 (Ubuntu) mod_mono/2.6.3
configured -- resuming normal operations
mod-mono-server2
mod-mono-server2
mod-mono-server2
Listening on: /tmp/mod_mono_server_fvk-edv.de
Root directory: /
mod-mono-server2
Listening on: /tmp/mod_mono_server_87.106.20.253
Root directory: /
** (/usr/lib/mono/2.0/mod-mono-server2.exe:26469): WARNING **:
ves_icall_System_Threading_Thread_Thread_internal: CreateThread error 0x0
Handling exception type ExecutionEngineException
Message is Couldn't create thread
IsTerminating is set to True
System.ExecutionEngineException: Couldn't create thread
at <0x00000> <unknown method>
at (wrapper delegate-begin-invoke)
System.Threading.WaitCallback:begin_invoke_IAsyncResult__this___object_AsyncCallback_object
(object,System.AsyncCallback,object)
at System.Threading.ThreadPool.QueueUserWorkItem
(System.Threading.WaitCallback callBack, System.Object state) [0x00000] in
<filename unknown>:0
at System.Threading.Timer+Scheduler.SchedulerThread () [0x00000] in
<filename unknown>:0
mod-mono-server2
mod-mono-server2
Listening on: /tmp/mod_mono_server_87.106.20.253
Root directory: /
Handling exception type ExecutionEngineException
Message is Couldn't create thread
IsTerminating is set to True
System.ExecutionEngineException: Couldn't create thread
[Fri Feb 11 11:01:22 2011] [error] (70014)End of file found: read_data
failed
[Fri Feb 11 11:01:22 2011] [error] Command stream corrupted, last command
was 1
mod-mono-server2
GC Warning: Marker thread creation failed, errno = 12.
** ERROR **: _wapi_collection_init: Couldn't create handle collection
thread: Resource temporarily unavailable
aborting...
Native stacktrace:
/usr/bin/mono() [0x487afb]
/lib/libpthread.so.0(+0xf8f0) [0x2abd5f09e8f0]
/lib/libc.so.6(gsignal+0x35) [0x2abd5f563a75]
/lib/libc.so.6(abort+0x180) [0x2abd5f5675c0]
/lib/libglib-2.0.so.0(g_logv+0x53a) [0x2abd5e9ed33a]
/lib/libglib-2.0.so.0(g_log+0x83) [0x2abd5e9ed3d3]
/usr/bin/mono() [0x5959eb]
/usr/bin/mono() [0x5a01cd]
/usr/bin/mono(mono_once+0x64) [0x597384]
/usr/bin/mono() [0x5a0213]
/usr/bin/mono() [0x5aaf85]
/usr/bin/mono() [0x524b48]
/usr/bin/mono(mono_runtime_init+0x25) [0x4e18c5]
/usr/bin/mono() [0x42138e]
/usr/bin/mono(mono_main+0x297) [0x467867]
/lib/libc.so.6(__libc_start_main+0xfd) [0x2abd5f54ec4d]
/usr/bin/mono() [0x417d99]
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
mod-mono-server2
Listening on: /tmp/mod_mono_server_87.106.20.253
Root directory: /
Handling exception type ExecutionEngineException
Message is Couldn't create thread
IsTerminating is set to True
System.ExecutionEngineException: Couldn't create thread
[Fri Feb 11 11:01:27 2011] [error] (70014)End of file found: read_data
failed
[Fri Feb 11 11:01:27 2011] [error] Command stream corrupted, last command
was 1
[Fri Feb 11 11:01:58 2011] [notice] caught SIGTERM, shutting down
--
View this message in context: http://mono.1490590.n4.nabble.com/One-VirtualHost-runs-with-a-second-the-first-fails-tp3301082p3301082.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list