zuluCrypt doesn't launch

Bug #1722615 reported by tom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zulucrypt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

type zuluCrypt-gui from command line, or select it from launcher.

am prompted to authenticate, but after authentication, no window opens.

tried uninstalling, reinstalling.

17.10 Wayland artful zuluCrypt

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

maintainer of zuluCrypt here and i noticed this bug report from google search.

zuluCrypt as packaged by debian and ubuntu tries to root elevate GUI components and wayland does not like this very much and it causes the problem you reported.

version 5.2.0 of zuluCrypt no longer supports running GUI components privileged to support wayland and this means this version is also broken even if you were using X11.

I have binary package for various distributions here[1] but ubuntu 17.10 is not there yet so you are out of luck.

My recommendations are:

0. Uninstall these zuluCrypt packages.
1. Wait for zuluCrypt to be properly packaged in ubuntu. The maintainer is aware of the issue.
2. Build preferably git version of zuluCrypt from source code since it has full support for wayland.

[1] https://download.opensuse.org/repositories/home:/mhogomchungu/

Revision history for this message
tom (tombuntus) wrote :

Thanks a million for the prompt and thorough response!

I'm really newb, so with that in mind, I came up with 3 different possible ways I can solve this:

1. Can you give me a stupid-simple complete example of mounting and unmounting a file from cli with a password? The examples I can find are insufficient. Here's my attempt at usingg the most specific example I found, from another website, where I'm assuming the file I wanna open is /home/USERNAME/filename, and my password is Password:

sudo zuluCrypt-cli -o -d /home/USERNAME/filename -m sdc1 -e ro -p Password

This runs into all kinds of errors, and the documentation is way over newb level, and none of the examples are actual examples -- like is XXX password, or a key file, or some other thing? I just need to move from browsing for the file and entering a password in the gui, to doing the same with all default settings to mount the same file with the same password in the cli.

2. How long approximately should we expect to wait for Ubuntu 17.10 Wayland-compatible package?

3. How do I build the git version of zC from source code? I have git installed, but again, am total newb. For example, I tried to build gnome-usage from git with tutorials, with both Builder and ninja-build or something like that, but ran into un-Google-fixable problems both ways. Sadly, I haven't built gnome-usage to enjoy the main feature that was promised in GNOME 3.26. I'd need a really newb-friendly or Google-help-able tutorial to build this from git. The upside is, lots of other users will be going to 17.10 and could follow the same tutorial.

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

Noobs should not be living on the terminal or build stuff from source code.

Installing ubuntu 17.10 now to build a package you can just install and use. I will add a link to the package on the project main page you can download from there. The whole thing should take less than a day.

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

Ubuntu 17.10 is not out yet and what are you doing as a noob running unreleased software?

You can now get 17.10 binary packages from here: https://github.com/mhogomchungu/zuluCrypt/releases/tag/5.2.0

Direct link is: https://github.com/mhogomchungu/zuluCrypt/releases/download/5.2.0/zuluCrypt-5.2.0-ubuntu-17.10-Artful_Aardvark.tar.xz

Download the archive,extract it and follow the instructions in the README file. Don't hesitate to ask if you get stuck.

After you have installed the packages,the following command should be enough to unlock a volume from CLI:

zuluCrypt-cli -o -d /home/USERNAME/filename

Revision history for this message
tom (tombuntus) wrote : Re: [Bug 1722615] Re: zuluCrypt doesn't launch

So zuluCrypt-cli -o -d /home/USERNAME/filename fails, but
sudo zuluCrypt-cli -o -d /home/USERNAME/filename works, with either the old
zC or the new binary you gave me.

If I run through the GUI from the binary, it looks MUCH nicer than it has.
Finally modern look and scaling and windows and buttons. However, it fails
to load file, with error 255.

I'm prompted to "update" a bunch of things in software updater / sudo apt
upgrade, but look like regressions.

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libzulucrypt-dev : Depends: libzulucrypt1.2.0 (= 5.2.0-1) but it is not
installed
 zulucrypt-cli : Depends: libzulucrypt-exe1.2.0 (>= 5.0.2) but it is not
installed
                 Depends: libzulucrypt1.2.0 (>= 5.2.0) but it is not
installed
                 Depends: libzulucryptpluginmanager1.0.0 (>= 5.0.2) but it
is not installed
 zulucrypt-gui : Depends: libzulucryptpluginmanager1.0.0 (>= 5.0.2) but it
is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
specify a solution).

Should I "update" these dependencies?

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

first,remove ALL zuluCrypt packages you have installed and then install the ones i provide, you are getting errors because you attempting to mix version 5.0.2 from ubuntu and 5.2.0 from me.

Make sure all those with versions 5.0.2 are not in your system before you continue.

The version i provide works without sudo.

Revision history for this message
tom (tombuntus) wrote :

Before installing the binary, I ran sudo apt remove zuluCrypt-cli
zuluCrypt-gui, then autoremoved. How would you advise to remove all
zuluCrypt packages?

Revision history for this message
tom (tombuntus) wrote :

dpkg -l zulucrypt*

Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
iU zulucrypt-cli 5.2.0-1 amd64 tool for encrypting volumes
iU zulucrypt-gui 5.2.0-1 amd64 graphical front end for
zulucrypt

On Thu, Oct 12, 2017 at 1:05 PM, Tom Mercer <email address hidden> wrote:

> Before installing the binary, I ran sudo apt remove zuluCrypt-cli
> zuluCrypt-gui, then autoremoved. How would you advise to remove all
> zuluCrypt packages?
>
>

Revision history for this message
tom (tombuntus) wrote :

dpkg -l *zulucrypt*

Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
iU libzulucrypt-d 5.2.0-1 amd64 development files for
libzulucryp
in libzulucrypt-e <none> amd64 (no description available)
ii libzulucrypt1: 5.2.0-1 amd64 shared libraries for
cryptsetup a
in libzulucrypt1. <none> amd64 (no description available)
in libzulucryptpl <none> amd64 (no description available)
iU zulucrypt-cli 5.2.0-1 amd64 tool for encrypting volumes
iU zulucrypt-gui 5.2.0-1 amd64 graphical front end for
zulucrypt

On Thu, Oct 12, 2017 at 1:07 PM, Tom Mercer <email address hidden> wrote:

> dpkg -l zulucrypt*
>
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/
> trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Architecture Description
> +++-==============-============-============-===============
> ==================
> iU zulucrypt-cli 5.2.0-1 amd64 tool for encrypting volumes
> iU zulucrypt-gui 5.2.0-1 amd64 graphical front end for
> zulucrypt
>
> On Thu, Oct 12, 2017 at 1:05 PM, Tom Mercer <email address hidden> wrote:
>
>> Before installing the binary, I ran sudo apt remove zuluCrypt-cli
>> zuluCrypt-gui, then autoremoved. How would you advise to remove all
>> zuluCrypt packages?
>>
>>
>

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

I still use synaptic to manage packages because of its simplicity and zulucrypt packages you most likely have installed are those highlighted in the below image:

https://imgur.com/a/jFezM

I also suggest you use synaptic because doing stuff on the terminal is not very user friendly.

1. Install synaptic with command: sudo apt-get install synaptic
2. Temporarily allow GUI programs to run privileged with command: xhost +local:
3. Run synaptic with command: sudo synaptic
4. Search for package "zuluCrypt"
5. Remove all installed packages you see. Installed packages will be green highlighted.

In any of the above commands,if you get a "could not acquire lock error", keep trying to run the command on 2 seconds interval until it succeeds.

Revision history for this message
tom (tombuntus) wrote :

1. Synaptic doesn't run in Wayland (17.10 is wayland).

2. sudo xhost +local
no protocol specified
xhost: unable to open display ':0'

xhost +local
xhost: bad hostname 'local'

Yes, I have those packages installed, but they're the ones you told me to
install in the binary, which i installed per the README, in order.

What should I do step by step please? Should I look for these extra
packages? Should I try instead to remove packages? I'm not clear.

Revision history for this message
tom (tombuntus) wrote :

figured out xhost +local was not the command.

after running xhost +MyHostname

sudo synaptic
[sudo] password for tom:
No protocol specified
Unable to init server: Could not connect: Connection refused

(synaptic:5993): Gtk-WARNING **: cannot open display: :0

Revision history for this message
tom (tombuntus) wrote :
Revision history for this message
tom (tombuntus) wrote :

Used synaptic to "remove completely" all zulucrypt packages. Installed the 4 .deb packages in order again. Same errors.

Revision history for this message
tom (tombuntus) wrote :

I should add that when file is opened by CLI, every file inside has the locked icon, so something funky with users/permissions/root is likely going on.

affects: xrandr (Ubuntu) → zulucrypt (Ubuntu)
Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

The permission problem is probably due to permission issue, open the volume with something like:

sudo zuluCrypt-cli -o -d /home/USERNAME/filename -K `id --user`

The "messed up" state of zuluCrypt packages on your system is something i can not advice on how to solve because i do not know how "messed up" the situation is.

Download again this[1] package and try again,after you have extract it,you will see a whole lot more packages. Install them all with "sudo dpkg -i *.deb" command and hopefully,they should install cleanly this time. I have build them using package number and names as the default ones and hence they should be able to update more easily.

[1] https://github.com/mhogomchungu/zuluCrypt/releases/download/5.2.0/zuluCrypt-5.2.0-ubuntu-17.10-Artful_Aardvark.tar.xz

Revision history for this message
tom (tombuntus) wrote :

installed the many files after cleaning every zulucrypt package out again via synaptic.

In GUI, "Permission to access the volume was denied or the volume is not supported (LVM/MDRAID signatures found).

Revision history for this message
tom (tombuntus) wrote :

The previous error is in ZuluMount.

In ZuluCrypt GUI, when mounting, I enter passphrase, and "Unrecognized error with status number 255 encountered"

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

Is this volume in a file?

What are the permissions on the file?

What do you get when you run the following command:

zuluCrypt-cli --test

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

Found a problem i made while packaging and fixed it,reinstall packages from this[1] link and then run "zuluCrypt-cli --test" command and post its output,you should be good if all tests pass.

[1] https://github.com/mhogomchungu/zuluCrypt/releases/download/5.2.0/zuluCrypt-5.2.0-ubuntu-17.10-Artful_Aardvark.tar.xz

Revision history for this message
tom (tombuntus) wrote :

zuluCrypt-cli --test was failing at luks type volume using a key (the 6th test) previously.

Now with the latest release it's passing every test.

Now GUI works to open volume on a file.

Everything inside the volume still has lock icons on it, which was not the case in Ubuntu GNOME 17.04.

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

That sounds like a permission related issue on the volume.

Do you still get the same behavior on a newly created volume?

Did you open the volume in read/write mode?

What file system does your volume use?

When you have the volume unlocked,run the following command and post its output:

cat /proc/self/mountinfo | grep zuluCrypt

ps: copy and paste the command to make sure you dont mistype it.

Revision history for this message
tom (tombuntus) wrote :

I opened the volume in read/write.

LUKS, all default settings.

497 26 253:0 / /run/media/private/username/filename rw,nosuid,nodev,relatime shared:436 - ext4 /dev/mapper/zuluCrypt-1000-NAAN-filename-2596371917 rw,data=ordered

to give context, this file was created many linux installs/updates ago. It opened fine in the Ubuntu 16s, Fedora, Ubuntu regular and GNOME 17.04. Only zC in 17.10 has all the contents with the lock icon.

It seems that the problem is related to ubuntu 17.04, recent fedoras, ubuntu 16.04, and ubuntu 16.10 all make the first user with id 1001, whereas 17.10 changed 1st user id to 1000. should be no problem, I just have to chown e'rything.

Revision history for this message
mhogo mchungu (mhogomchungu) wrote :

Ok,i guess this concludes our business then since zuluCrypt now works as expected.

If inflexibility of container files starts to become an issue,check out my project
Sirikali[1] that acts as a front end to various tools that do folder based encryption.

Wishing you a happy usage of zuluCrypt :-)

[1] https://mhogomchungu.github.io/sirikali/

Revision history for this message
tom (tombuntus) wrote :

Yes, thanks much! Hopefully, despite taking a bunch of your time, I saved
you from a swarm of problems when 17.10 releases next week.

Revision history for this message
m.desouza20 (m-desouza20) wrote :

Source: zulucrypt
Source-Version: 5.2.0-2

We believe that the bug you reported is fixed in the latest version of
zulucrypt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Format: 1.8
Date: Sun, 10 Sep 2017 23:32:46 +0000
Source: zulucrypt
Binary: zulucrypt-cli zulumount-cli zulucrypt-gui zulumount-gui zulupolkit zulusafe-cli libzulucrypt-exe1.2.0 libzulucrypt-exe-dev libzulucrypt1.2.0 libzulucrypt-dev libzulucryptpluginmanager1.0.0 libzulucryptpluginmanager-dev libzulucrypt-plugins
Architecture: source amd64
Version: 5.2.0-2
Distribution: unstable
Urgency: medium
Maintainer: Marcio de Souza Oliveira <email address hidden>
Changed-By: Marcio de Souza Oliveira <email address hidden>
Description:
 libzulucrypt-dev - development files for libzulucrypt-1.2.0
 libzulucrypt-exe-dev - development files for the libzulucrypt-exe
 libzulucrypt-exe1.2.0 - provide the main functions of zulucrypt
 libzulucrypt-plugins - collection of plugins for zulucrypt
 libzulucrypt1.2.0 - provide the functions of zulumount
 libzulucryptpluginmanager-dev - development files for libzulucryptpluginmanager
 libzulucryptpluginmanager1.0.0 - provides support for plugins
 zulucrypt-cli - tool for encrypting volumes
 zulucrypt-gui - graphical front end for zulucrypt-cli
 zulumount-cli - tool that manages encrypted volumes
 zulumount-gui - graphical front end for zulumount-cli
 zulupolkit - handler the polkit privileges
 zulusafe-cli - cli that manages encrypted volumes

Changes:
 zulucrypt (5.2.0-2) unstable; urgency=medium
 .
   * Created the files zulupolkit.install and zuluPolkit.1.
   * debian/control:
       - Bumped Standards-Version to 4.1.0.
       - Created the package zulupolkit to acomodated the new tool
         zuluPolkit.
       - Removed qtkeychain-dev from Build-Depends.
         Thanks Mhogo Mchungu (Closes: #875291).
   * debian/rules:
       - Enabled the polkit support at build time.
       - Updated file.
   * Removed the files because are unnecessary with zulupolkit:
       - The files zulu*-gui-pkexec and zulu*-gui-pkexec.1.
       - The files org.debian.pkexec.zulu*-gui.policy.
       - The files zulu*-gui.links.
   * Removed the files zulu*-gui.menu.
   * Updated the files zulu*-gui.desktop.
   * Updated the files zulu*-gui.install.

Changed in zulucrypt (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.