-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Logger - running out of disk space. #3403
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
Comments
With the default logging it seems like you could simply clean-up the |
For those interested I'm also using AWS. I'm deleting my logs files using cronjobs. First I SSH into my parse-server instance and run the following commands. Run cron on your box Copy and Paste the following line Replace |
Also, if you're running in docker, and logging to stdout as well as log files, you might need to delete the docker log file for the container. Easiest way to clear it is like this: echo '' | sudo tee "/var/lib/docker/containers/${CONTAINER_ID}/${CONTAINER_ID}-json.log" |
If you are using AWS you can create a config file that will install cornjobs when you create an instance.
Notice unlike my last comment this uses |
Hi guys. I'm having trouble with a file |
my $.02 would be to configure logrotate to process your parse log files. this is done by adding a file in /etc/logrotate.d. there's tons of articles on how to configure logrotate with examples. |
I kept running out of space on my AWS EC2 instance until I figured out that our code deployer was setting VERBOSE to 1. This kept crashing our server almost daily with
ENOSPC
, until it was redeployed. Now that I've disabled verbose, and setlogLevel
to"error"
, I still think that we'll hitENOSPC
eventually. Is there a way to remove older logs?To be honest, I want to completely disabled logging until I'm sure about this issue no longer being a problem. But I haven't figured out a simple way yet.
The text was updated successfully, but these errors were encountered: