permission denied OsError : [Errno 13] (file in use) Celery – Redis -Django… here is a solution to the problem.
permission denied OsError : [Errno 13] (file in use) Celery – Redis -Django
My process creates a file via celery-redis (in a folder mounted via fstab), tries to modify this file, and I have the error Permission denied OSError: [Errno 13]
If I restart celery, I create the file in my local folder and I can change it.
fstab: 10.1.1.x:/mount /mount cifs rw,nounix,nosuid,nodev,noexec,user=user,password=***,noperm,sec=ntlmv2 0 0 run celery: python manage.py celery worker --loglevel=info Settings.py: BROKER_URL = 'redis://localhost:6379/0' CELERY_TRACK_STARTED = True CELERY_DISABLE_RATE_LIMITS = True
Thanks for your help.
This is a matter of permissions. Files created by Celery may not have write permissions. Set write permissions wherever you create them as well.