Error logs gunicorn-error log isn t writable FileNotFoundError 2 No such file or directory

0 votes

Hi Guys,

I am running my sanic(microframework) web service with gunicorn as a daemon and I would like to save all logs in files. But I am getting the below error while running docker-compose up command.

Error: Error: 'logs/gunicorn-error.log' isn't writable [FileNotFoundError(2, 'No such file or directory')]
Aug 24, 2020 in Docker by akhtar
• 38,260 points
4,374 views

1 answer to this question.

0 votes

Hi@akhtar,

Before trying with a docker container, I suggest you to try manually first using the below command and see if anything is logged on stdout.

$ gunicorn --config config.py app:app --access-logfile '-'

If it works then try with docker container.

answered Aug 24, 2020 by MD
• 95,460 points

Related Questions In Docker

0 votes
1 answer
+6 votes
4 answers

Error: Docker saying "bad file descriptor"

The solution was easy enough. Add these ...READ MORE

answered Mar 27, 2018 in Docker by DragonLord999
• 8,450 points
7,656 views
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 59,230 points
12,577 views
0 votes
1 answer

No output in output file even though pexpect scrift runs succesfully

You've got to wait til the ls ...READ MORE

answered Aug 10, 2018 in Docker by DareDev
• 6,890 points
3,797 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
2,657 views
0 votes
1 answer
+2 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP