You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Igor Galić <i....@brainsware.org> on 2011/06/17 18:17:11 UTC
Remove uninstall target (Was Damn! Will trafficserver delete /var/run folder by Uninstall it???)
----- Original Message -----
>
>
> This looks like something which should be fixed. The uninstall for
> the "proxy" component does an rm -rf on the statedirectory. The
> defaults /usr/local/var are general enough that ATS should change
> the default location to a subdirectory underneath. Looks like the
> configure command that the OP used caused the Makefile to delete the
> contents so at this point, unfortunately, your best bet would be do
> some sort of recovery if you have it.
I suggest we remove the uninstall target.
There's no way we can convincingly test all Layout mutations, and
even if we do manage to test all the ones we offer, someone will
come up with a layout that will wipe /usr or /var or both.
> Sridhar
>
>
> On Fri, Jun 17, 2011 at 11:08 AM, Belkacem Mohamed Rebbouh <
> rebbouhb@gmail.com > wrote:
>
>
>
> This is what i suspected the first time, but when we see the
> information given, the install dir is in /usr/local the default
> location.
>
> I think that the mistake is human, and the data is recoverable (if
> you didn't write something on the disk in the meanwhile)
>
> cheers.
>
>
>
>
>
>
>
>
> On Fri, Jun 17, 2011 at 5:05 PM, Leif Hedstrom < zwoop@apache.org >
> wrote:
>
>
>
>
>
>
>
> On Jun 17, 2011, at 8:47 AM, "Sharl.Jimh.Tsin" <
> amoiz.shine@gmail.com > wrote:
>
>
>
>
>
> On 2011年06月17日 22:32, medarkness wrote:
>
>
> Hi,
> can you give us more informations about the version you are using?
> the operating system?
> and the options you used when you installed ATS?
>
> ps.
> please don't be harsh in your emails, ATS is an open source project,
> you are using it on your own risks, and support is a favor not an
> obligation :)
>
>
> On Fri, Jun 17, 2011 at 4:22 PM, Sharl.Jimh.Tsin <
> amoiz.shine@gmail.com > wrote:
>
>
>
> On 2011年06月17日 18:26, Sharl.Jimh.Tsin wrote:
>
>
> it is really really unbelievable! just minutes ago, I uninstalled the
> apache traffic server by "make uninstall" in the source folder,then
> type "make distclean" to clean the previous files.
>
> BUT,i found that my the whole folder /var/run was deteled by it. it
> shocks me very much!
>
> as we know,many datas will be put into this folder,especially the
> MySQL data files.
>
> NOW it is gone!!!! WHY??? want a reply.
>
> hey!! anybody??? i think it is a serious bug. want a fix and some
> saving for my DATA.
>
>
>
> --
> Best regards,
> Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*)
>
> Using Gmail? Please read this important notice:
> http://www.fsf.org/campaigns/jstrap/gmail?10073 .
>
>
> OK,some information is below:
> 1.source tarball is download from:
> http://www.apache.org/dist//trafficserver/trafficserver-3.0.0.tar.bz2
> ,it is 3.0.0 version.
> 2.configure string to compile:
> [root@PowerPC trafficserver-3.0.0]# ./configure \
> > --prefix=/usr/local/trafficserver \
> > --exec-prefix=/usr/local \
> > --sysconfdir=/etc/sysconfig/trafficserver \
> > --localstatedir=/var/run \
>
>
> I think this might be the problem, I suspect we assume that you keep
> the default with .../var/run/traffic server. I'll play with it later
> today to see if I can reproduce.
>
>
> Now, if your data is gone, there is obviously nothing we can do to
> restore it. Hopeful thou have made backups.
>
>
> It is however very surprising that your distro would put DB files in
> /var/run, that dir is intended for state files, such as PID files.
> I.e. The files there should easily be recreated by restarting the
> servers.
>
>
> --Leif
>
>
>
>
>
>
>
>
> > --enable-purify \
> > --enable-tproxy=auto \
> > --with-user=cache \
> > --with-group=web
>
> 3.my VPS info is:
> [root@PowerPC var]# uname -a
> Linux PowerPC 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17
> 19:10:36 MSD 2010 i686 i686 i386 GNU/Linux
>
> 4.installed trafficserver info is:
> [root@PowerPC local]# traffic_server -V
> [TrafficServer] using root directory '/usr/local/trafficserver'
> Apache Traffic Server - traffic_server - 3.0.0 - (build # 5167 on Jun
> 16 2011 at 07:07:03)
>
> I am sorry for my impolite,however those data is really very
> important.i still want it back with some possible ways,thanks again.
> --
> Best regards,
> Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*)
>
> Using Gmail? Please read this important notice:
> http://www.fsf.org/campaigns/jstrap/gmail?10073 .
>
>
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
Re: Remove uninstall target (Was Damn! Will trafficserver delete
/var/run folder by Uninstall it???)
Posted by Dossy Shiobara <do...@panoptic.com>.
Uninstall should never use rm -rf. Known files that belong to the
application should be rm'ed individually, and directories should be
rmdir'ed ignoring failures - which will only succeed if the directory is
empty. If other files have been written there, the rmdir will be a no-op.
On 6/17/11 12:17 PM, Igor Galić wrote:
> I suggest we remove the uninstall target.
> There's no way we can convincingly test all Layout mutations, and
> even if we do manage to test all the ones we offer, someone will
> come up with a layout that will wipe /usr or /var or both.
--
Dossy Shiobara | "He realized the fastest way to change
dossy@panoptic.com | is to laugh at your own folly -- then you
http://panoptic.com/ | can let go and quickly move on." (p. 70)
* WordPress * jQuery * MySQL * Security * Business Continuity *
Re: Remove uninstall target (Was Damn! Will trafficserver delete /var/run folder by Uninstall it???)
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
> +1 from me for this as well
https://issues.apache.org/jira/browse/TS-842
Trunk patch: http://svn.apache.org/viewvc?rev=1136958&view=rev
Backport Proposal: http://svn.apache.org/viewvc?rev=1136962&view=rev
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
Re: Remove uninstall target (Was Damn! Will trafficserver delete
/var/run folder by Uninstall it???)
Posted by Billy Vierra <bv...@sortatechie.com>.
+1 from me for this as well
On 06/17/2011 09:17 AM, Igor Galić wrote:
>
> ----- Original Message -----
>>
>> This looks like something which should be fixed. The uninstall for
>> the "proxy" component does an rm -rf on the statedirectory. The
>> defaults /usr/local/var are general enough that ATS should change
>> the default location to a subdirectory underneath. Looks like the
>> configure command that the OP used caused the Makefile to delete the
>> contents so at this point, unfortunately, your best bet would be do
>> some sort of recovery if you have it.
> I suggest we remove the uninstall target.
> There's no way we can convincingly test all Layout mutations, and
> even if we do manage to test all the ones we offer, someone will
> come up with a layout that will wipe /usr or /var or both.
>
>> Sridhar
>>
>>
>> On Fri, Jun 17, 2011 at 11:08 AM, Belkacem Mohamed Rebbouh<
>> rebbouhb@gmail.com> wrote:
>>
>>
>>
>> This is what i suspected the first time, but when we see the
>> information given, the install dir is in /usr/local the default
>> location.
>>
>> I think that the mistake is human, and the data is recoverable (if
>> you didn't write something on the disk in the meanwhile)
>>
>> cheers.
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Jun 17, 2011 at 5:05 PM, Leif Hedstrom< zwoop@apache.org>
>> wrote:
>>
>>
>>
>>
>>
>>
>>
>> On Jun 17, 2011, at 8:47 AM, "Sharl.Jimh.Tsin"<
>> amoiz.shine@gmail.com> wrote:
>>
>>
>>
>>
>>
>> On 2011年06月17日 22:32, medarkness wrote:
>>
>>
>> Hi,
>> can you give us more informations about the version you are using?
>> the operating system?
>> and the options you used when you installed ATS?
>>
>> ps.
>> please don't be harsh in your emails, ATS is an open source project,
>> you are using it on your own risks, and support is a favor not an
>> obligation :)
>>
>>
>> On Fri, Jun 17, 2011 at 4:22 PM, Sharl.Jimh.Tsin<
>> amoiz.shine@gmail.com> wrote:
>>
>>
>>
>> On 2011年06月17日 18:26, Sharl.Jimh.Tsin wrote:
>>
>>
>> it is really really unbelievable! just minutes ago, I uninstalled the
>> apache traffic server by "make uninstall" in the source folder,then
>> type "make distclean" to clean the previous files.
>>
>> BUT,i found that my the whole folder /var/run was deteled by it. it
>> shocks me very much!
>>
>> as we know,many datas will be put into this folder,especially the
>> MySQL data files.
>>
>> NOW it is gone!!!! WHY??? want a reply.
>>
>> hey!! anybody??? i think it is a serious bug. want a fix and some
>> saving for my DATA.
>>
>>
>>
>> --
>> Best regards,
>> Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*)
>>
>> Using Gmail? Please read this important notice:
>> http://www.fsf.org/campaigns/jstrap/gmail?10073 .
>>
>>
>> OK,some information is below:
>> 1.source tarball is download from:
>> http://www.apache.org/dist//trafficserver/trafficserver-3.0.0.tar.bz2
>> ,it is 3.0.0 version.
>> 2.configure string to compile:
>> [root@PowerPC trafficserver-3.0.0]# ./configure \
>>> --prefix=/usr/local/trafficserver \
>>> --exec-prefix=/usr/local \
>>> --sysconfdir=/etc/sysconfig/trafficserver \
>>> --localstatedir=/var/run \
>>
>> I think this might be the problem, I suspect we assume that you keep
>> the default with .../var/run/traffic server. I'll play with it later
>> today to see if I can reproduce.
>>
>>
>> Now, if your data is gone, there is obviously nothing we can do to
>> restore it. Hopeful thou have made backups.
>>
>>
>> It is however very surprising that your distro would put DB files in
>> /var/run, that dir is intended for state files, such as PID files.
>> I.e. The files there should easily be recreated by restarting the
>> servers.
>>
>>
>> --Leif
>>
>>
>>
>>
>>
>>
>>
>>
>>> --enable-purify \
>>> --enable-tproxy=auto \
>>> --with-user=cache \
>>> --with-group=web
>> 3.my VPS info is:
>> [root@PowerPC var]# uname -a
>> Linux PowerPC 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17
>> 19:10:36 MSD 2010 i686 i686 i386 GNU/Linux
>>
>> 4.installed trafficserver info is:
>> [root@PowerPC local]# traffic_server -V
>> [TrafficServer] using root directory '/usr/local/trafficserver'
>> Apache Traffic Server - traffic_server - 3.0.0 - (build # 5167 on Jun
>> 16 2011 at 07:07:03)
>>
>> I am sorry for my impolite,however those data is really very
>> important.i still want it back with some possible ways,thanks again.
>> --
>> Best regards,
>> Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*)
>>
>> Using Gmail? Please read this important notice:
>> http://www.fsf.org/campaigns/jstrap/gmail?10073 .
>>
>>
Re: Remove uninstall target (Was Damn! Will trafficserver delete
/var/run folder by Uninstall it???)
Posted by sridhar basam <sr...@basam.org>.
2011/6/17 Igor Galić <i....@brainsware.org>
>
>
> ----- Original Message -----
> >
> >
> > This looks like something which should be fixed. The uninstall for
> > the "proxy" component does an rm -rf on the statedirectory. The
> > defaults /usr/local/var are general enough that ATS should change
> > the default location to a subdirectory underneath. Looks like the
> > configure command that the OP used caused the Makefile to delete the
> > contents so at this point, unfortunately, your best bet would be do
> > some sort of recovery if you have it.
>
> I suggest we remove the uninstall target.
> There's no way we can convincingly test all Layout mutations, and
> even if we do manage to test all the ones we offer, someone will
> come up with a layout that will wipe /usr or /var or both.
>
>
+1 on the suggestion to get rid of the uninstall.
I personally prefer the ATS install works similar to how the HTTPD project
currently works. Everything for the project, by default, goes under a single
prefix /usr/local/<ats-version>. If a user wants to compile a new version,
in the default installation there is no mixing of config files or anything
else. More advanced users can deal with re-configuring the software however
they want to but atleast the default configuration it would be easy to
locate all of the files for ATS.
Sridhar