[Errno 13] Permission denied: '/usr/local/airflow/logs/scheduler'

If you’re seeing this error when working locally on Astronomer, it may be that a logs folder was somehow built into your image with the wrong permissions.

A few things:

  • Do you have a logs folder somewhere in your astro project directory?
  • If so, you can try either:
    1. Removing the logs folder by running rm -rf logs/ and then pushing up a deploy OR
    2. Try running echo logs/ > .dockerignore so that that folder stays, but doesn’t get built into your image
1 Like