<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4230&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4230</link>
		<description><![CDATA[The most recent posts in [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error.]]></description>
		<lastBuildDate>Thu, 01 Apr 2021 19:06:29 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28703#p28703</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Why not? <br />What happens when you comment-out the wtmp &amp; btmp stanzas?</p></div></blockquote></div><p>Don&#039;t know.<br />I did not edit anything, I just renamed the original as <span class="bbc">logrotate.old</span> and copied the new one in.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>What does your <span class="bbc">logrotate.conf</span> look like?</p></div></blockquote></div><p><a href="https://salsa.debian.org/debian/logrotate/-/blob/master/examples/logrotate.conf" rel="nofollow">https://salsa.debian.org/debian/logrota … otate.conf</a></p></div></blockquote></div><p>My Devuan Beowulf has logrotate 3.14.0:</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo logrotate --version
logrotate 3.14.0

    Default mail command:       /usr/bin/mail
    Default compress command:   /bin/gzip
    Default uncompress command: /bin/gunzip
    Default compress extension: .gz
    Default state file path:    /var/lib/logrotate/status
    ACL support:                yes
    SELinux support:            yes
groucho@devuan:~$ </code></pre></div><p>But for some strange reason, the <span class="bbc">logrotate.conf</span> file I have is the <span class="bbc">logrotate.conf</span> file packaged with <span class="bbc">logrotate 3.13.0</span>, without this line:</p><div class="codebox"><pre><code>--- snip ---
# use date as a suffix of the rotated file    &lt;---- | x |
dateext
--- snip ---</code></pre></div><p>The rest is the same.</p><p>See: <a href="https://github.com/logrotate/logrotate/releases/download/3.13.0/logrotate-3.13.0.tar.gz" rel="nofollow">https://github.com/logrotate/logrotate/ … 3.0.tar.gz</a></p><p>I&#039;ll get the .<span class="bbc">*conf</span> file from <span class="bbc">logrotate 3.14.0</span> and use that.<br />Will report back once done.</p><p><span class="bbu">Edit:</span><br />Works, no errors.<br />But <em>my</em> <span class="bbc">logrotate.conf</span> file was the wrong version. </p><p>Thanks for your input.<br />&#160; <br />Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 19:06:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28703#p28703</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28699#p28699</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>At least in my system it is not a drop-in replacement.</p></div></blockquote></div><p>Why not? What happens when you comment-out the wtmp &amp; btmp stanzas?</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>What does your <span class="bbc">logrotate.conf</span> look like?</p></div></blockquote></div><p><a href="https://salsa.debian.org/debian/logrotate/-/blob/master/examples/logrotate.conf" rel="nofollow">https://salsa.debian.org/debian/logrota … otate.conf</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 01 Apr 2021 17:11:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28699#p28699</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28698#p28698</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Have you actually tried ...</p></div></blockquote></div><p>Yes.<br />At least in my system it is not a drop-in replacement.</p><p>There is at least one thing I noticed.<br />And the fixed <span class="bbc">logrotate.conf</span> has this:</p><div class="codebox"><pre><code># use the syslog group by default, since this is the owning group
# of /var/log/syslog.
su root syslog</code></pre></div><p>In Devuan Beowulf there is not syslog group (at least I can&#039;t find it).</p><div class="codebox"><pre><code>groucho@devuan:~$ grep syslog /etc/group
groucho@devuan:~$ </code></pre></div><p>Also, <span class="bbc">syslog</span> is owned by <span class="bbc">root</span> but belongs to the <span class="bbc">adm</span> group:</p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /var/log/syslog
-rw-r----- 1 root adm 4816 Apr  1 13:30 /var/log/syslog
groucho@devuan:~$ </code></pre></div><p>That&#039;s why I think someone esle with proper skills has to have a look.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... don&#039;t have any wtmp lines in /etc/logrotate.conf in my bullseye ...</p></div></blockquote></div><p>My Devuan Beowulf has it:</p><div class="codebox"><pre class="vscroll"><code>roucho@devuan:~$ cat /etc/logrotate.conf
# see &quot;man logrotate&quot; for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we&#039;ll rotate them here
/var/log/wtmp {   &lt;----- | x |
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {   &lt;----- | x |
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here
groucho@devuan:~$ </code></pre></div><p>So apparently that is why we get the mail I posted.</p><p>What does your <span class="bbc">logrotate.conf</span> look like?</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 16:54:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28698#p28698</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28696#p28696</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>The problem is that the fix posted is an <span class="bbc">Ubuntu</span> fix.<br />ie: probably will not run properly in Devuan without adjusting it</p></div></blockquote></div><p>Have you actually tried applying the fix? It looks fairly generic.</p><p>(FWIW I don&#039;t have any wtmp lines in /etc/logrotate.conf in my bullseye system.)</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 01 Apr 2021 16:16:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28696#p28696</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28692#p28692</link>
			<description><![CDATA[<p>Hello:</p><p>There is a bug in the <span class="bbc">logrotate.conf</span> configuration.<br />See here: <a href="https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1915759" rel="nofollow">https://bugs.launchpad.net/ubuntu/+sour … ug/1915759</a></p><p>ralph.ronnquist pointed it out to me here: <a href="https://dev1galaxy.org/viewtopic.php?pid=28663#p28663" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=28663#p28663</a> while helping me with an <span class="bbc">anacron</span> problem caused (probably) live-config.<br />The error shows up when <span class="bbc">logrotate</span> is run in <span class="bbc">/etc/cron.<em>whatever</em></span> and then you get notifocaton from the system:</p><div class="codebox"><pre><code>From root@devuan Thu Apr 01 11:31:07 2021
Envelope-to: root@devuan
Delivery-date: Thu, 01 Apr 2021 11:31:07 -0300
From: Anacron &lt;root@devuan&gt;
To: root@devuan
Subject: Anacron job &#039;cron.daily&#039; on devuan
Content-Type: text/plain; charset=US-ASCII
Date: Thu, 01 Apr 2021 11:31:07 -0300

/etc/cron.daily/logrotate:
error: /etc/logrotate.conf:18 duplicate log entry for /var/log/wtmp
error: /etc/logrotate.conf:25 duplicate log entry for /var/log/btmp
run-parts: /etc/cron.daily/logrotate exited with return code 1</code></pre></div><p>The problem is that the fix posted is an <span class="bbc">Ubuntu</span> fix.<br />ie: probably will not run properly in Devuan without adjusting it</p><p>Anyone know how to edit it so it will run?</p><p>Thanks in advance.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 15:43:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28692#p28692</guid>
		</item>
	</channel>
</rss>
