[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit-dev] Unable to read magic
From: |
Martin Pala |
Subject: |
Re: [monit-dev] Unable to read magic |
Date: |
Mon, 4 Feb 2013 21:40:58 +0100 |
Hi Sergey,
the magic is used to differentiate old state file format (which started with
number of services) from the new extensible state file format (starts with 0,
which is the "magic" - older monit versions will always start with number > 0).
It seems that the user's statefile is probably empty, hence the error is
returned.
The solution is simple:
1.) stop monit
2.) remove the state file: rm -f /var/lib/monit/state
3.) start monit (will create new state file)
Regards,
Martin
On Feb 4, 2013, at 8:05 PM, Sergey B Kirpichev <address@hidden> wrote:
> At the first startup of monit (just installed) users see:
> [EDT Jun 24 21:26:20] error : State file '/var/lib/monit/state': Unable to
> read magic
>
> Example:
> https://bugs.launchpad.net/ubuntu/+source/monit/+bug/1017327
>
> That's normal? Is there any way to prevent this "confusing" message
> for this case?
>
> _______________________________________________
> monit-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/monit-dev