Script timed out before returning headers: wsgi.py on elastic beanstalk

后端 未结 6 1146
后悔当初
后悔当初 2020-12-14 07:45

I\'m trying to deploy a Django application to Elastic Beanstalk. When I visit the page it never loads. The logs say:

Script timed out before returning header         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 08:28

    I have tried above steps which can solve issue temporally. then I have done bellow steps:

    1. make "packages.config" file under ".ebextensions " folder and put following lines

      WSGIApplicationGroup: command: grep -rnw 'WSGIApplicationGroup' config.py || sed -i.bak '/LogFormat/ a WSGIApplicationGroup %%{GLOBAL}' config.py cwd: /opt/elasticbeanstalk/hooks

    thanks for helps to made this who given suggestion for this type of error

    I finally fixed. just read about apache mpm load module concept

    I was changed the default load mode from apache preforker(my case) module which is depends on os.

    find below location

    location : /etc/httpd/conf.module.d/00-mpm*.

    Enable worker module which depends our cases

    LoadModule mpm_worker_module lib64/httpd/modules/mod_mpm_worker.so

    once again thanks for who helped me.

提交回复
热议问题