I have rsync running on the 30 minute schedule as per Spamhaus requirements. PBL and SBL seem to import fine and copy over (the majority of times). However, XBL returns an error '/bin/spamhaus-sync-custom.sh: line 263: /tmp/spamhaus-sync.out: Device or resource busy' on copy and I'm then left with xml.import and sync.lock. To get the process to run correctly at the next 30 minute interval I have to delete the .import and .lock files first. And again, the same thing happens. The only way I seem to be able to get an updated xbl is to manually stop the service, delete the file, run the import and restart the service - which is clearly not effecient in terms of bandwidth nor service continuity.
Any ideas please?
You need to monitor .lock files and remove them when they exist.
If you re-read my post, this is exactly what I am doing, and your answer was no help at all!!
I repeat: The only way I seem to be able to get an updated xbl is to manually stop the service, delete the file, run the import and restart the service - which is clearly not effecient in terms of bandwidth nor service continuity.
Are you sure that 30-min intervals are enough to complete sync jobs in your case ? It may be helpful to increase the interval, say, to 45 minutes and see if it solves the problem.
Hi Tev,
I can stop the schedule completely and run it as a one-off so there is no previously running schedule and it still happens.
Kind regards
Malcolm
Can you try to propagate permissions at the root level of the installation directory downwards ?
Tev - that doesn't help at all. Same problem.