IIS PHP7 FastCgi Intemittent HTTP Error 500.0 - Internal Server Error - fastcgi

I'm running PHP7 under IIS8.5 with FastCGI
IIS is returning the following error occasionally:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
IIS logs the errors as in the following example
2021-05-05 13:22:20 10.10.0.15 GET /pedido/status1.php - 443 - 152.250.143.188 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/90.0.4430.93+Safari/537.36 https://www.***.com/pedido/pedido2.php 500 0 255 2718
FastCgi properties are the following:
Instance MaxRequests: 10000
Max Instances: 0
Standard Error Mode: ReturnStdErrIn500
Activity Timeout: 90
Idle Timeout: 300
Queue Length: 1000
Rapid Fails per Minute: 10
Request Timeout: 90
I appreciate any help that can tell us if we are misconfigurating IIS
Tks in advance

There are many reasons for this error, you can try the solution below:
There's a fairly good chance you're missing the correct VC++ runtime for the version of PHP you're running, try installing VC++ runtime.
If you have installed the VC++ runtime, please check whether you have installed 32-bit or 64-bit.

Your Rapid Fails PerMinute is too low.
Just change the Rapid Fails PerMinute to the default of 90,
Rapid Fails PerMinute: Specifies the maximum time allowed for a request to the application. If a FastCGI process takes longer than the specified time on a single request, it is terminated. The default value is 90 seconds.

Related

Having troubles getting a Garry's Mod private server to connect to MySQL database using MariaDB

Trying to get a private Garry's Mod TTT server started to test things using publicly released code (moat.gg GitHub.) Got the database setup using MariaDB and am met with errors when launching the server that I cannot figure out on my own. Zero clue what is wrong and why it isn't connecting and I am met with the error below permanently, any help is appreciated.
[moat_addons] addons/moat_addons/lua/system/app/core/datastore.lua:1: Couldn't load module
library! (The specified module could not be found.)
1. require - [C]:-1
2. unknown - addons/moat_addons/lua/system/app/core/datastore.lua:1
3. include - [C]:-1
4. unknown - addons/moat_addons/lua/system/app/core/init.lua:607
5. include - [C]:-1
6. unknown - addons/moat_addons/lua/autorun/init.lua:4
It is just multiple of that first error where it "Couldn't load module library"
That is because you're missing the MySQLOO module required for Garry's Mod to connect to a MySQL (MariaDB too) servers.
The module can be found here: FredyH MySQLOO and installing is easy as picking which version your server is running i.e. Linux or Windows and dropping it into the folder called garrysmod/garrysmod/lua/bin/ you can place both 32 and 64 bit versions if you're unsure which version your server is running.
Based on the other code you'll also want to edit the database options if you haven't already which are located in addons/moat_addons/lua/system/cfg/sql/sv_config.lua
I thought I had used the latest mysqloo file in every location but I missed one, the only one that mattered... fixed.

Meteor [RangeError: Out of memory] exited with code: 3

I'm running a meteor app that connects to a SQL and Mongo database. When I start the app I get this error after successfully connecting to MSSQL. I don't know if the error is related to Kadira or not but here's what happens:
Every once in awhile the app will successfully run, only to exit and restart randomly after I see the out of memory error.
I also see sometimes:
C:\Users...\.meteor\local\build\programs\server\packages\meteorhacks_kadira.js:3130
originalRun.call(this,val);
^
RangeError: Out of memory
at Fibers.run (packages/meteorhacks:kadira/.../async.js:25:1)
at Object._onImmediate (pakages/meteor/fiber_helpers.js:126:1)
at processImmediate [as _immediateCallback] (timers.js:354:15)
Does this mean my computer doesn't have enough RAM to run my application? I'm not sure how to figure out the source of this error further but I was wondering if anyone has even encountered something like this? I don't think that this should be happening because others run the application without this error.

SonarQube 5.1.1 Read Timed out Error occurs while loading project repositories

While using the sonar runner to analyze the multi module project I frequently get the “Read Timed Out” error. I have Jenkins configured with SonarQube 5.1.1. Our project is kind of web project, we have a couple of sonar plugins for the analysis like web, css, java, findbugs, js, xml and jacoco. If I load the given link "http://172.21.145.84:9000/batch/project?key=webportal&preview=false" from browser it works, but sometimes it takes quite long to load the response data. Can anyone please give me any suggestion regarding this failure? I have shared the sonar log below.
SonarQube Runner 2.4
Java 1.7.0_45 Oracle Corporation (64-bit)
Windows 7 6.1 amd64
INFO: Runner configuration file: C:\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: D:\Jenkins\jobs\Webportal_2.0_Drop1Branch\workspace\DataModel\..\ucfed_webportal_plugin_att\sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: D:\Jenkins\jobs\Webportal_2.0_Drop1Branch\workspace\DataModel\..\ucfed_webportal_plugin_att\.sonar
INFO: SonarQube Server 5.1.1
17:11:29.762 INFO - Load global repositories
17:11:30.027 INFO - Load global repositories (done) | time=281ms
17:11:30.042 INFO - Server id: 20150707155744
17:11:30.042 INFO - User cache: C:\Users\Administrator\.sonar\cache
17:11:30.042 INFO - Install plugins
17:11:30.479 INFO - Install JDBC driver
17:11:30.495 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar
17:11:32.538 INFO - Initializing Hibernate
17:11:35.409 INFO - Load project repositories
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 26.832s
Final Memory: 46M/303M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to request: /batch/project?key=webportal &preview=false
ERROR: Caused by: Read timed out
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
Extended Email Publisher is currently disabled in project settings
Finished: FAILURE
Turns out I ran in to the same problem due to a large SQL query result set.
Incleasing sonar.jdbc.maxWait to 300000 did the trick.
Great help! thanks a bunch !
As you can see the error is related with the read timeout, this is produced by the fact that the project it has to read is quite big. In my case I modified the sonar.jdbc.maxWait value of the configuration file: /sonarqube-5.1.2/conf/sonar.properties
# The maximum number of milliseconds that the pool will wait (when there
# are no available connections) for a connection to be returned before
# throwing an exception, or <= 0 to wait indefinitely.
sonar.jdbc.maxWait=10000
When I perform this change, the error disappear.
Good luck
In the long run of using SonarQube, I was able to tackle the above issue with few tweaks by keeping the below mentioned points in mind.
Increase in hardware performance.
Keep the system to run only SonarQube.
Restart the sonar server once in a week.
Will give a good result.
You are facing the following limitation that we'll try to address in SonarQube 5.2: SONAR-6604
(I've added a reference to your post in the description of the ticket)
Note that you are using the default installation which is based on the embedded H2 database, so you can't expect to have good performances. I guess you must have noticed the big red warning at the bottom of the page.
I faced a similar problem with Sonar 8.9.1:
Fail to request url: http://.../batch/project.protobuf?key=...: timeout: Read timed out
In my case the problem was a very big Jacoco xml coverage file. I solved it by increasing the default value (60 seconds) of sonar.ws.timeout parameter as detailed in documentation.

How to set Timeout limit at ServiceModel Metadata Utility Tool (Svcutil.exe)

As described at this post
http://msdn.microsoft.com/en-us/library/aa347733%28v=vs.110%29.aspx
Timeout
The tool has a 5 minute timeout when retrieving metadata. This timeout
only applies to retrieving metadata over the network. It does not
apply to any processing of that metadata.
I am always got timeout error when I try to generate my web service file.
HTTP GET Error
URI: http://localhost/TheProject/Services.svc?wsdl
There was an error downloading 'http://localhost/TheProject/Services.svc?wsdl'.
The operation has timed out
If you would like more help, type "svcutil /?"
So, I usually run the script to generate the file 5 or more times at VS CMD. Then, My files generated successfully.
I am looking way to set the timeout limit, so, I am not run 5 or more times my command.
Please help.

Groovy and Grails Tools suite will not run at all

I had the GGTS v3.3.0 installed on my Windows XP Pro PC with Java JDK v.1.6_31 and it worked fine.
Since, I've had my PC re-imaged to Windows 7 Pro 64-bit, and the GGTS no longer works.
I have uninstalled and re-installed several times, trying GGTS v3.3.0 and v3.5.0 and every time it gives me no trouble installing, but won't run when I try to execute the installed IDE. I get this error:
An error has occurred. See the log file C:....\ggts-3.3.0.RELEASE\configuration\473459988766.log
I look in this log and I see the stack trace, and the commonalities:
!ENTRY org.eclipse.equinox.registry 4 0 2014-04-24 11:58:21.713
!MESSAGE Could not parse XML contribution for "org.eclipse.wst.html.ui.infopop//plugin.xml".
Any contributed extensions and extension points will be ignored.
!STACK 0
org.xml.sax.SAXException: Could not acquire XML parsing service.
...
...
!ENTRY org.eclipse.osgi 4 0 2014-04-24 11:58:23.153
!MESSAGE Application error
!STACK 1
org.osgi.service.application.ApplicationException: No application id has been found.
I have no idea what is wrong. Please let me know what additional information is needed. Thanks in advance.
~Bill
Check if in sts.ini (or eclipse.ini) you have:
-product
org.springsource.sts.ide
Check if in config.ini you have
eclipse.application=org.eclipse.ui.ide.workbench
I also have STS on Win 7 x64 and it worked fine... don't recall seeing anything similar.
You might want to install Java 7 and try launching your STS 3.5.0 with Java 7.
Cheers,
Alex

Resources