Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DO NOT USE BEAGLE-BUILD-INDEX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Aug 26, 2005 6:31 pm    Post subject: DO NOT USE BEAGLE-BUILD-INDEX Reply with quote

Today I was experimenting with Beagle.

I decided to execute the following:

Code:
beagle-build-index --recursive /home


It deleted everything.

Everything. Almost like a damn rm -rf ~.

DO NOT USE IT.

mod edit: +sticky --Earthwings
2005-09-11 -sticky --Earthwings

_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Aug 26, 2005 6:45 pm    Post subject: Reply with quote

Oh, and just a little update: It seems that Beagle did a good job of totally wiping my data, as I can't recover even half of it with the dd and losetup tricks floating around these forums.
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Aug 26, 2005 7:09 pm    Post subject: Reply with quote

That's pretty important, did you contact the beagle developers also?

Glad I don't use beagle.

I hope you had a backup. Too many people just don't do backups.
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Aug 26, 2005 7:17 pm    Post subject: Reply with quote

Headrush wrote:
That's pretty important, did you contact the beagle developers also?

Glad I don't use beagle.

I hope you had a backup. Too many people just don't do backups.


All of my important stuff was on my server.

I'm going to report it to the Beagle devs as soon as I figure out what section of code did what it did to my files.
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Aug 26, 2005 7:35 pm    Post subject: Reply with quote

I would report it first, you may save some poor helpless soul some major problems. :wink:
Back to top
View user's profile Send private message
Armand Karlsen
n00b
n00b


Joined: 18 Aug 2005
Posts: 47
Location: London, UK

PostPosted: Fri Aug 26, 2005 8:03 pm    Post subject: Reply with quote

Reminds me of a conversation I read in an IRC tech channel. One person was discussing how he would form a band that really appeals to geeks, and then name it "rm -rf *" . :P
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sat Aug 27, 2005 2:22 am    Post subject: Reply with quote

http://bugzilla.gnome.org/show_bug.cgi?id=314631
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
brullonulla
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2005
Posts: 117
Location: bologna

PostPosted: Sat Aug 27, 2005 5:02 pm    Post subject: Reply with quote

Too good I first decided to look for "beagle" on the forums before trying to install it! 8O
_________________
Google is the index to the unwritten Linux manual.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Aug 27, 2005 5:21 pm    Post subject: Reply with quote

Scary. I don't want to spread FUD, but it seems to be a real bug (confirmed by another user in bugzilla), so let's better prevent people from wiping out their data and make this thread sticky until the bug is resolved. Moved from Desktop Environments to Unsupported Software.
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Sat Aug 27, 2005 6:56 pm    Post subject: Reply with quote

That sounds very scary :o . Thanks for the heads up. I'm never going to use that command for sure.
_________________
http://en.wikipedia.org/wiki/Cell_(microprocessor)
Back to top
View user's profile Send private message
GaMMa
l33t
l33t


Joined: 23 Aug 2002
Posts: 684
Location: USA

PostPosted: Tue Aug 30, 2005 11:05 pm    Post subject: Reply with quote

I'll wait a little while to try beagle then. I value my home directory.
_________________
Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide]
Back to top
View user's profile Send private message
vdemeester
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 138
Location: France

PostPosted: Wed Aug 31, 2005 9:37 am    Post subject: Reply with quote

GaMMa wrote:
I'll wait a little while to try beagle then. I value my home directory.

Hum, i'm currently using beagle and since months and months. I never have a problem but i also never test the beagle-build-index --recursive /home.

A good things to have report the bug, my new goal : make a backup ^^
_________________
shortbrain.org
Back to top
View user's profile Send private message
GaMMa
l33t
l33t


Joined: 23 Aug 2002
Posts: 684
Location: USA

PostPosted: Sat Sep 03, 2005 3:11 am    Post subject: Reply with quote

I'm on reiser4 so using the sqlite backend things would be slow anyway. I'll wait until something blows over with reiser4
_________________
Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide]
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Sep 09, 2005 12:29 am    Post subject: Reply with quote

GaMMa wrote:
I'm on reiser4 so using the sqlite backend things would be slow anyway. I'll wait until something blows over with reiser4
[flame]
...or you could use a better filesystem. ;)
[/flame]

Is this with FAM? If so, have you tried it with gamin/inotify?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sun Sep 11, 2005 7:57 pm    Post subject: Reply with quote

this isn't a *code* bug as such.

beagle-build-index is perfectly safe if you use it as designed. here's a snippet of the usage info:

Quote:
Usage: beagle-build-index [OPTIONS] <path> [path] [path] <index path>


notice that it expects (at least) 2 paths. the last path is a directory where you want to store the index that it builds, and beagle *will* clean out this directory.

example:
Code:
beagle-build-index --recursive ~ /var/tmp/myindex


just thought i would clarify that, as the whole static index thing does work rather well, apart from this obvious usability issue. it has been fixed in cvs - you are forced to be more explicit of the target directory to store the index.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Sep 11, 2005 9:28 pm    Post subject: Reply with quote

Why is the whole directory cleared anyway? Don't you know the index filename(s) in advance?
Unstuck, I wonder why bugzilla didn't notify me about the bug progress :?
_________________
KDE
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sun Sep 11, 2005 9:49 pm    Post subject: Reply with quote

it could probably be modified to just delete the stuff it cares about - however if the index format ever changed, the code would ideally have to be taught to purge the older directories/files that arent used in the new format. it makes more sense from a design standpoint just to purge the whole thing if its useless, and even more so before the possibility of static indexes came along (when indexes were always in ~/.beagle/SomeIndex)
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum