Fast CGI appears to crash when I update AWS SDK for PHP #2959
Labels
closed-for-staleness
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Hi,
I'm working on getting our EC2 instances running with IMDSv2 set to required. I found that we were using an old version of AWS SDK for PHP (Version 3.69.7) on some of our instances which was making IMDSv1 calls, so I needed to update them.
But, whenever I deploy the update, I'm getting a HTTP 500 error from IIS that says Fast CGI has encountered an error and has exited with code 0xc0000005 instead the home page of our site.
The only way I seem to be able to get it working again is if I use Git reset to revert the update and stop the instance and let EC2 recreate it.
In the PHP error logs, I did find this:
I did search to see if anyone else had this specific issue and it seems some people run into this problem when they have the SDK installed twice. But I'm not sure how that would be the case for us, I can't see anything in
composer.lock
that would suggest it's installed twice. Other than that though, I can't find anything else in the logs.Expected Behavior
The S3 and Lambda calls in my code should work.
Current Behavior
My IIS server returns 500 error messages saying Fast CGI has exited with code 0xc0000005.
Reproduction Steps
It seems I don't have this problem on my local machine. I'm not sure how best to provide a reproduction of it.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.147.7 and 3.173.19
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 5.6.38 on a Windows Server 2019 Datacenter edition (OS build: 17763.3287) machine running IIS (Version 10.0.17763.1)
The text was updated successfully, but these errors were encountered: