Recently when starting beanstalkd we get the following error message numerous times./usr/bin/beanstalkd: WARNING, EOF while reading version record at /var/lib/beanstalkd/binlog/binlog.203:0. Continuing. You may be missing data.:Investigating where this error comes from, it seems to be when beanstalkd checks for a version number in the log file, and can't find it.Is it possible that the binlog has become corrupted?I mention this because we had a problem recently where some NFS drive errors may have caused it to crash.What is the best way of recovering from this error? Should the binlog be deleted manually? If we instruct beatstalk to delete all buried jobs, does this also re-create the binlog file?- icydee
On Mon, Oct 1, 2012 at 7:55 AM, Ian Docherty <i...@docherty.me> wrote:
> /usr/bin/beanstalkd: WARNING, EOF while reading version record at
> /var/lib/beanstalkd/binlog/binlog.203:0. Continuing. You may be missing
> data.:
This message means the file binlogl.203 is empty.
What's the file size reported by the OS? I'd expect
it to be 0. This means the contents of that file are
already gone, and you might as well delete the file.
> I mention this because we had a problem recently where some NFS
> drive errors may have caused it to crash.
File locking is unreliable over NFS, and beanstalkd
relies on the F_SETLK fcntl flag to ensure that only
one beanstalkd runs at a time.
On Wednesday, 3 October 2012 20:35:55 UTC+1, Keith Rarick wrote:On Mon, Oct 1, 2012 at 7:55 AM, Ian Docherty <i...@docherty.me> wrote:
> /usr/bin/beanstalkd: WARNING, EOF while reading version record at
> /var/lib/beanstalkd/binlog/binlog.203:0. Continuing. You may be missing
> data.:
This message means the file binlogl.203 is empty.
What's the file size reported by the OS? I'd expect
it to be 0. This means the contents of that file are
already gone, and you might as well delete the file.Yes that was the problem. Thanks.