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,170 points
855 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,180 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 26, 2018 in Docker by DragonLord999
• 8,450 points
3,184 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,050 points
9,830 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 9, 2018 in Docker by DareDev
• 6,890 points
1,534 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,120 points
1,155 views
0 votes
1 answer
+1 vote
2 answers