<?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=4382&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] The perks of knowing]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4382</link>
		<description><![CDATA[The most recent posts in [SOLVED] The perks of knowing.]]></description>
		<lastBuildDate>Fri, 25 Jun 2021 00:23:00 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30407#p30407</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p>Thanks.</p></div></blockquote></div><p>You&#039;re welcome.</p><div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p>You had to dig deep ...</p></div></blockquote></div><p>It&#039;s <em>nothing</em> compared to what a great many people do every day for Linux.<br />Although I must admit that sometimes frustration does get the best of me and out! comes my otherwise hidden curmudgeonly personality. 8^D !!!</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 25 Jun 2021 00:23:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30407#p30407</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30406#p30406</link>
			<description><![CDATA[<p>Thanks.&#160; You had to dig deep for that one . . .</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Thu, 24 Jun 2021 23:35:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30406#p30406</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30405#p30405</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p>Please report the bug upstream.</p></div></blockquote></div><p>Done.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 24 Jun 2021 22:43:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30405#p30405</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30404#p30404</link>
			<description><![CDATA[<p>Please report the bug upstream.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Thu, 24 Jun 2021 21:49:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30404#p30404</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30403#p30403</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>We&#039;ll see if I get some feedback from the GitHub site ...</p></div></blockquote></div><p><span class="bbu">UPDATE:</span></p><p>Looking around in the GitHub site I found a <a href="https://github.com/bit-team/backintime/issues/820" rel="nofollow">report</a> from 10/2017, ie: four years ago.<br />It is (for all intent and purposes) identical to what I reported recently:</p><div class="codebox"><pre><code>Unhandled exception in thread started by &lt;function __log_keyring_warning at 0x7fd39670a400&gt;
Traceback (most recent call last):
File &quot;/usr/share/backintime/common/tools.py&quot;, line 1463, in __log_keyring_warning
TypeError: &#039;NoneType&#039; object is not callable</code></pre></div><p>The OP cites the same thing: happens very rarely. In my case, I had never seen it before.<br />He produced the output from <span class="bbc">--debug</span> and that was it.</p><div class="codebox"><pre><code>Unhandled exception in thread started by &lt;function __log_keyring_warning at 0x7fd698dbf400&gt;
Traceback (most recent call last):
File &quot;/usr/share/backintime/common/tools.py&quot;, line 1463, in __log_keyring_warning
File &quot;&quot;, line 2237, in _find_and_load
File &quot;&quot;, line 2222, in _find_and_load_unlocked
File &quot;&quot;, line 2150, in _find_spec
TypeError: &#039;NoneType&#039; object is not callable</code></pre></div><p>This was happening running <span class="bbc">backintime</span> 1.1.20 under Linux 4.4.87-18.29-default x86_64. (Open Suse).<br />Here it is happening running <span class="bbc">backintime</span> 1.1.24 under Linux 5.10.0-0.bpo.3-amd64 (Devuan Beowulf) </p><p>So ...</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 24 Jun 2021 20:57:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30403#p30403</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30391#p30391</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>Sorry ...</p></div></blockquote></div><p>For? 8^) </p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... talking about crontab ...<br />... talking about the crontab file that sets up the environment.<br />... if you execute the command from the crontab file in a standard shell ...</p></div></blockquote></div><p>And that&#039;s what I understood.<br />ie: one thing is executing the command listed in <span class="bbc">crontab</span> from a shell and another is when <span class="bbc">cron</span> actually executes that command.</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... anything that is needed by a command has to be setup by the command itself.</p></div></blockquote></div><p>Got it.<br />That command is set up by the application and I have not touched it.<br />Hence the warning:</p><div class="codebox"><pre><code>#Back In Time system entry, this will be edited by the gui:</code></pre></div><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... reason why a command that works in a standard shell will fail in a cron call from the crontab file.</p></div></blockquote></div><p>Yes, I&#039;ve seen that some time ago.</p><p>In any case, up to now, <span class="bbc">cron.log</span> has shown no issues with respect to the <span class="bbc">backintime</span> script.<br />We&#039;ll see if I get some feedback from the GitHub site, it dos not seem to have much activity on behalf of the maintainers.<br />But it does not seem to be dead.</p><p>Thanks so much lot for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 23 Jun 2021 09:54:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30391#p30391</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30390#p30390</link>
			<description><![CDATA[<p>Hi</p><p>Sorry my mistake.</p><p>When I am talking about crontab then I am talking about the crontab file that sets up the environment.<br />But you are right; It is still the CRON command and logentry; The crontab log entries only occures when you execute the crontab commant<br />e.g. &#039;crontab -l&#039; or &#039;crontab -e&#039;</p><p>What I mean is if you execute the command from the crontab file in a statndard shell than there are a lot of environment settings already working<br />that came from /etc/profile, /etc/bash.bashrc, .profile, .bashrc or any other envirnment files that will be called on login or console opening.</p><p>cron on the other hand has by default NO environments setup so anything that is needed by a command has to be setup by the command itself.<br />(or in the crontab file but that&#039;s another story)</p><p>This is most of the time the reason why a command that works in a standard shell will fail in a cron call from the crontab file.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Wed, 23 Jun 2021 08:01:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30390#p30390</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30386#p30386</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... fails in your crontab but is working in a standard shell ...</p></div></blockquote></div><p>That&#039;s the thing ...<br />It did not fail in <span class="bbc">crontab</span>.</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>The notification was sent by the Cron Daemon on date Mon, 21 Jun 2021 11:00:02 -0300.<br />The last backintime log entry was for a snapshot taken at Mon Jun 21 07:15:01 2021 local time and does not show any errors.</p></div></blockquote></div><p>At least I can&#039;t make out a failure in <span class="bbc">/var/log/cron.log</span>.</p><div class="codebox"><pre class="vscroll"><code>groucho@devuan:/var/log$ tail -600 cron.log
--- snip ---
Jun 21 07:04:47 devuan anacron[2132]: Anacron 2.3 started on 2021-06-21
Jun 21 07:04:47 devuan anacron[2132]: Will run job `cron.daily&#039; in 5 min.
Jun 21 07:04:47 devuan anacron[2132]: Jobs will be executed sequentially
Jun 21 07:04:47 devuan cron[2200]: (CRON) INFO (pidfile fd = 3)
Jun 21 07:04:47 devuan cron[2201]: (CRON) STARTUP (fork ok)
Jun 21 07:04:47 devuan cron[2201]: (CRON) INFO (Running @reboot jobs)
Jun 21 07:05:01 devuan CRON[3030]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 07:09:47 devuan anacron[2132]: Job `cron.daily&#039; started
Jun 21 07:09:47 devuan anacron[3660]: Updated timestamp for job `cron.daily&#039; to 2021-06-21
Jun 21 07:10:42 devuan cracklib: no dictionary update necessary.
Jun 21 07:10:44 devuan anacron[2132]: Job `cron.daily&#039; terminated
Jun 21 07:10:44 devuan anacron[2132]: Normal exit (1 job run)
Jun 21 07:15:01 devuan CRON[4019]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 07:15:01 devuan CRON[4020]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 07:17:01 devuan CRON[4142]: (root) CMD (   cd / &amp;&amp; run-parts --report /etc/cron.hourly)
Jun 21 07:25:01 devuan CRON[4479]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 07:30:01 devuan CRON[4691]: (root) CMD ([ -x /etc/init.d/anacron ] &amp;&amp; if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start &gt;/dev/null; fi)
Jun 21 07:30:01 devuan CRON[4692]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 07:30:01 devuan anacron[4716]: Anacron 2.3 started on 2021-06-21
Jun 21 07:30:01 devuan anacron[4716]: Normal exit (0 jobs run)
Jun 21 07:35:01 devuan CRON[4986]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 07:45:01 devuan CRON[5386]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 07:45:01 devuan CRON[5387]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 07:55:01 devuan CRON[5783]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 08:00:01 devuan CRON[6000]: (root) CMD (timeshift --check --scripted)
Jun 21 08:00:01 devuan CRON[6001]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 08:00:02 devuan crontab[6047]: (root) LIST (root)
                                                          #
Jun 21 08:00:02 devuan crontab[6048]: (root) LIST (root)  # here is where the notification is sent ie: 11:00:02 -0300.
                                                          #
Jun 21 08:05:01 devuan CRON[6298]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 08:15:01 devuan CRON[6663]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 08:15:01 devuan CRON[6664]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 08:17:01 devuan CRON[6758]: (root) CMD (   cd / &amp;&amp; run-parts --report /etc/cron.hourly)
Jun 21 08:25:01 devuan CRON[7052]: (root) CMD (command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1)
Jun 21 08:30:01 devuan CRON[7230]: (root) CMD ([ -x /etc/init.d/anacron ] &amp;&amp; if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start &gt;/dev/null; fi)
Jun 21 08:30:01 devuan CRON[7231]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null)
Jun 21 08:30:01 devuan anacron[7255]: Anacron 2.3 started on 2021-06-21
Jun 21 08:30:01 devuan anacron[7255]: Normal exit (0 jobs run)
--- snip ---</code></pre></div><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 22 Jun 2021 18:02:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30386#p30386</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30374#p30374</link>
			<description><![CDATA[<p>While backintime fails in your crontab but is working in a standard shell it has something to do with the environment that is used by python inside the crontab.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Tue, 22 Jun 2021 11:36:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30374#p30374</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30371#p30371</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... looks very stange and maybe one of your installed python package is corrupted.</p><p>the line<br />&#039;from time import sleep&#039;<br />is a core python function to import an external package (in this case the time utils lib)</p></div></blockquote></div><p>I see.</p><p>At first I thought that maybe the syntax could have been rendered wrong or broken by an update to <span class="bbc">python</span>?<br />ie: similar to what happened with the last exim4 update.</p><p>But then my <span class="bbc">python</span> installation is datestamped 10/2019 and this is the first time I have seen this error, so I don&#039;t think it is that.</p><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... test if the command from the crontab is working on a standard shell. The cron environment is sometimes very special.</p></div></blockquote></div><p>Right</p><div class="codebox"><pre><code>groucho@devuan:~$ /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job &gt;/dev/null
groucho@devuan:~$ 
groucho@devuan:~$ mail
No mail for groucho
groucho@devuan:~$ </code></pre></div><p>The <span class="bbc">backintime</span> application produced a backup and the log reported no errors.</p><div class="codebox"><pre><code>========== Take snapshot (profile 1): Tue Jun 22 07:30:02 2021 ==========</code></pre></div><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>... try the following:<br />start python2 on a shell and execute &#039;from time import sleep&#039;</p></div></blockquote></div><p>Here we go:</p><div class="codebox"><pre><code>groucho@devuan:~$ python2
Python 2.7.16 (default, Oct 10 2019, 22:02:15) 
[GCC 8.3.0] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; from time import sleep
&gt;&gt;&gt; exit ()
groucho@devuan:~$</code></pre></div><div class="quotebox"><cite>denk_mal wrote:</cite><blockquote><div><p>If this fails ...</p></div></blockquote></div><p>It seems that both tests were successful.</p><p>Maybe this is a <em>perfect</em> combination of <em>unknowns</em>?<br />ie: a glitch which did not disrupt anything and just produced an error message.</p><p>I will wait and see if it shows up again.<br />In the meantime I have filed an issue at the <span class="bbc">backintime</span> github page -&gt; <a href="https://github.com/bit-team/backintime/issues" rel="nofollow">https://github.com/bit-team/backintime/issues</a></p><p>Thank you very much for taking the time to write this up for me.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 22 Jun 2021 10:52:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30371#p30371</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30370#p30370</link>
			<description><![CDATA[<p>This error looks very stange and maybe one of your installed python package is corrupted.</p><p>the line<br />&#039;from time import sleep&#039;<br />is a core python function to import an external package (in this case the time utils lib)</p><p>First of all you should test if the command from the crontab is working on a standard shell. The cron environment is sometimes very special.</p><p>If this is also not working&#160; you could try the following:<br />start python2 on a shell and execute &#039;from time import sleep&#039;<br />If this fails then the problem is in the python installation.<br />But it is working then it means that the backintime package has a problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (denk_mal)]]></author>
			<pubDate>Tue, 22 Jun 2021 10:08:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30370#p30370</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] The perks of knowing]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30358#p30358</link>
			<description><![CDATA[<p>Hello:</p><p>Now that my <span class="bbc">exim4</span> is (apparently) working as expected, I can reap rewards of a sort.</p><p>I now get the news, both good and bad.</p><p>I have just received a notification related to the <span class="bbc">backintime</span> utility that I had not ever seen before:</p><div class="codebox"><pre><code>--- snip ---
Unhandled exception in thread started by &lt;function __log_keyring_warning at 0x7fdf90288488&gt;
Traceback (most recent call last):
  File &quot;/usr/share/backintime/common/tools.py&quot;, line 1458, in __log_keyring_warning
TypeError: &#039;NoneType&#039; object is not callable</code></pre></div><p>Fortunately, in this case the notification is clear and I can go check what is going on.<br />I open the <span class="bbc">tools.py</span> file to try and find the offending line which, according to <span class="bbc">jed</span> has a <em>different</em> number (1457):</p><div class="codebox"><pre><code>1456
1457 def __log_keyring_warning():
1458     from time import sleep
1459     sleep(0.1)
1460     logger.warning(&#039;import keyring failed&#039;)
1461
1462 if keyring is None and keyring_warn:
1463     #delay warning to give logger some time to import
1464     import _thread
1465     _thread.start_new_thread(__log_keyring_warning, ())
1466     # logger.warning(&#039;import keyring failed&#039;)
1467                                             # &lt;-- this is the last line in the script</code></pre></div><p>I wonder if this is happening now because of some update/upgrade?</p><p>In any case, <span class="bbc">python</span> is just a family of long fat snakes to me.<br />ie: not a clue</p><p>The notification was sent by the <span class="bbc">Cron Daemon</span> on date Mon, 21 Jun 2021 11:00:02 -0300.<br />The last <span class="bbc">backintime</span> log entry was for a snapshot taken at Mon Jun 21 07:15:01 2021 local time and does not show any errors. </p><p>The <span class="bbc">crontab</span> script is a system entry generated by the GUI and the <span class="bbc">python</span> script comes with the application&#039;s installation.<br />Installed version is <span class="bbc">Python 2.7.16 (default, Oct 10 2019, 22:02:15)</span>.</p><p>Q: any idea as to why this has started happening now?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 21 Jun 2021 16:31:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30358#p30358</guid>
		</item>
	</channel>
</rss>
