From: Helmut Jarausch <jarausch@skynet.be>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"
Date: Wed, 16 Sep 2015 20:52:21 +0200 [thread overview]
Message-ID: <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw> (raw)
In-Reply-To: <55F99EE4.6000902@gmail.com> (from alan.mckinnon@gmail.com on Wed Sep 16 18:55:00 2015)
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
next prev parent reply other threads:[~2015-09-16 18:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 15:57 [gentoo-user] Syslog-ng "Failed to seek to the Cursor" Helmut Jarausch
2015-09-16 16:55 ` Alan McKinnon
2015-09-16 18:52 ` Helmut Jarausch [this message]
2015-09-16 18:58 ` Alan McKinnon
2015-09-16 19:05 ` Fernando Rodriguez
2015-09-16 19:19 ` Fernando Rodriguez
2015-09-17 10:26 ` Helmut Jarausch
2015-09-16 19:42 ` Rich Freeman
2015-09-16 19:57 ` Alan McKinnon
2015-09-16 20:03 ` Rich Freeman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw \
--to=jarausch@skynet.be \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox