Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with the bedup tool[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Apr 19, 2015 3:19 pm    Post subject: problems with the bedup tool[solved] Reply with quote

b5400 ~ # bedup scan /media/external/
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.3/bedup", line 9, in <module>
load_entry_point('bedup==0.9.0', 'console_scripts', 'bedup')()
File "/usr/lib64/python3.3/site-packages/bedup/__main__.py", line 487, in script_main
sys.exit(main(sys.argv))
File "/usr/lib64/python3.3/site-packages/bedup/__main__.py", line 476, in main
return args.action(args)
File "/usr/lib64/python3.3/site-packages/bedup/__main__.py", line 121, in vol_cmd
sess = get_session(args)
File "/usr/lib64/python3.3/site-packages/bedup/__main__.py", line 102, in get_session
upgrade_schema(engine)
File "/usr/lib64/python3.3/site-packages/bedup/migrations.py", line 52, in upgrade_schema
context._update_current_rev(current_rev, REV)
AttributeError: 'MigrationContext' object has no attribute '_update_current_rev'

b5400 ~ # uname -a
Linux b5400 3.18.7-gentoo #17 SMP PREEMPT Fri Apr 10 13:05:12 EET 2015 x86_64 Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz GenuineIntel GNU/Linux

* sys-fs/bedup
Latest version available: 0.9.0_p20140413
Latest version installed: 0.9.0_p20140413
Size of files: 48 KiB
Homepage: https://github.com/g2p/bedup
Description: Btrfs file de-duplication tool
License: GPL-2+


thanks


Last edited by Adel Ahmed on Mon May 04, 2015 12:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Apr 21, 2015 10:39 am    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1136
Location: /dev/koelsch

PostPosted: Tue Apr 21, 2015 10:49 am    Post subject: Reply with quote

Ahmed,

only a shot in the dark.

Did you already run python-updater and rebuild bedup afterwards again before your next trial.

Much success, Andy.
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Tue Apr 21, 2015 9:13 pm    Post subject: Reply with quote

Hello. It looks like there might be a possible workaround here:

https://github.com/g2p/bedup/issues/55
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Tue Apr 21, 2015 9:59 pm    Post subject: Reply with quote

Also from a link on the above page it looks like a fix was committed into master on Feb 23.

https://github.com/g2p/bedup/pull/60
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Thu Apr 23, 2015 6:10 pm    Post subject: Reply with quote

yup I've tried running python updater and rebuilding
the workaround says I should comment out line 52:
context._update_current_rev(current_rev, REV)

I don't have that line in /usr/bin/bedup
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Apr 27, 2015 10:14 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Wed Apr 29, 2015 12:01 am    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Wed Apr 29, 2015 10:33 pm    Post subject: Reply with quote

I last ran it last year on another distro. I'll try to give it another shot tonight and let you know if I can get it working.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Thu Apr 30, 2015 9:33 am    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Thu Apr 30, 2015 7:19 pm    Post subject: Reply with quote

Hi, it compiled and installed for me but in trying to get more information about syntax I came across this:

"bedup is unmaintained, and does not use the safe deduplication ioctl. Use duperemove instead."

https://btrfs.wiki.kernel.org/index.php/Deduplication#bedup

I think duperemove is actually what I used under Arch. Given the warning on the btrfs wiki you probably should use that instead too, if possible. It appears to be in portage:

Quote:

* sys-fs/duperemove
Latest version available: 0.09.3
Latest version installed: [ Not Installed ]
Size of files: 55 KiB
Homepage: https://github.com/markfasheh/duperemove
Description: Btrfs deduplication utility
License: GPL-2
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon May 04, 2015 12:02 pm    Post subject: Reply with quote

thanks for the information, duperemove is working
I'm very disappointed with the deduplication ratio but at least I got it working
thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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