[Flask] Unexplained error message: PermissionError: [Errno 1] Operation not permitted

Clint Olsen clint.olsen at gmail.com
Wed Apr 1 17:44:42 EDT 2020


Occasionally on page loads, I'm seeing the following error:

Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]: Traceback (most recent call
last):
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/arbiter.py",
line 583, in spawn_worker
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     worker.init_process()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/ggevent.py",
line 162, in init_process
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     super().init_process()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/base.py",
line 140, in init_process
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     self.run()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/ggevent.py",
line 102, in run
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     self.notify()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/ggevent.py",
line 66, in notify
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     super().notify()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/base.py",
line 74, in notify
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:     self.tmp.notify()
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:   File
"/opt/local/python3.6/lib/python3.6/site-packages/gunicorn/workers/workertmp.py",
line 46, in notify
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]:
os.fchmod(self._tmp.fileno(), self.spinner)
Apr  1 14:41:36 cpu-paw-01 gunicorn[1869]: PermissionError: [Errno 1]
Operation not permitted

How can I debug this?

Thanks,

-Clint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20200401/addd3f52/attachment.html>


More information about the Flask mailing list