Questions tagged [error-handling]

constructs designed to handle errors signaled by error codes, exceptions or other specific means.

22 questions
0
votes
1 answer

Configure NGINX : How to handle 500 Error on upstream itself, While Nginx handle other 5xx errors

We have a NGINX reverse proxy (clustered) with 45 upstreams (22 domains, 20 subdomains, 11 apps). Some of our projects hosts apis for some users globally. Our developers designed special custom 500 responses for special cases and want to show that…
ender ulusoy
  • 13
  • 1
  • 1
  • 5
0
votes
1 answer

Suppress error mails from cron if the jobs only fails occasionally

We have a bunch of cron jobs that occasionally fail, for example due to network hiccup. Only rarely do they fail consistently (for example due to a bug or misconfiguration). I'd like to receive only error mails in the latter case, and suppress the…
moritz
  • 151
  • 1
  • 5
0
votes
1 answer

PHP exceptions cause nginx to leak virtualhosts into each-other

I have multiple nginx virtualhosts set up on my server. tershronalds.com is running vanilla wordpress 4.3, and staging.ninjawars.net is running a custom php codebase. Both are relying on php5-fpm. If no php errors or exceptions are triggered, both…
Kzqai
  • 1,278
  • 4
  • 17
  • 32
0
votes
3 answers

Catching "request entity is too large" error

I am running a web server IIS 8.0 and using ASP.NET and C#. I have an upload box where the user can upload a file to the server and after a limit of about 50MB, a message appears on a white page: The page was not displayed because the request…
noblerare
  • 101
  • 1
  • 6
0
votes
1 answer

Nginx reverse proxy: How to serve 'back soon' html file while backend server restarts

I have a WSGI server behind by nginx. Say I bring the WSGI instance down for maintenance/update, is there a nice way of nginx automatically serving up any requests to that application with a specified HTML file?
user1561108
  • 185
  • 1
  • 1
  • 5
0
votes
2 answers

PHP not debugging/showing error messages

I've just installed lighttpd, and I'm not seeing any error messages on pages when I know errors must have occurred. All I get is a blank page. However, I do get the errors in the error log file - but I really want to see them while I develop instead…
Matt
  • 625
  • 1
  • 7
  • 14
0
votes
1 answer

Windows Handling Piped Comands Error Redirection

Warning: I am no expert on building scripts, and sorry for lousy English. In an case of generating a CSV from a database query I'm using the following commands. CALL java.exe -classpath ... com.xigole.util.sql.Jisql -user dmfodbc -pf pwd.file…
jpmartins
  • 1,334
  • 2
  • 11
  • 14
1
2