docker-django-celery-email OSError: [Errno 99] Cannot assign requested address
Hi,
I have a project consist of django - docker - celery - redis. I used celery workers for sending mail to clients in local celery is working fine but in my vps is not working and gives an error "OSError: [Errno 99] Cannot assign requested address". I used smtp.gmail.com system and i took an application password on google and used in project.
Do I need to make a setting on linode related to mail?
Please help me!
1 Reply
You may need to point your Docker container to your Docker host as the person in this post from Stack Overflow titled OSError: [Errno 99] Cannot assign requested address : flask, python and docker found. They found that their container was trying to access their server on localhost:3000
, even though it was located on the instance. Once they made a config change it resolved their issue.