/var/lib/misc/mmmd_mon.status not safely overwritable

Bug #385541 reported by jfdusar on 2009-06-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pascal Hofmann

Bug Description

I run mysql-mmm version 2.0.6

I just installed the last version and I got the following sentence appearing in the info log:

#2009/06/10 13:25:52 Can't savely overwrite status file '/var/lib/misc/mmmd_mon.status'!

This correspond to line 167 of lib/Monitor/Agents.pm file. It's seems that the rename cannot occur.
The file placed in /tmp have permissions like this :

-rw------- 1 root root 170 Jun 10 13:25 /tmp/T41s9M3qST

and /var/lib/misc/mmmd_mon.status have permissions like that :

-rw-rw-rw- 1 root root 170 Jun 10 09:50 /var/lib/misc/mmmd_mon.status

If you need any other info please ask me.

Related branches

Pascal Hofmann (pascalhofmann) wrote :

Is your /tmp/ directory on another file system then /var/lib? That would explain the error ... from the perl rename documentation:

"[...] it will usually not work across file system boundaries [...]"

I'll fix that...

Changed in mysql-mmm:
assignee: nobody → Pascal Hofmann (pascalhofmann)
importance: Undecided → High
jfdusar (jfdusar) wrote :

yes they are on different partition.

Pascal Hofmann (pascalhofmann) wrote :

I've attached a modified version of Monitor/Agents.pm where this bug should be fixed.

Changed in mysql-mmm:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers