-
Notifications
You must be signed in to change notification settings - Fork 27
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
Problem with cleanup #6
Comments
Maybe the file is owned by another user? A dirty Workaround is to add a custom pre cleanup task and do the same as cleanup, but with sudo permissions. Correct permissions would be much more clean. |
Thanks for reporting, @Seraf . I have not seen this error but it might be because I tend to favor logging on standard out rather than letting the application handle production logging. It does sound like an owership issue however. Perhaps you ran the initial deploy with slightly different config or something? Either way, it would help us in figuring out the reason for your problem if you added some more details like the full permission mask of that file and its containing directory... |
Hello, Thanks |
Hi, same issue again, Same error, here is the folder : phpfpm pool running with customer:www-data, and umask 0227 |
Well, the first explanation for this that comes to my mind is that that of a race condition: the process/-es (php spawned by php-fpm I suppose) do not shut down in time, and (under sustained load) keep bombarding the path & file with mkdir/open/write requests giving rise to a sequence like the following:
The risk of that happening could be exacerbated if inside a VM where I/O slowed down under load. The reason it appears to work when run as root is either because the writing processes has by then stopped processing, of because you invoke rm directly from the shell which means somewhat lower load than when spawned by ansible(python) if the VM or host are resource starved already. |
Hello,
I'm using 3 releases for deployment. Sometimes, when it comes to cleanup,there's a file seems to bug the cleanup process :
The file in this directory is the app/logs/prod.log file.
Did you already get this problem ? Any idea about how to proceed ?
Thanks for your role !
The text was updated successfully, but these errors were encountered: