[Mono-list] Mono on Debian
Gavin Hamill
gdh at acentral.co.uk
Thu Sep 1 04:23:34 EDT 2005
Howdy :)
I'm using the current 1.1.8.2 mono packages for Debian, with mod_mono 1.0 and
mono-apache-server 1.0.5, and I'm getting Internal Server Error when I browse
to /samples
mod_mono is loaded via LoadModule and this fragment is in the apache conf:
<IfModule mod_mono.c>
MonoUnixSocket /tmp/.mod_mono_server
MonoServerPath /usr/share/dotnet/bin/mod-mono-server.exe
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir /etc/mono-server
MonoPath /usr/share/dotnet/lib:/usr/lib:/usr/share/dotnet/lib
# start /etc/mono-server/conf.d/asp.net-examples/10_asp.net-examples
Alias /samples "/usr/share/asp.net-demos/asp"
<Directory /usr/share/asp.net-demos/asp>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
# end /etc/mono-server/conf.d/asp.net-examples/10_asp.net-examples
</IfModule>
I can see the following process which is spawned by apache when I request from
the /samples alias
21305 ? Ssl
0:00 /usr/bin/mono /usr/share/dotnet/bin/mod-mono-server.exe
--filename /tmp/.mod_mono_server --nonstop --appconfigdir /etc/mono-server
And the permissions on /tmp/.mod_mono_server and the contents of /tmp/.wapi
are owned by www-data, the apache process.
{sa_family=AF_INET, sin_port=htons(51775), sin_addr=inet_addr("10.0.0.100")},
[16]) = 3
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805d5a0, [], SA_INTERRUPT}, 8) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("10.0.0.142")}, [16]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
alarm(300) = 0
read(3, "GET /samples/ HTTP/1.1\r\nConnecti"..., 4096) = 377
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL) = 1125562347
alarm(300) = 300
alarm(0) = 300
gettimeofday({1125562347, 791579}, NULL) = 0
stat64("/usr/share/asp.net-demos/asp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share/asp.net-demos", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
lstat64("/usr/share/asp.net-demos/asp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
stat64("/usr/share/asp.net-demos/asp/index.aspx", {st_mode=S_IFREG|0644,
st_size=1732, ...}) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share/asp.net-demos", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
lstat64("/usr/share/asp.net-demos/asp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/usr/share/asp.net-demos/asp/index.aspx", {st_mode=S_IFREG|0644,
st_size=1732, ...}) = 0
stat64("/usr/share/asp.net-demos/asp/index.aspx", {st_mode=S_IFREG|0644,
st_size=1732, ...}) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/share/asp.net-demos", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
lstat64("/usr/share/asp.net-demos/asp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/usr/share/asp.net-demos/asp/index.aspx", {st_mode=S_IFREG|0644,
st_size=1732, ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_FILE, path="/tmp/.mod_mono_server"}, 110) = 0
write(4, "\3\0\0\0", 4) = 4
write(4, "GET", 3) = 3
write(4, "\23\0\0\0", 4) = 4
write(4, "/samples/index.aspx", 19) = 19
write(4, "\0\0\0\0", 4) = 4
write(4, "\10\0\0\0", 4) = 4
write(4, "HTTP/1.1", 8) = 8
write(4, "\t\0\0\0", 4) = 4
write(4, "\6\0\0\0", 4) = 4
write(4, "Accept", 6) = 6
write(4, "6\0\0\0", 4) = 4
write(4, "text/html, image/jpeg, image/png"..., 54) = 54
write(4, "\16\0\0\0", 4) = 4
write(4, "Accept-Charset", 14) = 14
write(4, "\33\0\0\0", 4) = 4
write(4, "utf-8, utf-8;q=0.5, *;q=0.5", 27) = 27
write(4, "\17\0\0\0", 4) = 4
write(4, "Accept-Encoding", 15) = 15
write(4, " \0\0\0", 4) = 4
write(4, "x-gzip, x-deflate, gzip, deflate", 32) = 32
write(4, "\17\0\0\0", 4) = 4
write(4, "Accept-Language", 15) = 15
write(4, "\2\0\0\0", 4) = 4
write(4, "en", 2) = 2
write(4, "\r\0\0\0", 4) = 4
write(4, "Cache-control", 13) = 13
write(4, "\10\0\0\0", 4) = 4
write(4, "no-cache", 8) = 8
write(4, "\n\0\0\0", 4) = 4
write(4, "Connection", 10) = 10
write(4, "\n\0\0\0", 4) = 4
write(4, "Keep-Alive", 10) = 10
write(4, "\4\0\0\0", 4) = 4
write(4, "Host", 4) = 4
write(4, "\n\0\0\0", 4) = 4
write(4, "10.0.0.142", 10) = 10
write(4, "\6\0\0\0", 4) = 4
write(4, "Pragma", 6) = 6
write(4, "\10\0\0\0", 4) = 4
write(4, "no-cache", 8) = 8
write(4, "\n\0\0\0", 4) = 4
write(4, "User-Agent", 10) = 10
write(4, "G\0\0\0", 4) = 4
write(4, "Mozilla/5.0 (compatible; Konquer"..., 71) = 71
read(4, 0xbffff5c8, 4) = -1 ECONNRESET (Connection reset by
peer)
close(4) = 0
alarm(300) = 0
alarm(0) = 300
alarm(300) = 0
alarm(0) = 300
alarm(300) = 0
alarm(0) = 300
write(3, "HTTP/1.1 500 Internal Server Err"..., 828) = 828
time(NULL) = 1125562347
write(17, "10.0.0.100 - - [01/Sep/2005:09:1"..., 159) = 159
gettimeofday({1125562347, 800065}, NULL) = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 437301960
alarm(30) = 0
shutdown(3, 1 /* send */) = 0
select(4, [3], NULL, NULL, {2, 0}) = 1 (in [3], left {1, 952000})
read(3, "", 512) = 0
close(3) = 0
alarm(0) = 30
rt_sigaction(SIGUSR1, {0x805d5a0, [], SA_INTERRUPT}, {SIG_IGN}, 8) = 0
alarm(0) = 0
accept(16,
If I use XSP, everything works - but I need the more advanced features of
Apache :)
I'm alarmed by the 'Connection reset by peer' message from the socket :(
Any ideas would be warmly received!
Cheers,
Gavin.
More information about the Mono-list
mailing list