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