John Davidson

python - apache caught SIGWINCH, shutting down gracefully

0 comments
Message:


I need your help please.
This is what happening: I'm trying to generate a video thanks to ffmpeg.
To do so I have a directory where I put the medias (video and images) I want to put on my final video.
Then once my files ready to be used (right bitrate, resolution, and so on...), I call a python script that generates the ffmpeg code to produce my video.


The python script is called from my php script with the escapeshellcmd command.


Problem is my apache server keeps crashing each time I try to produce a video.


In the error log I see this:
[mpm_prefork:notice] [pid 745] AH00170: caught SIGWINCH, shutting down gracefully


Could someone help or give me hint please?


Thanks a lot,
Damien



My Answer:
It looks like the SIGWINCH signal is being sent to the Apache server, causing it to shut down gracefully. This signal is typically sent when the terminal window size changes.

One possible solution is to check if there are any terminal-related commands or functions being used in your Python script that may be triggering the SIGWINCH signal. You can try running the Python script without any terminal-related commands to see if the issue persists.

Additionally, you may want to check the Apache configuration and make sure that it is properly configured to handle the ffmpeg process and any potential resource limitations.

If the issue persists, you may want to consider running the ffmpeg process in a separate process or using a different method to generate the video, such as using a dedicated video processing service.

I hope this helps! Let me know if you have any other questions.

Rate this post

4 of 5 based on 1549 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us