Re: Posible bug

Craig Barratt via BackupPC-devel <[email protected]> Sun, 27 Aug 2017 12:14:32 -0700
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <CADSzEFiYv00q4i=gKM_RqfKU2=3skvFEYpMXCoxSmRqYVZb5MQ@mail.gmail.com>
--===============2098745112020180543==
Content-Type: multipart/alternative; boundary="001a1143d48026f77e0557c0fe79"

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

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/
>
>

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

<div dir=3D"ltr">Eduardo,<br><div><br></div><div>What did you do when you s=
aid &quot;rename the host&quot;?=C2=A0 Did you 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 file.=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&quot; command.=C2=A0 So it&#39;s possible you noticed the stuck erro=
r 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:3=
5 PM, Eduardo Kaftanski <span dir=3D"ltr">&lt;<a href=3D"mailto:ekaftan@gma=
il.com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #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=A0Ho=
w 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 privileges)</div><di=
v>-rename the host</div><div><br></div><div>The error stays and wont go awa=
y until you create a host with the original name and then delete the host. =
I received warning mails until I did this.</div><div><br></div><div>I am ru=
nning 3.3, I don&#39;t know if it was fixed in 4.x as I had not needed to u=
pgrade yet.</div><div><br></div><div>thanks.</div><span class=3D"HOEnZb"><f=
ont color=3D"#888888"><div><br></div><div><br clear=3D"all"><div><br></div>=
-- <br><div class=3D"m_4972100246746409280gmail_signature" data-smartmail=
=3D"gmail_signature">Eduardo Kaftanski<br><a href=3D"mailto:[email protected]"=
 target=3D"_blank">[email protected]</a><br><a href=3D"mailto:[email protected]=
m" 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]">BackupPC-devel@list=
s.<wbr>sourceforge.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.sourcefo=
rge.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.<wbr>sourceforge.net</a>=
<br>
Project: <a href=3D"http://backuppc.sourceforge.net/" rel=3D"noreferrer" ta=
rget=3D"_blank">http://backuppc.sourceforge.<wbr>net/</a><br>
<br></blockquote></div><br></div>

--001a1143d48026f77e0557c0fe79--


--===============2098745112020180543==
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
--===============2098745112020180543==
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/

--===============2098745112020180543==--