<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4176&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Permissions for script in cron]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4176</link>
		<description><![CDATA[The most recent posts in [SOLVED] Permissions for script in cron.]]></description>
		<lastBuildDate>Fri, 02 Apr 2021 10:42:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28713#p28713</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>That was a miyolinux system ...</p></div></blockquote></div><p>Indeed ...</p><div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>I did not install any live-config packages, so they must have come with Miyo.</p></div></blockquote></div><p>The poster was right.<br />I didn&#039;t now about <span class="bbc">refractainstaller</span> being used by Miyo.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... the live-config change should not need to be undone as it only exists in the running live system.</p></div></blockquote></div><p>Now it&#039;s fixed.</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 02 Apr 2021 10:42:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28713#p28713</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28712#p28712</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>The post at Dev1 that I linked to, which had the same /usr/sbin/anacron --&gt; /bin/true and deviations apparently was not/had not been using Refractainstaller.</p><p>So something other used live-config and generated the same problem.<br /><a href="https://dev1galaxy.org/viewtopic.php?id=1901" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=1901</a></p></div></blockquote></div><p>That was a miyolinux system, which uses refractainstaller.</p><p>The way it&#039;s designed, the live-config change should not need to be undone as it only exists in the running live system. If you mount the filesystem inside the live-iso to look at it when it&#039;s not running, you would find that the diverted file does not exist. It gets created by live-config when the system boots.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 02 Apr 2021 09:44:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28712#p28712</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28704#p28704</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>uh-oh...<br />I haven&#039;t been paying close attention to this thread.</p></div></blockquote></div><p>Tsk, tsk ...&#160; 8^D!!!</p><p>Can&#039;t do <em>everyhting</em>.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>live-config messes with anacron via the live-config script ...</p></div></blockquote></div><p>So it seems.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... useful in a live-CD where everything is read-only.<br />... only activates when you boot into a live system, not an installed system.</p></div></blockquote></div><p>Yes.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Refractainstaller copies the RUNNING live system to hard drive.</p></div></blockquote></div><p>The post at Dev1 that I linked to, which had the same <span class="bbc">/usr/sbin/anacron --&gt; /bin/true</span> and deviations apparently was not/had not been using Refractainstaller.</p><p>So something <span class="bbc">other</span> used <span class="bbc">live-config</span> and generated the same problem.<br /><a href="https://dev1galaxy.org/viewtopic.php?id=1901" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=1901</a></p><p>ie: this would not be specific to the <em>refractainstaller</em> but to how <span class="bbc">live-config</span> is used by any application. (?)&#160; </p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>You just uncovered a 10-year-old bug ...</p></div></blockquote></div><p>No. </p><p>It was ralph.ronnquist who saw it and pointed it out to me while helping me sort out the problem I was having with <span class="bbc">anacron</span>. <br /><a href="https://dev1galaxy.org/viewtopic.php?pid=28663#p28663" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=28663#p28663</a><br />I just observed and tried to pay attention.</p><p>A question just occurred to me: in 10 years, no one else using <span class="bbc">refractainstaller</span> had a problem/issue with <span class="bbc">anacron</span>?<br />Maybe there&#039;s something that&#039;s not working right.</p><p>ie:<br />I realised what was going on when I saw that my <span class="bbc">fstrim</span> script was not logging.<br />If not for that, I would have never known about what was going on with <span class="bbc">anacron</span>.<br />And I don&#039;t recall any system notifications warning me of <span class="bbc">anacron</span> failures.</p><p>Not good, no?</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>The installer needs to undo this during the installation.</p></div></blockquote></div><p>Sure. </p><p>But it is <span class="bbc">live-config</span> that is making a signifficant change.<br />No clean-up after use?<br />A notification of some sort?</p><p>eg:</p><div class="quotebox"><blockquote><div><p>Don&#039;t forget to clean up <span class="bbc">/usr/sbin/anacron --&gt; /bin/true</span> afterwards.</p></div></blockquote></div><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I see this in syslog for the first time after reboot.<br />... it&#039;s working now.</p><div class="codebox"><pre><code>Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.daily&#039; in 5 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly&#039; in 10 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly&#039; in 15 min.</code></pre></div></div></blockquote></div><p>Yes, it&#039;s working.</p><p>Thanks a lot for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 19:54:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28704#p28704</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28693#p28693</link>
			<description><![CDATA[<p>uh-oh...</p><p>I haven&#039;t been paying close attention to this thread.</p><p>live-config messes with anacron via the live-config script, /lib/live/config/1110-anacron which uses dpkg-divert to disable anacron. This is useful in a live-CD where everything is read-only.<br />This only activates when you boot into a live system, not an installed system.</p><p>Refractainstaller copies the RUNNING live system to hard drive.</p><p>You just uncovered a 10-year-old bug that I didn&#039;t know about. The installer needs to undo this during the installation. </p><p>I suspect that the right way to undo it is to use dpkg-divert.</p><div class="codebox"><pre><code># ls -l /usr/sbin/anacron*
lrwxrwxrwx 1 root root     9 Apr  2  2018 /usr/sbin/anacron -&gt; /bin/true
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron.orig.anacron

# dpkg-divert --remove /usr/sbin/anacron
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
Removing &#039;diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config&#039;</code></pre></div><p>And then to verify that it really did what it was supposed to do (but did not):</p><div class="codebox"><pre><code># ls -l /usr/sbin/anacron*
lrwxrwxrwx 1 root root     9 Apr  2  2018 /usr/sbin/anacron -&gt; /bin/true
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron.orig.anacron</code></pre></div><p>Yet dpkg-divert thinks it did the right thing:</p><div class="codebox"><pre><code># dpkg-divert --remove /usr/sbin/anacron
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
No diversion &#039;any diversion of /usr/sbin/anacron&#039;, none removed.</code></pre></div><p>Computer, do as I say! </p><div class="codebox"><pre><code># mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
# ls -l /usr/sbin/anacron*
-rwxr-xr-x 1 root root 38928 Feb  6 14:18 /usr/sbin/anacron
root@nomad:/home/phred# </code></pre></div><p>I&#039;ll reboot and see what happens.</p><p>Update: I see this in syslog for the first time after reboot. I think it&#039;s working now.</p><div class="codebox"><pre><code>Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.daily&#039; in 5 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly&#039; in 10 min.
Apr  1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly&#039; in 15 min.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 01 Apr 2021 15:48:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28693#p28693</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28690#p28690</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>One confirmation would be that your fstrim logging shows up.<br />... manual forced test would be like before, i.e. if live-config is uninstalled, then ...</p><div class="codebox"><pre><code>sudo /usr/sbin/anacron -s -d -n -f</code></pre></div><p>... should be telling about running the <span class="bbc">cron.{daily,weekly,monthly}</span> jobs.</p></div></blockquote></div><p>Right.</p><p>I&#039;ll do all that and report back, hopefully marking this long thread as [Solved].</p><p>----<br />Edit:<br />Done.<br />No more <span class="bbc">/usr/sbin/anacron</span> --&gt; <span class="bbc">/bin/true</span></p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /usr/sbin/anacron.orig.anacron
-rwxr-xr-x 1 root root 34832 May 19  2019 /usr/sbin/anacron.orig.anacron
groucho@devuan:~$</code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$
dpkg -S anacron.orig.anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /usr/sbin/anacron
lrwxrwxrwx 1 root root 20 Apr  1 11:06 /usr/sbin/anacron -&gt; anacron.orig.anacron
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ dpkg -S /usr/sbin/anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
anacron: /usr/sbin/anacron
groucho@devuan:~$ </code></pre></div><p>I have purged it but I see that the diversion by <span class="bbc">live-config</span> is still there.<br />How to go back to the &#039;original&#039; pre-<span class="bbc">live-config</span> configuration?</p><p>It seems to be working.&#160; 8^D!</p><div class="codebox"><pre><code>groucho@devuan:~$ 
groucho@devuan:~$ sudo /usr/sbin/anacron -s -d -n -f
[sudo] password for groucho: 
Anacron 2.3 started on 2021-04-01
Job `cron.daily&#039; locked by another anacron - skipping
Job `cron.weekly&#039; locked by another anacron - skipping
Job `cron.monthly&#039; locked by another anacron - skipping
Normal exit (0 jobs run)
groucho@devuan:~$ 
groucho@devuan:~$ </code></pre></div><p>----</p><p>Once done, who/where would I have to report this problem to?</p><p>Does not seem to originate in<span class="bbc">refractainstaller-base</span>, more like in the required <span class="bbc">live-config</span>. <br />Or is it related to the bug report I linked to?</p><p>Don&#039;t think is would be a good thing just to leave it be. (?)</p><p>Thank you very much for the time and effort you put into solving this problem for me.<br />Really appreciate it.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 13:56:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28690#p28690</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28688#p28688</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Once done, how should I test that everything is working properly?</p></div></blockquote></div><p>One confirmation would be that your fstrim logging shows up.</p><p>A manual forced test would be like before, i.e. if live-config is uninstalled, then</p><div class="codebox"><pre><code>sudo /usr/sbin/anacron -s -d -n -f</code></pre></div><p> should be telling about running the <span class="bbc">cron.{daily,weekly,monthly}</span> jobs.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 01 Apr 2021 13:32:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28688#p28688</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28687#p28687</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Good.<br />So when the start script runs <span class="bbc">/usr/sbin/anacron</span> it actuallly runs <span class="bbc">/bin/true</span> which is doing bugger all...</p></div></blockquote></div><p>So ...<br /><em>That&#039;s</em> where things get screwed up?</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Possibly @fsmithred (who&#039;s doing <span class="bbc">refracta-base</span>) knows something ...<br />.. in any case it&#039;s wrong for your purpose.</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... two options:<br />... change the link by:</p><div class="codebox"><pre><code>sudo ln -sTf anacron.orig.anacron /usr/sbin/anacron</code></pre></div><p>... will undo the redirect, but this then runs the risk of being undone ...<br />... if the <span class="bbc">live-config</span> package is updated.</p></div></blockquote></div><p>I could eventually pin it ...</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... change <span class="bbc">/etc/init.d/anacron</span> to use <span class="bbc">/usr/sbin/anacron.orig.anacron</span> as binary;</p><p>... change <span class="bbc">start-stop-daemon --start</span> command line to be</p><div class="codebox"><pre><code>start-stop-daemon --start --exec /usr/sbin/anacron.orig.anacron -- $ANACRON_ARGS</code></pre></div><p>... more sticky fix than changing the link ...<br />... probably breaks if the <span class="bbc">live-config</span> package is uninstalled.</p></div></blockquote></div><p>Hmm ...<br />I think I can uninstall <span class="bbc">refracta-base</span> as I have only ever used it from my ascii/Beowulf VM.&#160; &#160; <br />That would take care of live-config and the redirection for good.</p><p>Unless live-config comes back with something else.</p><p>I think I&#039;ll do that and then use the first option you have advised.</p><p>Think that would do well as a long term solution?<br />Once done, how should I test that everything is working properly?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 13:23:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28687#p28687</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28685#p28685</link>
			<description><![CDATA[<p>Good. So when the start script runs <span class="bbc">/usr/sbin/anacron</span> it actuallly runs <span class="bbc">/bin/true</span> which is doing bugger all...</p><p>Possibly @fsmithred (who&#039;s doing <span class="bbc">refracta-base</span>) knows something about that redirect but in any case it&#039;s wrong for your purpose.</p><p>The fix has two options:</p><p>The first option would be to change the link by:</p><div class="codebox"><pre><code>sudo ln -sTf anacron.orig.anacron /usr/sbin/anacron</code></pre></div><p> That will undo the redirect, but this then runs the risk of being undone, and the redirect comming back, if the <span class="bbc">live-config</span> package is updated.</p><p>The second option would be to change <span class="bbc">/etc/init.d/anacron</span> to use <span class="bbc">/usr/sbin/anacron.orig.anacron</span> as binary; i.e., change <span class="bbc">start-stop-daemon --start</span> command line to be</p><div class="codebox"><pre><code>start-stop-daemon --start --exec /usr/sbin/anacron.orig.anacron -- $ANACRON_ARGS</code></pre></div><p>The second option is probably a more sticky fix than changing the link, although it probably breaks if the <span class="bbc">live-config</span> package is uninstalled.</p><p>EDIT: btw you might want to &quot;verify&quot; that <span class="bbc">anacron.orig.anacron</span> is indeed the program by checking</p><div class="codebox"><pre><code>$ md5sum /usr/sbin/anacron.orig.anacron
a16e182008f9105825af2580ab9e5ced  /usr/sbin/anacron.orig.anacron</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 01 Apr 2021 13:01:12 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28685#p28685</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28681#p28681</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>All this time I searching ...<br />How is it that things could get this way?</p></div></blockquote></div><p>Poking around the system I found this file: <span class="bbc">/usr/sbin/anacron.orig.anacron</span>.<br /><em>Original</em> <span class="bbc">anacron</span>?</p><p>Is there <em>any</em> other?&#160; 8^D</p><p>For <span class="bbc">/usr/sbin/anacron.orig.anacron</span></p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /usr/sbin/anacron.orig.anacron
-rwxr-xr-x 1 root root 34832 May 19  2019 /usr/sbin/anacron.orig.anacron
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ dpkg -S anacron.orig.anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
groucho@devuan:~$ </code></pre></div><p>For <span class="bbc">/usr/sbin/anacron</span></p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /usr/sbin/anacron
lrwxrwxrwx 1 root root 9 Dec  8  2017 /usr/sbin/anacron -&gt; /bin/true
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ dpkg -S /usr/sbin/anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
anacron: /usr/sbin/anacron
groucho@devuan:~$ </code></pre></div><p>Then I came across this post:<br /><a href="https://dev1galaxy.org/viewtopic.php?id=1901" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=1901</a></p><p>In that case (non-working anacron in <span class="bbc">ascii</span>), the diversions by live-config from: <span class="bbc">/usr/sbin/anacron</span> and to: <span class="bbc">/usr/sbin/anacron.orig.anacron</span> were also present.<br />And <span class="bbc">/usr/bin/anacron</span> was also a link to <span class="bbc">/bin/true</span>.</p><p>I have live-config because of <span class="bbc">refractasnapshot-base</span> so that is needed.</p><div class="codebox"><pre><code>groucho@devuan:~$ aptitude why live-config
i   refractasnapshot-base Depends live-config (&gt;= 2.0.15)
groucho@devuan:~$ </code></pre></div><p>From what I understand, it seems that either the <span class="bbc">/usr/bin/anacron</span> link to <span class="bbc">/bin/true</span> or the diversions could be related to a non-working anacron.</p><p>I also found this from 2013: <a href="https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/1254614" rel="nofollow">https://bugs.launchpad.net/ubuntu/+sour … ug/1254614</a><br />Confirmed/unassigned.</p><p>What do you think?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 12:10:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28681#p28681</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28679#p28679</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>The warning can be ignored.</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... expected to see the output &quot;Anacron 2.3 started on 2021-04-01&quot; after the &quot;transferring control&quot; ...</p></div></blockquote></div><p>So like you said, it is not starting.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... which architecture do you have?</p></div></blockquote></div><div class="quotebox"><blockquote><div><p>groucho@devuan:~$ uname -a<br />Linux devuan 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux<br />groucho@devuan:~$</p></div></blockquote></div><div class="codebox"><pre><code>groucho@devuan:~$ file /usr/sbin/anacron
/usr/sbin/anacron: symbolic link to /bin/true
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ file $(readlink -f /lib64/ld-linux-x86-64.so.2)
/lib/x86_64-linux-gnu/ld-2.28.so: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=f25dfd7b95be4ba386fd71080accae8c0732b711, stripped
groucho@devuan:~$ </code></pre></div><p>This is all rather puzzling.<br />All this time I searchig, I have seen quite a few cron/crotab issues posted.<br />But this one takes the prize.</p><p>How is it that things could get this way?</p><p>BTW: yesterday there was a huge file update which included the kernel. Apparently no issues.</p><p>Thanks so much for your help.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 09:40:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28679#p28679</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28674#p28674</link>
			<description><![CDATA[<p>The warning can be ignored. But I expected to see the output &quot;Anacron 2.3 started on 2021-04-01&quot; after the &quot;transferring control&quot;, and not seeing that is peculiar... which architecture do you have?</p><div class="codebox"><pre><code>uname -a</code></pre></div><div class="codebox"><pre><code>file /usr/sbin/anacron</code></pre></div><div class="codebox"><pre><code>file $(readlink -f /lib64/ld-linux-x86-64.so.2)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 01 Apr 2021 02:21:32 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28674#p28674</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28673#p28673</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Right; that&#039;s the right one...</p></div></blockquote></div><p>Good thing.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... verify that the problem is with anacron, by seeing ...</p><div class="codebox"><pre><code>sudo /usr/sbin/anacron -s -d -n -f[</code></pre></div><p>... report nothing.</p></div></blockquote></div><div class="codebox"><pre><code>groucho@devuan:~$ sudo /usr/sbin/anacron -s -d -n -f
[sudo] password for groucho: 
groucho@devuan:~$ </code></pre></div><p>Reports nothing, so it would seem to be <span class="bbc">anacron</span>.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... try the following: </p><div class="codebox"><pre><code>sudo env LD_DEBUG=libs,files /usr/sbin/anacron -s -d -n -f &gt;&amp; /tmp/strace.log</code></pre></div><p> ... and paste somewhere</p></div></blockquote></div><p>It&#039;s very short:</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /tmp/strace.log
     32311:	
     32311:	WARNING: Unsupported flag value(s) of 0x8000000 in DT_FLAGS_1.
     32311:	
     32311:	file=libc.so.6 [0];  needed by /usr/sbin/anacron [0]
     32311:	find library=libc.so.6 [0]; searching
     32311:	 search cache=/etc/ld.so.cache
     32311:	  trying file=/lib/x86_64-linux-gnu/libc.so.6
     32311:	
     32311:	file=libc.so.6 [0];  generating link map
     32311:	  dynamic: 0x00007feb40805b80  base: 0x00007feb4064b000   size: 0x00000000001c0800
     32311:	    entry: 0x00007feb4066f1b0  phdr: 0x00007feb4064b040  phnum:                 12
     32311:	
     32311:	
     32311:	calling init: /lib/x86_64-linux-gnu/libc.so.6
     32311:	
     32311:	
     32311:	initialize program: /usr/sbin/anacron
     32311:	
     32311:	
     32311:	transferring control: /usr/sbin/anacron
     32311:	
     32311:	
     32311:	calling fini: /usr/sbin/anacron [0]
     32311:	
groucho@devuan:~$ </code></pre></div><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... debug listing of the loading of dynamic libraries including how they are looked up in the file system.</p></div></blockquote></div><p>Looks for just one library and cache tells it where to find it.<br />ie: <span class="bbc">/lib/x86_64-linux-gnu/libc.so.6</span> </p><div class="codebox"><pre><code>groucho@devuan:~$ locate libc.so.6
/lib/i386-linux-gnu/libc.so.6
/lib/x86_64-linux-gnu/libc.so.6
groucho@devuan:~$ </code></pre></div><p>Must be the warning?</p><p>Thanks.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 01:46:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28673#p28673</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28672#p28672</link>
			<description><![CDATA[<p>Right; that&#039;s the right one... next check would be first to verify that the problem is with anacron, by seeing</p><div class="codebox"><pre><code>sudo /usr/sbin/anacron -s -d -n -f</code></pre></div><p> report nothing.</p><p>Then try the following: </p><div class="codebox"><pre><code>sudo env LD_DEBUG=libs,files /usr/sbin/anacron -s -d -n -f &gt;&amp; /tmp/strace.log</code></pre></div><p> ... and paste somewhere</p><p>That should be a debug listing of the loading of dynamic libraries including how they are looked up in the file system.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 01 Apr 2021 01:17:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28672#p28672</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28671#p28671</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... your <span class="bbc">/usr/sbin/anacron</span> dies before it starts ...</p></div></blockquote></div><p>I&#039;ll take your word for that.<br />I can&#039;t make heads or tails of it.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... at the point where it should allocate memory.</p></div></blockquote></div><p>With 8Gb at hand, I never see the swap file get used.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... premature exiting, and that suggests borked linking rather than out of memory; i.e., a technological mismatch with the dynamic libraries ...</p></div></blockquote></div><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Which libc6 do you have?</p><div class="codebox"><pre><code>ls -l /lib*/ld-linux-*</code></pre></div></div></blockquote></div><p>Here it is:</p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /lib*/ld-linux-*
lrwxrwxrwx 1 root root 32 May  1  2019 /lib64/ld-linux-x86-64.so.2 -&gt; /lib/x86_64-linux-gnu/ld-2.28.so
groucho@devuan:~$ </code></pre></div><p>Thanks.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 01 Apr 2021 01:04:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28671#p28671</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Permissions for script in cron]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=28670#p28670</link>
			<description><![CDATA[<p>Hmm. obviously your <span class="bbc">/usr/sbin/anacron</span> dies before it starts, or while it about to start, seemingly at the point where it should allocate memory.</p><p>However the &quot;brk(NULL)&quot; which should follow &quot;munmap()&quot; doesn&#039;t show up and instead the &quot;exit_group()&quot; showing premature exiting, and that suggests borked linking rather than out of memory; i.e., a technological mismatch with the dynamic libraries rather then a functional error.</p><p>Which libc6 do you have?</p><div class="codebox"><pre><code>ls -l /lib*/ld-linux-*</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 01 Apr 2021 00:52:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=28670#p28670</guid>
		</item>
	</channel>
</rss>
