g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

No such file or directory blkid #80

Closed igroykt closed 8 years ago

igroykt commented 8 years ago

Traceback (most recent call last): File "/bin/bedup", line 11, in load_entry_point('bedup==0.10.1', 'console_scripts', 'bedup')() File "/root/.local/lib/python3.4/site-packages/bedup-0.10.1-py3.4-linux-x86_64.egg/bedup/main.py", line 497, in script_main sys.exit(main(sys.argv)) File "/root/.local/lib/python3.4/site-packages/bedup-0.10.1-py3.4-linux-x86_64.egg/bedup/main.py", line 486, in main return args.action(args) File "/root/.local/lib/python3.4/site-packages/bedup-0.10.1-py3.4-linux-x86_64.egg/bedup/main.py", line 127, in vol_cmd vols = whole_fs.load_all_writable_vols(tt) File "/root/.local/lib/python3.4/site-packages/bedup-0.10.1-py3.4-linux-x86_64.egg/bedup/filesystem.py", line 557, in load_all_writable_vols for (uuid, di) in self.device_info.items(): File "/root/.local/lib/python3.4/site-packages/SQLAlchemy-1.1.0b3-py3.4-linux-x86_64.egg/sqlalchemy/util/langhelpers.py", line 754, in get obj.dict[self.name] = result = self.fget(obj) File "/root/.local/lib/python3.4/site-packages/bedup-0.10.1-py3.4-linux-x86_64.egg/bedup/filesystem.py", line 489, in device_info subp = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True) File "/usr/lib64/python3.4/subprocess.py", line 859, in init restore_signals, start_new_session) File "/usr/lib64/python3.4/subprocess.py", line 1457, in _execute_child raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'blkid'

which blkid /sbin/blkid

cmd=bedup dedup

igroykt commented 8 years ago

Changed crontab task to run from /root/.local/bin instead of symlink (/usr/bin). That solved the problem.