Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk Space Issues due to Clockwork Generating Huge Log Files #734

Open
urmishsolanki2225 opened this issue Mar 13, 2025 · 2 comments
Open

Comments

@urmishsolanki2225
Copy link

Hello,

I've been receiving disk space warnings on my server (main.ei-ie.org). After investigation, Liquidweb found that the storage/clockwork/ directory was consuming 292 GB of disk space due to a large number of JSON log files (2,158,730 files).

I’ve already removed all the files, but new files are being generated constantly. Could you please guide me on how to prevent this issue from recurring and ensure that the disk doesn't fill up again with huge log files?

Context:
The logs were generated when the application was in debug mode.?
The size of the clockwork/ directory keeps growing rapidly with JSON files.
I have already cleared the existing files, but they are regenerated immediately.
Is there a way to disable this excessive logging or configure it to reduce file generation? Any guidance would be much appreciated.

Thanks in advance,
Urmish Solanki

@itsgoingd
Copy link
Owner

Hey, Clockwork is by default enabled only when your Laravel app is in debug mode. If this is a production deployment, make sure the debug mode is disabled, this could lead to more security problems down the line. You can also explicitly disable Clockwork by setting CLOCKWORK_ENABLE to false.

@spetz83
Copy link

spetz83 commented Apr 2, 2025

Recently ran into this as well. running clockwork:clean didn't seem to do anything either. Currently attempting to remove the current set of json files in the terminal but there are so many and they are so big, so it is taking forever. I thought clockwork was supposed to only keep the last 30 days of data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants