Ubuntu error message

Forums: 

Hello, I'm new to bleachbit. I am using it on Ubuntu 16.04 LTS.

When I start the app, a terminal window opens and asks me to type in my root password. I correctly type my password in, however, this is the result.

About to execute bleachbit.
This command needs root privileges to be executed.
Using sudo...
Enter username password at prompt.
[sudo] password for username:

(bleachbit:3461): IBUS-WARNING **: The owner of /home/ghost/.config/ibus/bus is not root!

The bleachbit app still opens. But I do receive error messages during the cleaning process and sometimes it even seems to crash (it simply freezes up and stops working).

Is this normal behavior? Is there a solution?

You wrote

I correctly type my password in, however, this is the result.

So do you mean it asks you twice?

You mentioned you receive error messages during the cleaning process. What are they exactly? Can you narrow them down a particular option you selected?

About freezing, try this: disable Memory and Free Disk Space under System. Does this help?

---
Andrew, lead developer

Below is an error that I just received after wiping the system. As far as your suggestion to disable memory and free disk space under system, I'm not sure how to do that. Ubuntu 16.04 provides me with a system settings, but there is nothing there having to do with memory or free disk space. Do you think that this might have something to do with the fact that my system drive is fully encrypted? After this error is produced, Ubuntu asks me to send an error report, which I did.

Error text:

About to execute bleachbit.
This command needs root privileges to be executed.
Using sudo...
Enter xxxxx password at prompt.
[sudo] password for xxxxx:

(bleachbit:4424): IBUS-WARNING **: The owner of /home/xxxxx/.config/ibus/bus is not root!
debug: DeepScan.scan: searches= {'/home/xxxxx': [u'^\\.DS_Store$', u'\\.[Bb][Aa][Kk]$', u'[a-zA-Z]{1,4}~$', u'^~wr[a-z][0-9]{4}\\.tmp$', u'^ppt[0-9]{4}\\.tmp$', u'^Thumbs\\.db$', u'^Thumbs\\.db:encryptable$']}
debug: DeepScan.scan: searches= {'/home/xxxxx': [u'^\\.DS_Store$', u'\\.[Bb][Aa][Kk]$', u'[a-zA-Z]{1,4}~$', u'^~wr[a-z][0-9]{4}\\.tmp$', u'^ppt[0-9]{4}\\.tmp$', u'^Thumbs\\.db$', u'^Thumbs\\.db:encryptable$']}
Error in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 84, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 146, in execute
self.func(self.path)
File "/usr/share/bleachbit/bleachbit/Special.py", line 280, in delete_mozilla_url_history
FileUtilities.execute_sqlite3(path, cmds)
File "/usr/share/bleachbit/bleachbit/FileUtilities.py", line 307, in execute_sqlite3
'%s: %s' % (Common.decode_str(exc), path))
DatabaseError: UNIQUE constraint failed: moz_hosts.host: /home/ghost/.mozilla/firefox/sw06euev.default/places.sqlite
directory is not empty: /home/xxxxx/.cache/wallpaper
debug: DeepScan.scan: searches= {'/home/xxxxx': [u'^\\.DS_Store$', u'\\.[Bb][Aa][Kk]$', u'[a-zA-Z]{1,4}~$', u'^~wr[a-z][0-9]{4}\\.tmp$', u'^ppt[0-9]{4}\\.tmp$', u'^Thumbs\\.db$', u'^Thumbs\\.db:encryptable$']}
debug: running cmd ['swapon', '-s']
debug: detected swap devices: None
debug: wipe_memory() pid 4424 waiting for child pid 4450
debug: new nice value 19
debug: dropping privileges of pid 4450 to uid 1000
debug: physical free: 1,78GB (1779470336 B)
info: allocating and wiping 711,6MB (711584972 B) of memory
debug: physical free: 1,07GB (1066520576 B)
info: allocating and wiping 426,6MB (426608230 B) of memory
debug: physical free: 652,8MB (652779520 B)
info: allocating and wiping 261,1MB (261080678 B) of memory
debug: physical free: 410,8MB (410820608 B)
info: allocating and wiping 164,3MB (164328243 B) of memory
debug: physical free: 257,9MB (257896448 B)
info: allocating and wiping 103,2MB (103158579 B) of memory
debug: physical free: 262,9MB (262934528 B)
debug: freeing 164,3MB of memory
debug: physical free: 428,1MB (428085248 B)
debug: freeing 261,1MB of memory
debug: physical free: 689,6MB (689639424 B)
debug: freeing 426,6MB of memory
debug: physical free: 1,12GB (1117097984 B)
debug: freeing 711,6MB of memory
debug: physical free: 1,83GB (1829531648 B)
wrote 1 files and 278141722624 bytes in 4895 seconds at 56.82 MB/s
20480 bytes and 1333 inodes available to non-super-user
20480 bytes and 1333 inodes available to super-user
wrote 2 files and 24232226816 bytes in 322 seconds at 75.24 MB/s
0 bytes and 1730773 inodes available to non-super-user
1627389952 bytes and 1730773 inodes available to super-user
debug: re-enabling swap
Error in execution of
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 84, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 134, in execute
for func_ret in self.func():
File "/usr/share/bleachbit/bleachbit/Memory.py", line 283, in wipe_memory
enable_swap_linux()
File "/usr/share/bleachbit/bleachbit/Memory.py", line 101, in enable_swap_linux
raise RuntimeError(outputs[1].replace("\n", ""))
RuntimeError: swapon: stat of /dev/mapper/cryptswap1 failed: No such file or directory
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
Incorrect password or command failed. Try again? (y/N)

Do not look for "Memory" and "Free Disk Space" in the Ubuntu settings. Rather, "Memory" and "Free Disk Space" are options in the BleachBit application.

Yes, the error about cryptswap1 may be because BleachBit does not know how to handle it. Would you please file a bug ticket in the bug management system? I will work on it.

Encrypted swap does not need to be cleaned, and encrypted partitions do not need their free space wiped. Still, BleachBit shouldn't give you an error like this.

---
Andrew, lead developer

Hello Andrew,

I've created the bug report in GitHub as you requested. I've looked for the options Memory and Free Disk Space in the BleachBit preferences, but I don't find them anywhere.

As my user name suggests, I've very new to this OS.

Thanks for your help though.

For cross reference her is the bug ticket https://github.com/bleachbit/bleachbit/issues/186 .

Thank you for filing that

---
Andrew, lead developer

"Encrypted swap does not need to be cleaned, and encrypted partitions do not need their free space wiped."

As a development suggestion, maybe it's an idea to have Bleachbit also wipe the encrypted swap and partitions. Luks encryption doesn't have a plausible deniability that other encryption software has. Therefore, it's possible that you could be forced to give up your passphrase. Therefore, I find it always a good idea to remove as much data as possible just in case.

Just an idea. Thanks for the help.

I see what you mean. It would be more accurate to say that the value of wiping LUKS encryption is less than a non-encrypted system. BleachBit could give a warning with LUKS, but it should continue wiping anyway. Do you agree?

---
Andrew, lead developer

That would sound appropriate to me.

As an example, Privazer and CCleaner will both wipe the freespace of an encrypted windows volume. The warning could explain that it might not be necessary and will save time it that operation wasn't carried out. But in the end, it's the user who can decide.