Author Topic: Zulucrypt error  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Zulucrypt error
« on: 22. March 2016, 17:14:06 »
After last two or three updates ZuluCrypt is not working properly

I use it for a TrueCrypt file

It opens the file but is not closing it properly

When I close the file I get an error message saying: "Close failed, snarea mount point appear to belong to a different user or multiple mount points detected"

the file remains  open in Dolphin and there is chance to close from there but after closing it in Dolphin it remain visible until the reboot.

Any suggestion how to fix it?
Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Zulucrypt error
« Reply #1 on: 22. March 2016, 18:33:07 »
As a first step I'd recommend re-compiling Zulucrypt (i.e. reinstall from the AUR). There may have been library updates that affect it.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #2 on: 22. March 2016, 19:17:14 »

You are getting that error message because this[1] code path is taken in your case and the reason is because somebody else(udisks probably) mounts zuluCrypt's encryption mapper and it should not.

I added the check because zuluCrypt was getting confused when its encryption mapper get mounted more than once and with mount point being where it does not expect them to be.

After you have successfully unlocked your TrueCrypt volume,open the terminal and run the following command and paste its content here. This command will show how many mount points are there with zuluCrypt encryption mapper.

Quote

cat /proc/self/mountinfo | grep zuluCrypt


The solution here will be to find the program that mounts zuluCrypt's encryption mapper and configure it to stop doing it. One program that i know does this is device notifier in kde4. What desktop environment are you using?

[1] https://github.com/mhogomchungu/zuluCrypt/blob/e72ca5a3304de8b272a83bc6ec27f5604fbfec77/zuluCrypt-cli/lib/unmount_volume.c#L172

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #3 on: 22. March 2016, 20:29:44 »
I'm using Plasma 5 as in my signature, Lenovo machine

here is the output:
Code: [Select]
cat /proc/self/mountinfo | grep zuluCrypt
140 124 254:0 / /run/media/private/hal9000/Baba.TC rw,nosuid,nodev,relatime shared:92 - vfat /dev/mapper/zuluCrypt-1000-NAAN-Baba.TC-1065953595 rw,uid=1000,gid=1000,fmask=0111,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro
Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #4 on: 23. March 2016, 19:49:53 »

Your output says there is only one mount point against zuluCrypt encryption mapper and I do not see how you will get the error you got.

Does the problem happen consistently? Perhaps you sometimes you cause the problem by creating an additional mount point when you click the volume entry on dolphin side bar?.


Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #5 on: 24. March 2016, 00:40:53 »
You are right, this is happening after clicking the volume entry on Dolphin side bar

if I don't click that entry the mounted volume is not visible in ZC GUI as before used to be

after opening ZC I mount a volume but is not appearing in GUI and the dolphin window opens correctly

the problem for me is to close it...
not appearing in the GUI, I can't close as I use to do before by clicking on volume entry and choosing to close it
if I select to close it from the menu ZC on the GUI it remains visible in dolphin, even after log out, to remove it from Dolphin I've to reboot

hope to be clear, the volume is mounting, not visible in the GUI and it doesn't close

PS. ZC works as expected in other distros
« Last Edit: 24. March 2016, 00:47:17 by notageek »
Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #6 on: 24. March 2016, 07:02:17 »
Can Somebody else who is following this thread reproduce this?

I can not see how an unlocked volume will not show up in zuluCrypt GUI. Something else maybe going on here.

How about in zuluMount? Does it show up there?

After you have your volume unlocked and without it showing up in zuluCrypt GUI,run the following commands and post their output.

Code: [Select]

cat /proc/self/mountinfo

zuluCrypt-cli -L

zuluMount-cli -l            <---- the letter in the argument is a lower case "el"


Will look into installing plasma5 and test if somebody else can reproduce the issue.
« Last Edit: 24. March 2016, 07:04:56 by mhogomchungu »

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #7 on: 24. March 2016, 08:23:53 »
it show up in zuluMount

Code: [Select]
cat /proc/self/mountinfo
100 99 8:1 / / rw,noatime shared:55 master:1 - ext4 /dev/sda1 rw,data=ordered
101 100 0:6 / /dev rw,nosuid,relatime shared:56 master:2 - devtmpfs dev rw,size=3925000k,nr_inodes=981250,mode=755
102 101 0:19 / /dev/shm rw,nosuid,nodev shared:57 master:3 - tmpfs tmpfs rw
103 101 0:13 / /dev/pts rw,nosuid,noexec,relatime shared:58 master:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
104 101 0:33 / /dev/hugepages rw,relatime shared:59 master:22 - hugetlbfs hugetlbfs rw
105 101 0:15 / /dev/mqueue rw,relatime shared:60 master:24 - mqueue mqueue rw
106 100 0:4 / /proc rw,nosuid,nodev,noexec,relatime shared:61 master:5 - proc proc rw
107 106 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:62 master:21 - autofs systemd-1 rw,fd=24,pgrp=1,timeout=0,minproto=5,maxproto=5,direct
108 100 0:16 / /sys rw,nosuid,nodev,noexec,relatime shared:63 master:6 - sysfs sys rw
109 108 0:18 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:64 master:7 - securityfs securityfs rw
110 108 0:20 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:65 master:8 - tmpfs tmpfs ro,mode=755
111 110 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:66 master:9 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
112 110 0:23 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:67 master:12 - cgroup cgroup rw,cpu,cpuacct
113 110 0:24 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:68 master:13 - cgroup cgroup rw,freezer
114 110 0:25 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:69 master:14 - cgroup cgroup rw,blkio
115 110 0:26 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:70 master:15 - cgroup cgroup rw,memory
116 110 0:27 / /sys/fs/cgroup/net_cls rw,nosuid,nodev,noexec,relatime shared:71 master:16 - cgroup cgroup rw,net_cls
117 110 0:28 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:72 master:17 - cgroup cgroup rw,cpuset
118 110 0:29 / /sys/fs/cgroup/bfqio rw,nosuid,nodev,noexec,relatime shared:73 master:18 - cgroup cgroup rw,bfqio
119 110 0:30 / /sys/fs/cgroup/pids rw,nosuid,nodev,noexec,relatime shared:74 master:19 - cgroup cgroup rw,pids
120 110 0:31 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:75 master:20 - cgroup cgroup rw,devices
121 108 0:22 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:76 master:10 - pstore pstore rw
122 108 0:7 / /sys/kernel/debug rw,relatime shared:77 master:23 - debugfs debugfs rw                                                                                                                     
123 108 0:34 / /sys/kernel/config rw,relatime shared:78 master:25 - configfs configfs rw                                                                                                                 
124 100 0:17 / /run rw,nosuid,nodev,relatime shared:79 master:11 - tmpfs run rw,mode=755                                                                                                                 
125 100 0:35 / /tmp rw,noatime shared:80 master:26 - tmpfs tmpfs rw                                                                                                                                       
126 125 0:35 /systemd-private-9749274dd85d438eaf7baf3f6d0fd406-sddm.service-YGcq6E/tmp /tmp rw,noatime shared:81 master:26 - tmpfs tmpfs rw                                                               
127 100 8:1 /var/tmp/systemd-private-9749274dd85d438eaf7baf3f6d0fd406-sddm.service-6TWaLc/tmp /var/tmp rw,noatime shared:82 master:1 - ext4 /dev/sda1 rw,data=ordered                                     
129 124 0:37 / /run/user/1000 rw,nosuid,nodev,relatime shared:84 master:83 - tmpfs tmpfs rw,size=785700k,mode=700,uid=1000,gid=1001                                                                       
133 108 0:38 / /sys/fs/fuse/connections rw,relatime shared:87 master:86 - fusectl fusectl rw                                                                                                             
139 129 0:39 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:91 master:89 - fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=1001                                                               
140 124 254:0 / /run/media/private/hal9000/Baba.TC rw,nosuid,nodev,relatime shared:92 - vfat /dev/mapper/zuluCrypt-1000-NAAN-Baba.TC-1065953595 rw,uid=1000,gid=1000,fmask=0111,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro

Code: [Select]
zuluCrypt-cli -L
doesn't show nothing

Code: [Select]
zuluMount-cli -l
/dev/sda1       /       ext4    Nil     207,1 GB        5,05%
/dev/sda2       Nil     swap    Nil     4,0 GB  Nil
/home/hal9000/Baba.TC/Baba.TC   Nil     Nil     Nil     500,0 MB        Nil

Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #8 on: 24. March 2016, 08:35:34 »

It looks like there is a problem in processing "/proc/self/mountinfo" but it works fine in my
arch test system and everywhere else i have tested it.

Are you using a released version or a git version?

If git version,then try to update your sources,maybe you got the sources at a bad commit.

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #9 on: 24. March 2016, 12:11:36 »
no, I was not using the git version

but there is an update, I've restored an image kde-openrc made on March 18 and there ZC works fine

here are the three output with mounted volume, present in GUI

Code: [Select]
cat /proc/self/mountinfo
16 20 0:4 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
17 20 0:16 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sys rw
18 20 0:6 / /dev rw,nosuid,relatime - devtmpfs dev rw,size=10240k,nr_inodes=981402,mode=755
19 20 0:17 / /run rw,nosuid,nodev,relatime - tmpfs run rw,mode=755
20 0 8:1 / / rw,noatime - ext4 /dev/sda1 rw,data=ordered
21 18 0:15 / /dev/mqueue rw,nosuid,nodev,noexec,relatime - mqueue mqueue rw
22 18 0:13 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=000
23 18 0:18 / /dev/shm rw,nosuid,nodev,noexec,relatime - tmpfs shm rw
24 17 0:19 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime - securityfs securityfs rw
25 17 0:7 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime - debugfs debugfs rw
26 17 0:20 / /sys/kernel/config rw,nosuid,nodev,noexec,relatime - configfs configfs rw
27 17 0:21 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime - tmpfs cgroup_root rw,size=10240k,mode=755
28 27 0:22 / /sys/fs/cgroup/openrc rw,nosuid,nodev,noexec,relatime - cgroup openrc rw,release_agent=/usr/lib/rc/sh/cgroup-release-agent.sh,name=openrc
29 27 0:23 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime - cgroup cpuset rw,cpuset,clone_children
30 27 0:24 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime - cgroup cpu rw,cpu
31 27 0:25 / /sys/fs/cgroup/cpuacct rw,nosuid,nodev,noexec,relatime - cgroup cpuacct rw,cpuacct
32 27 0:26 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime - cgroup blkio rw,blkio
33 27 0:27 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime - cgroup memory rw,memory
34 27 0:28 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime - cgroup devices rw,devices
35 27 0:29 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime - cgroup freezer rw,freezer
36 27 0:30 / /sys/fs/cgroup/net_cls rw,nosuid,nodev,noexec,relatime - cgroup net_cls rw,net_cls
37 27 0:31 / /sys/fs/cgroup/bfqio rw,nosuid,nodev,noexec,relatime - cgroup bfqio rw,bfqio,release_agent=/run/cgmanager/agents/cgm-release-agent.bfqio
38 27 0:32 / /sys/fs/cgroup/pids rw,nosuid,nodev,noexec,relatime - cgroup pids rw,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids
40 20 0:34 / /tmp rw,noatime - tmpfs tmpfs rw
41 16 0:35 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime - binfmt_misc binfmt_misc rw
42 19 0:36 / /run/cgmanager/fs rw,relatime - tmpfs cgmfs rw,size=100k,mode=755                                                                                                                                 
45 19 0:39 / /run/user/1000 rw,relatime - tmpfs none rw,mode=700,uid=1000                                                                                                                                     
46 19 254:0 / /run/media/private/hal9000/Baba.TC rw,nosuid,nodev,relatime - vfat /dev/mapper/zuluCrypt-1000-NAAN-Baba.TC-1065953595 rw,uid=1000,gid=1000,fmask=0111,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,flush,errors=remount-ro

Code: [Select]
zuluCrypt-cli -L                                                                                                                                                                       
/home/hal9000/Baba.TC/Baba.TC   /run/media/private/hal9000/Baba.TC      crypto_TCRYPT

Code: [Select]
zuluMount-cli -l                                                                                                                                                                       
/dev/sda1       /       ext4    Nil     207,1 GB        5,04%                                                                                                                                                 
/home/hal9000/Baba.TC/Baba.TC   /run/media/private/hal9000/Baba.TC      crypto_TCRYPT/vfat      Nil     497,8 MB        4,44%                                                                                 
/dev/sda2       Nil     swap    Nil     4,0 GB  Nil


« Last Edit: 24. March 2016, 12:38:14 by notageek »
Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #10 on: 24. March 2016, 12:50:19 »

march 18th was six days ago.

what version are you using now when things are working and what version were you using previously when things were not working?

will also appreciate if you could point to a repository where you updated it from that i can take the binary and see if i can run it locally and reproduce the problem.

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #11 on: 24. March 2016, 12:58:00 »
As a first step I'd recommend re-compiling Zulucrypt (i.e. reinstall from the AUR). There may have been library updates that affect it.

Did you try this suggestion?. 

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #12 on: 24. March 2016, 13:07:47 »
yes, I've reinstalled many times, cleaned the files in /home

the problem start to manifest in Plasma5-systemd after the 5th march update, if I'm not wrong

I've installed a custom iso made with buildiso dated February 16 and after the update installed ZC then it started showing this behavior

the version is that in AUR, 4.9.0-1 not git

Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951

Offline mhogomchungu

  • Neuling
  • *
  • Posts: 24
  • Skill: Novice
Re: Zulucrypt error
« Reply #13 on: 24. March 2016, 13:28:02 »

This is really confusing :-)

You got it to work through a workaround so the root problem is still unknown and that is not good(for me atleast as a maintainer of zuluCrypt).

Is it a local issue on your system and only you are experiencing it or is it a systematic issue is a question i would like answered.It works fine on my arch testing system but its been ages since i last updated it so its not be best arch based system for testing.

Hope somebody else will come along and test zuluCrypt for us and report their finding.

Offline notageek

  • Jr. Mitglied
  • **
  • Posts: 84
  • I'm new. Be nice!
  • Branch: Stable
  • Skill: Novice
Re: Zulucrypt error
« Reply #14 on: 24. March 2016, 20:30:47 »
well, let's see if others will have the same issue

anyway thanks for your time and attention  :)
Plasma 5 Kernel 319-318 on Dell Precision M4800 i7 4800MQ NVidia Optimus K1100M + Intel HD 4600 16 GB RAM SSD Samsung 840 Pro
Plasma 5 Kernel 44-41 on Lenovo X1 Carbon Gen3 i5 5200 Intel HD 5500 8 GB RAM SSD Samsung SM951