AWS Elasticbeanstalk ebextensions server restart error "Error occurred during build: [Errno 4] Interrupted function call" AWS Elasticbeanstalk ebextensions server restart error "Error occurred during build: [Errno 4] Interrupted function call" powershell powershell

AWS Elasticbeanstalk ebextensions server restart error "Error occurred during build: [Errno 4] Interrupted function call"


We've had the same issue. We needed to disable SSL and TLS < 1.2, which requires registry changes and a reboot. Our workaround is to do the reboot in the container_commands section with a wait of forever. This seems to properly reboot and then trigger success in the deployment. However, it never actually does any of the steps after the reboot, which includes the built-in deployment of the code from the staging location to the actual final file destination (inetpub/wwwroot most likely). To get around this, have a step just before the reboot to copy the files from the local staging directory to the web root yourself.


We also needed to set a registry value and reboot. Our solution was to put the script in the command section and set waitAfterCompletion to foreve. There is a restart-computer --Force in our powershell script to cause the reboot.

disable_secure_time_seeding:    command: powershell.exe -ExecutionPolicy Bypass -File "C:\\scripts\\DisableSecureTimeSeeding.ps1" #This will cause a reboot    waitAfterCompletion: forever