Mono MVC Timeout

Hi everyone!

I am struggling to get a (simple) MVC app work under OpenBSD (5.3) +
Mono
(2.10.9) + Nginx (1.2.6)

I can get a simple index.aspx (Hello World) app to work, but the default
MVC 3 template doesn’t seem to work.

I made some minor changes to remove any reference to SQL providers in
Web.config and I removed EntityFramework.dll, as well as ensuring that
the
various System.Web.* dlls also co-existed in my \bin folder.

All I seem to get is this:

504 Gateway Time-out
nginx/1.2.6

This is how I am launching fastcgi-mono-server4:
fastcgi-mono-server4 /applications/:.
/socket=tcp:127.0.0.1:9000/printlog=True

But the only log detail I get is this:
[DateTimeStamp] Beginning to receive records on connection.

I have uploaded my config and source code to here:
http://www.4shared.com/rar/FzSLuLnF/MvcMonoNginx.html

Given that I can serve a simple ‘Hello World’ page, I’m pretty sure
there
isn’t anything wrong with my base nginx/mono installs, but no doubt
something subtle I have missed in my configs. Can anyone (please) shed
any
light on this?

Thanks!
G

How soon after making a request do you see the 504 and how does it
relate to your fastcgi_read_timeout setting?
(Module ngx_http_fastcgi_module).

[ Whilst I might have been able to check your config for this, I’m not
going to bother to download a random rar file and unpack it. Learn to
pastebin/gist/etc! :wink: ]

Jonathan

Jonathan M. // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

Hello,

OpenBSD grey.my.domain 5.5 GENERIC.MP

mono --version

Mono JIT compiler version 2.10.9

nginx -V

nginx version: nginx/1.4.4

i have exactly the same problem, i run the aspx with a very explicit
path:

fastcgi-mono-server4 /applications=grey:/index.aspx:./moon/index.aspx

/socket=tcp:127.0.0.1:9000 /loglevels=Debug /verbose=True
/root=/var/www/

I use this nginx http conf :

server {
server_name grey;
root /var/www/moon/;
index index.html index.htm index.aspx default.aspx;

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location / {
fastcgi_index index.aspx;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param PATH_INFO “”;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
#try_files $uri $uri/ /index.aspx;
}

Fighting with ImageCache? This little gem is amazing.

location ~ ^/sites/.*/files/imagecache/ {
try_files $uri $uri/ @rewrite;
}
}

Then i copied-pasta the MVC application, expecting the /bin to be
detected
etc…

fastcgi-mono-server4 /applications=grey:/:./moon/MonoWeb

/socket=tcp:127.0.0.1:9000 /loglevels=Debug /verbose=True
/root=/var/www/

i also ran as root and using tcp socket to just test the xsp.

The fastcgi-mono-server4 just say nothing , nor reply the request.

Best regards.

Posted at Nginx Forum: