Yes, this is because of queue worker. You should set appropriate user/group in supervisord if that bothers you.
Jun 15, 2025
3
Level 1
Why are some directories under storage/framework/cache/data being created by the root user?
I’ve investigated and found that some cache directories are being created by the root user instead of www-data. Do you think the configuration below is causing the issue?
[supervisord]
nodaemon = true
user = root
[program:laravel-worker]
process_name = %(program_name)s_%(process_num)02d
command = php /www/artisan queue:work --max-time=3600
autostart = true
autorestart = true
stopasgroup = true
killasgroup = true
user = root
numprocs = 8
redirect_stderr = true
stdout_logfile = /laravel_worker.log
Please or to participate in this conversation.