From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-167456-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 400091393F1
	for <garchives@archives.gentoo.org>; Wed, 16 Sep 2015 19:06:57 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E269621C023;
	Wed, 16 Sep 2015 19:06:45 +0000 (UTC)
Received: from BLU004-OMC1S23.hotmail.com (blu004-omc1s23.hotmail.com [65.55.116.34])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9138DE0880
	for <gentoo-user@lists.gentoo.org>; Wed, 16 Sep 2015 19:06:44 +0000 (UTC)
Received: from BLU436-SMTP24 ([65.55.116.9]) by BLU004-OMC1S23.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008);
	 Wed, 16 Sep 2015 12:06:43 -0700
X-TMN: [SC+WIqXdrX0oW+xViEjiboIpL3T4Z73S]
X-Originating-Email: [frodriguez.developer@outlook.com]
Message-ID: <BLU436-SMTP2443B55A2DBB449FFEF5E38D5B0@phx.gbl>
From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"
Date: Wed, 16 Sep 2015 15:05:55 -0400
User-Agent: KMail/4.14.8 (Linux/3.18.21; KDE/4.14.8; x86_64; ; )
In-Reply-To: <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw>
References: <A6xu9RVOgPFubdzz5cKubN@c/ktwwL3FCcuU4n7LfDD0> <55F99EE4.6000902@gmail.com> <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-OriginalArrivalTime: 16 Sep 2015 19:06:43.0226 (UTC) FILETIME=[D3381FA0:01D0F0B2]
X-Archives-Salt: 15baed5d-a226-41e3-9afd-f327e2bf9900
X-Archives-Hash: 1eaf9820cb053ac97758c27452efcb1d

On Wednesday, September 16, 2015 8:52:21 PM Helmut Jarausch wrote:
> On 09/16/2015 06:55:00 PM, Alan McKinnon wrote:
> > On 16/09/2015 17:57, Helmut Jarausch wrote:
> > > I have syslog-ng-3.7.1 installed here.
> > > Syslog-ng fails to start with the message:
> > > Failed to seek to the Cursor cursor='', error='Success (0)'
> > >
> > > Does anybody know what's happening?
> > >
> > > Many thanks for a hint,
> > > Helmut
> > >
> > >
> > 
> > 
> > It has something to do with systemd's log thingy.
> > 
> > The error only appears in one place in the syslog-ng source,
> > in modules/systemd-journal/journal-reader.c:
> > 
> > static inline gboolean
> > __seek_to_saved_state(JournalReader *self)
> > {
> >   JournalReaderState *state =
> > persist_state_map_entry(self->persist_state, self->persist_handle);
> >   gint rc = journald_seek_cursor(self->journal, state->cursor);
> >   persist_state_unmap_entry(self->persist_state,
> > self->persist_handle);
> >   if (rc != 0)
> >     {
> >       msg_warning("Failed to seek to the cursor",
> >           evt_tag_str("cursor", state->cursor),
> >           evt_tag_errno("error", errno),
> >           NULL);
> >       return __seek_to_head(self);
> >     }
> >   journald_next(self->journal);
> >   return TRUE;
> > }
> > 
> > 
> > First step would appear to be to check systemd's built-in log thingy
> > 
> 
> Thanks Alan,
> 
> but how to do that. I have systemd installed here but I haven't ever used it 
since I'm using openrc.
> So, what can I do?
> 
> Thanks,
> Helmut
> 
> 

Look for file named syslog-ng.persist somewhere in /var and delete it, then try 
restarting syslog-ng.

I also recommend you start playing with journalctl. I hated it for a while but 
mostly because I didn't knew how to use it. Now I love it and got rid of 
syslog-ng.

-- 
Fernando Rodriguez