Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 003c951df27565518b8d1d9e66de2b4f93fdd1c7
https://github.com/tribe29/checkmk/commit/003c951df27565518b8d1d9e66de2b4f9…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-01-15 (Fri, 15 Jan 2021)
Changed paths:
A .werks/11868
M bin/mkbackup
Log Message:
-----------
11868 FIX mkbackup: Fix permission issues when backing up different sites
The site and appliance backup functionality of Checkmk share a global
lock which ensures that only a single backup or restore job is running
at a time.
However, on current linux distributions, a permission issue may occur when
backing up multiple sites on a single Checkmk server. The problem appears when
one site creates the global lock file (<tt>/tmp/mkbackup.lock</tt>), locks it
and
releases the lock after the backup. The file is kept after that. Once another
site tries to lock the file during it's backup, a "Permission denied" error
is
raised. This is caused by specific file restrictions in directories where the
sticky bit is set.
The lock file has now been moved to <tt>/var/lock/mkbackup/mkbackup.lock</tt>
to solve this issue.
Change-Id: I64c44c844aae1390d289b64f06a528a510df8fd3