Re: Posible bug

Craig Barratt via BackupPC-devel <[email protected]> Sun, 27 Aug 2017 14:24:54 -0700
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <CADSzEFg1cHbA8c4T0BgBO37DJTsLd=uX73AmBQ1NsBL4NPnb6w@mail.gmail.com>
--===============4395320469725136113==
Content-Type: multipart/alternative; boundary="f403045fc1485fe46b0557c2d0cd"

--f403045fc1485fe46b0557c2d0cd
Content-Type: text/plain; charset="UTF-8"

Marc,

Ok; if you wait until the next wakeup, the old status should be removed.
Similarly if you restart BackupPC.

Craig

On Sun, Aug 27, 2017 at 12:26 PM, Marc Gilliatt <[email protected]>
wrote:

> Hi,
>
> Thanks for getting back to me.
>
> I changed the hosts name by changing  the /etc/backuppc/hosts file.
>
> And then changing it in the backuppc folder via mv old_host new_host.
>
> Looking forward to your response.
>
> Regards,
>
> Marc
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* Craig Barratt via BackupPC-devel <backuppc-devel@lists.
> sourceforge.net>
> *Sent:* Sunday, August 27, 2017 8:14:32 PM
> *To:* Developers discussion
> *Cc:* Craig Barratt
> *Subject:* Re: [BackupPC-devel] Posible bug
>
> Eduardo,
>
> What did you do when you said "rename the host"?  Did you manually edit
> the hosts file, and mv /TOPDIR/pc/HOST_OLD to  /TOPDIR/pc/HOST_NEW?
>
> BackupPC should remove the old status when it next reads the hosts file.
> It does that on startup, on each wakeup if the mtime has changed, when it
> receives a HUP signal, or when it receives a "server reload" command.  So
> it's possible you noticed the stuck error before any of those events
> happened.
>
> Craig
>
> On Sat, Aug 19, 2017 at 8:35 PM, Eduardo Kaftanski <[email protected]>
> wrote:
>
>>
>> Hi,
>>
>>  I think I found a small bug...
>>
>>  How to reproduce:
>>
>> -add a host
>> -try to make a backup and fail for soem reason (in my case was ssh
>> privileges)
>> -rename the host
>>
>> The error stays and wont go away until you create a host with the
>> original name and then delete the host. I received warning mails until I
>> did this.
>>
>> I am running 3.3, I don't know if it was fixed in 4.x as I had not needed
>> to upgrade yet.
>>
>> thanks.
>>
>>
>>
>> --
>> Eduardo Kaftanski
>> [email protected]
>> [email protected]
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> BackupPC-devel mailing list
>> [email protected]
>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
>> Wiki:    http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>>
>

--f403045fc1485fe46b0557c2d0cd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Marc,<div><br></div><div>Ok; if you wait until the next wa=
keup, the old status should be removed.=C2=A0 Similarly if you restart Back=
upPC.</div><div><br>Craig</div></div><div class=3D"gmail_extra"><br><div cl=
ass=3D"gmail_quote">On Sun, Aug 27, 2017 at 12:26 PM, Marc Gilliatt <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">m=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">




<div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Hi,<br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Thanks for getting back to me.<br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
I changed the hosts name by changing=C2=A0 the /etc/backuppc/hosts file.<br=
>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
And then changing it in the backuppc folder via mv old_host new_host.<br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Looking forward to your response.<br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Regards,<br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Marc <br>
<br>
</div>
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
<div dir=3D"auto" style=3D"direction:ltr;margin:0;padding:0;font-family:san=
s-serif;font-size:11pt;color:black;background-color:white">
Get <a href=3D"https://aka.ms/ghei36" target=3D"_blank">Outlook for Android=
</a></div>
<br>
</div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"m_8600768324184475081divRplyFwdMsg" dir=3D"ltr"><font face=3D"Ca=
libri, sans-serif" color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> =
Craig Barratt via BackupPC-devel &lt;<a href=3D"mailto:backuppc-devel@lists=
.sourceforge.net" target=3D"_blank">backuppc-devel@lists.<wbr>sourceforge.n=
et</a>&gt;<br>
<b>Sent:</b> Sunday, August 27, 2017 8:14:32 PM<br>
<b>To:</b> Developers discussion<br>
<b>Cc:</b> Craig Barratt<br>
<b>Subject:</b> Re: [BackupPC-devel] Posible bug</font>
<div>=C2=A0</div>
</div><div><div class=3D"h5">
<div>
<div dir=3D"ltr">Eduardo,<br>
<div><br>
</div>
<div>What did you do when you said &quot;rename the host&quot;?=C2=A0 Did y=
ou manually edit the hosts file, and mv /TOPDIR/pc/HOST_OLD to=C2=A0=C2=A0/=
TOPDIR/pc/HOST_NEW?</div>
<div><br>
</div>
<div>BackupPC should remove the old status when it next reads the hosts fil=
e.=C2=A0 It does that on startup, on each wakeup if the mtime has changed, =
when it receives a HUP signal, or when it receives a &quot;server reload&qu=
ot; command.=C2=A0 So it&#39;s possible you noticed the
 stuck error before any of those events happened.<br>
<br>
Craig</div>
</div>
<div class=3D"gmail_extra"><br>
<div class=3D"gmail_quote">On Sat, Aug 19, 2017 at 8:35 PM, Eduardo Kaftans=
ki <span dir=3D"ltr">
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
m</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div dir=3D"ltr">
<div><br>
</div>
Hi,
<div><br>
</div>
<div>=C2=A0I think I found a small bug...</div>
<div><br>
</div>
<div>=C2=A0How to reproduce:</div>
<div><br>
</div>
<div>-add a host</div>
<div>-try to make a backup and fail for soem reason (in my case was ssh pri=
vileges)</div>
<div>-rename the host</div>
<div><br>
</div>
<div>The error stays and wont go away until you create a host with the orig=
inal name and then delete the host. I received warning mails until I did th=
is.</div>
<div><br>
</div>
<div>I am running 3.3, I don&#39;t know if it was fixed in 4.x as I had not=
 needed to upgrade yet.</div>
<div><br>
</div>
<div>thanks.</div>
<span class=3D"m_8600768324184475081HOEnZb"><font color=3D"#888888">
<div><br>
</div>
<div><br clear=3D"all">
<div><br>
</div>
-- <br>
<div class=3D"m_8600768324184475081m_4972100246746409280gmail_signature">Ed=
uardo Kaftanski<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a><br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
><br>
</div>
</div>
</font></span></div>
<br>
------------------------------<wbr>------------------------------<wbr>-----=
-------------<br>
Check out the vibrant tech community on one of the world&#39;s most<br>
engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel=
=3D"noreferrer" target=3D"_blank">
http://sdm.link/slashdot</a><br>
______________________________<wbr>_________________<br>
BackupPC-devel mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">B=
[email protected]<wbr>ge.net</a><br>
List:=C2=A0 =C2=A0 <a href=3D"https://lists.sourceforge.net/lists/listinfo/=
backuppc-devel" rel=3D"noreferrer" target=3D"_blank">
https://lists.sourceforge.net/<wbr>lists/listinfo/backuppc-devel</a><br>
Wiki:=C2=A0 =C2=A0 <a href=3D"http://backuppc.wiki.sourceforge.net" rel=3D"=
noreferrer" target=3D"_blank">
http://backuppc.wiki.sourcefor<wbr>ge.net</a><br>
Project: <a href=3D"http://backuppc.sourceforge.net/" rel=3D"noreferrer" ta=
rget=3D"_blank">
http://backuppc.sourceforge.ne<wbr>t/</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>

--f403045fc1485fe46b0557c2d0cd--


--===============4395320469725136113==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============4395320469725136113==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

--===============4395320469725136113==--