i am using mpdf library in my project for report generation, when ever i generate report with minimum record it works fine but if there is more record of more than 2000 and i want to generate the pdf report for that record it's give error Gateway Timeout. i search for the issue on internet i fount solution of different developer who face issue of gate way time out. i increase the php memory_limit=1024M and set execution time = 600 but still have error. Please any one help thanks.enter image description here
"504 - Gateway Timeout Error" simply means Server is not responsive. A server is taking too much time to respond. The server may be down. I don't see any other issue.
and look her to fix this issue
https://www.scalescale.com/tips/nginx/504-gateway-time-out-using-nginx/
Related
I am trying to generate 10000 pdf reports into the windows file share location using SSRS data driven subscription methodology and I found that when I run for small bathces and it works and it surely fail when I give 10000 at a time. This behavior is unpredictable and not able to scale the solution. Ex:
When I put 10000 load it generates 2700 and fails rest but when I try to run failed records in another batch then it gets me the PDFs. It fails sometime with small batch sizes also. No proper reason logged.
Thanks
Using PhantomJS and bash, I'm working on a little piece of anti-malware that reads a web page, grabs all the domains that are delivering assets to the browser, then prints each server's country of origin. It works fine except for one site that has a... uh... 'suboptimal' piece of javascript that calls to an external server every 5 seconds. PhantomJS just loads the resource over and over and over, page.open() never finishes, and page.onLoadFinished() is never called.
Is there a way around this? Can I set a time limit on page.load()? I guess, as a workaround, can I set a time limit on the Linux process?
Thanks in advance, and if anyone is interested in a copy of this script let me know and I'll post it somewhere public.
I solved this problem using the solutions given here to set a execution time limit on the phantomjs command and kill it if needed.
Command line command to auto-kill a command after a certain amount of time
I have a Domino App that runs on the web as well as in the lotus notes client. I can open and save my main form in the LN client without issues and i can open it in the browser as well. When i try to save it in the browser, i get the "Error 500 HTTP Web Server: Corrupt Data Exception" page displayed. I made a copy of the form, and started removing all of the fields on the original one field at a time and still got the error page. I copied an identical form from my test database to the production db thinking that would work but i get the error "Error 404 Entry not found in index" error page with that form.
I am at a complete loss as what to do next so i am hoping that someone here can give me a little direction.
Thanks
Corrupt Data Exception is usually displayed if: 1 open the document in web, 2 change the designe of the form 3 try to save.
Did you removed all cache of you browser (ok this is trivially but I can't be sure you checked this)
could you check in the log.nsf what is the precise error written there (Corrupt Data.. which DB which &seq= )
did you try rebooting (or at least tell http restart) the server?
the 2nd part Entry not found in index, check if the form makes a DBlookup or what ever:
- on view in the current DB that is in test
- on another DB which design doesn't contain same design element in prod than in test
if all this doesn't help make a backup of the db and try fixup and so on.
I'm running CGI-LUA scripts with lighttpd on embedded device. The web client attempts to run via POST three scripts every 3 seconds.
Most of the time it works, but the issue is that from time to time I get 500 internal server error, like the server fails to run the script, though nothing changed and in the 'top' I see that the CPU is idle most of the time.
I'm new to web, any ideas?
If I were trying to solve this problem I would start with:
1) Look in /var/log/lighttpd/error.log to see what lighttpd is reporting when the failure occurs.
2) Write a very simple CGI-LUA script that does something traceable, like touch a file with the current unixtime as its name, and hit it every 3 seconds instead of your script. This will help you figure out if the problem is in CGI-LUA or in your script.
3) Run your script outside CGI-LUA repeatedly in a loop to see if it ever fails.
I need your help, I have a problem with server.transfer code in vb.net, it runs so slow..
My Question:
Why does it run slowly (take 5 minutes to move between web pages (.aspx))?
What should i check for this trouble?
Is it because operating system? Im use windows 7, before i used windows XP there is no problem like this...
is server.transfer related to database connection (not sure)? I use mysql (XAMPP packages).
Or may be because other configuration that i miss out in windows seven.
FYI: i try in several web browser same result(loading 5 minutes)..
Thank every one that answer my question, thank you very much!
One thing I've found on this is that it can have to do with the status code the transferred page returns. If it returns a 500 error, it can make your server transfer run upwards of five minutes.
One way to test this, if you can, is to run the transferred page in isolation and generate any of the information being transferred on the other side to see if any errors are generated.
It took me a day to figure this out. Hopefully it helps someone else.