[Django]-Successful Django Deploy Through AWS Elastic Beanstalk, But Getting 500 ERROR

0👍

You could try installing the ssl module on your ec2 : sudo yum install mod_ssl for your httpd issue.

Also, if you are using a load balancer, you might want to check the health status of your targets. When the health checks fail, you get 500 errors.

👤Shweta

0👍

From your log, I think this is the culprit:

Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=False debug=False>>
Traceback (most recent call last):
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 526, in __del__

I checked the file /usr/lib64/python3.6/asyncio/base_events.py and found something similar to this:

    def __del__(self):
        if not self.is_closed():
            warnings.warn(f"unclosed event loop {self!r}", ResourceWarning,
                          source=self)
            if not self.is_running():
                self.close()

Seems like you’re deleting the event loop without calling close before.

(ResourceWarning is a built-in class, I’m not sure why it’s undefined though)

👤sha256

Leave a comment