From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-167455-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 5C7631393F1
	for <garchives@archives.gentoo.org>; Wed, 16 Sep 2015 18:58:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E7EB3E0880;
	Wed, 16 Sep 2015 18:58:33 +0000 (UTC)
Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 96713E0877
	for <gentoo-user@lists.gentoo.org>; Wed, 16 Sep 2015 18:58:32 +0000 (UTC)
Received: by wiclk2 with SMTP id lk2so86818655wic.0
        for <gentoo-user@lists.gentoo.org>; Wed, 16 Sep 2015 11:58:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-type:content-transfer-encoding;
        bh=Tigw+s5YdRRnSXjo5ESOBjGayAApyKt5zCz0YMyZk4s=;
        b=j4rVzEUVJiX4+mgqwxBvzFbCVoY0+Krtc8SuVDXXOSxjpOjIWNNf4sLK/lczsM4cvD
         Bvu+JE/qSes6yOqyFa3cVFZQaHrYtHz81J88JtFKFDHmc6cOquYIzcSah5c/g7dOL/Tz
         UqiOS1Do5Ht57y2zczBsqMTZN7xIfvdlb0/RDnFIJEob8/ADvId1MMJ8mA8qRp7I4Cj4
         wQlX2/lwC0xDCIsa4z49l6/xtUyHuNxD28IndC0AuRxSkRsquQN+zJhIpGyo0cahxnG6
         dDJeXHgj1WejOC2qTwT3hh3AvnGZ372y9TQ3PLAtSzD8kdhqrb3raqByhG012umkzBpi
         vZZA==
X-Received: by 10.194.104.200 with SMTP id gg8mr56639725wjb.144.1442429911258;
        Wed, 16 Sep 2015 11:58:31 -0700 (PDT)
Received: from [172.20.0.41] ([105.210.58.210])
        by smtp.googlemail.com with ESMTPSA id jq10sm2712390wjc.40.2015.09.16.11.58.29
        for <gentoo-user@lists.gentoo.org>
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 16 Sep 2015 11:58:30 -0700 (PDT)
Subject: Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"
To: gentoo-user@lists.gentoo.org
References: <A6xu9RVOgPFubdzz5cKubN@c/ktwwL3FCcuU4n7LfDD0>
 <55F99EE4.6000902@gmail.com> <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw>
From: Alan McKinnon <alan.mckinnon@gmail.com>
Message-ID: <55F9BBC4.5030307@gmail.com>
Date: Wed, 16 Sep 2015 20:58:12 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.2.0
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
In-Reply-To: <TMgrT99JaKc4BD1DzUL4R9@w0t8SEWW0M0IGNqiIWgOw>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 240a73e5-05f8-4d1b-bb2c-e5db9653af14
X-Archives-Hash: cf0a0001ed69d8394e7e526c0816d81e

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