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