-
Notifications
You must be signed in to change notification settings - Fork 15
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
"synth prepare-system" sometimes empties the ccache directory #199
Comments
When I use "synth prepare-system" to update my packages on FreeBSD, synth sometimes empties the ccache directory, including the config file. |
hmm, that doesn't sound right. deleting ccache files obviously defeats the purpose of ccache. I will do a quick check on the code to see if that is even possible. |
My synth.ini contains |
what could be happening (this is just speculation without checking code) is that the mount for ccache directory is failing to unmount, and the rm -rf is occurring in the root mount, and because ccache is Read/Write, it's deleting. The same thing could happen to distfiles if that mount fails to umount. |
That sounds like a reasonable cause for this issue. I might add that I run my system as a desktop, and turn it off at night. In the morning when I start it, anacron starts what should have run during the night. So anything that scans the file systems, like updatedb, might be accessing ccache through synths mount points when the umount happen would probably make umount fail. |
It happened again, so I have some observations.
I have this in my synth.ini:
I have 4 builders, and by observation it seems that the building takes place in SL01 - SL04, so I don't know what SL09 does. I have had more builders previously but reduced the numbers some time ago if that matters. Also the rm takes place before any building starts. |
hmm, I was assuming you weren't using tmpfs based on this behavior. Looking at the code ... |
FYI SL09 is the mount area for single builds (as opposed to a bulk build). the number 9 is not relevant. |
There's a log in the logs directory named 05_abnormal_command_output.log that might confirm that umounts are failing. |
if you want to rebuild synth with a patch, maybe this will help. create files/patch-umount with the following contents:
|
This one was tricky to catch, since SL09 is used before the actual building starts. Thanks for the patch, I will test it ASAP and report back. |
I have been running synth daily (as an ex gentooer I just can't help my self, I have a severe case of 'upgraditis') with the patch applied since 22 august, i.e. 17 days without this issue happening, and it used to be more frequent than that. I have also not noted any side effects. |
I pushed the patch: |
No description provided.
The text was updated successfully, but these errors were encountered: