Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"
Date: Wed, 16 Sep 2015 19:06:57
Message-Id: BLU436-SMTP2443B55A2DBB449FFEF5E38D5B0@phx.gbl
In Reply to: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor" by Helmut Jarausch
1 On Wednesday, September 16, 2015 8:52:21 PM Helmut Jarausch wrote:
2 > On 09/16/2015 06:55:00 PM, Alan McKinnon wrote:
3 > > On 16/09/2015 17:57, Helmut Jarausch wrote:
4 > > > I have syslog-ng-3.7.1 installed here.
5 > > > Syslog-ng fails to start with the message:
6 > > > Failed to seek to the Cursor cursor='', error='Success (0)'
7 > > >
8 > > > Does anybody know what's happening?
9 > > >
10 > > > Many thanks for a hint,
11 > > > Helmut
12 > > >
13 > > >
14 > >
15 > >
16 > > It has something to do with systemd's log thingy.
17 > >
18 > > The error only appears in one place in the syslog-ng source,
19 > > in modules/systemd-journal/journal-reader.c:
20 > >
21 > > static inline gboolean
22 > > __seek_to_saved_state(JournalReader *self)
23 > > {
24 > > JournalReaderState *state =
25 > > persist_state_map_entry(self->persist_state, self->persist_handle);
26 > > gint rc = journald_seek_cursor(self->journal, state->cursor);
27 > > persist_state_unmap_entry(self->persist_state,
28 > > self->persist_handle);
29 > > if (rc != 0)
30 > > {
31 > > msg_warning("Failed to seek to the cursor",
32 > > evt_tag_str("cursor", state->cursor),
33 > > evt_tag_errno("error", errno),
34 > > NULL);
35 > > return __seek_to_head(self);
36 > > }
37 > > journald_next(self->journal);
38 > > return TRUE;
39 > > }
40 > >
41 > >
42 > > First step would appear to be to check systemd's built-in log thingy
43 > >
44 >
45 > Thanks Alan,
46 >
47 > but how to do that. I have systemd installed here but I haven't ever used it
48 since I'm using openrc.
49 > So, what can I do?
50 >
51 > Thanks,
52 > Helmut
53 >
54 >
55
56 Look for file named syslog-ng.persist somewhere in /var and delete it, then try
57 restarting syslog-ng.
58
59 I also recommend you start playing with journalctl. I hated it for a while but
60 mostly because I didn't knew how to use it. Now I love it and got rid of
61 syslog-ng.
62
63 --
64 Fernando Rodriguez

Replies

Subject Author
Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor" Fernando Rodriguez <frodriguez.developer@×××××××.com>