1 |
On 09/16/2015 06:55:00 PM, Alan McKinnon wrote: |
2 |
> On 16/09/2015 17:57, Helmut Jarausch wrote: |
3 |
> > I have syslog-ng-3.7.1 installed here. |
4 |
> > Syslog-ng fails to start with the message: |
5 |
> > Failed to seek to the Cursor cursor='', error='Success (0)' |
6 |
> > |
7 |
> > Does anybody know what's happening? |
8 |
> > |
9 |
> > Many thanks for a hint, |
10 |
> > Helmut |
11 |
> > |
12 |
> > |
13 |
> |
14 |
> |
15 |
> It has something to do with systemd's log thingy. |
16 |
> |
17 |
> The error only appears in one place in the syslog-ng source, |
18 |
> in modules/systemd-journal/journal-reader.c: |
19 |
> |
20 |
> static inline gboolean |
21 |
> __seek_to_saved_state(JournalReader *self) |
22 |
> { |
23 |
> JournalReaderState *state = |
24 |
> persist_state_map_entry(self->persist_state, self->persist_handle); |
25 |
> gint rc = journald_seek_cursor(self->journal, state->cursor); |
26 |
> persist_state_unmap_entry(self->persist_state, |
27 |
> self->persist_handle); |
28 |
> if (rc != 0) |
29 |
> { |
30 |
> msg_warning("Failed to seek to the cursor", |
31 |
> evt_tag_str("cursor", state->cursor), |
32 |
> evt_tag_errno("error", errno), |
33 |
> NULL); |
34 |
> return __seek_to_head(self); |
35 |
> } |
36 |
> journald_next(self->journal); |
37 |
> return TRUE; |
38 |
> } |
39 |
> |
40 |
> |
41 |
> First step would appear to be to check systemd's built-in log thingy |
42 |
> |
43 |
|
44 |
Thanks Alan, |
45 |
|
46 |
but how to do that. I have systemd installed here but I haven't ever used it since I'm using openrc. |
47 |
So, what can I do? |
48 |
|
49 |
Thanks, |
50 |
Helmut |