From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"
Date: Wed, 16 Sep 2015 20:58:12 +0200 [thread overview]
Message-ID: <55F9BBC4.5030307@gmail.com> (raw)
In-Reply-To: <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw>
On 16/09/2015 20:52, 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?
Well you are one better than me.
I _don't_ have systemd installed here but I haven't ever used it since
I'm using openrc :-)
I haven't seen Canek for a few days, hopefully he'll drop by and help
you out - he's usually the one with the most useful systemd answers
--
Alan McKinnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2015-09-16 18:58 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
2015-09-16 18:58 ` Alan McKinnon [this message]
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=55F9BBC4.5030307@gmail.com \
--to=alan.mckinnon@gmail.com \
--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