BTS

Issue961

Title grml-crypt error handling problem
Priority bug Status resolved
Superseder Nosy List suntong
Assigned To Topics

Created on 2011-01-30.17:34:41 by suntong, last changed 2011-05-09.23:28:41 by suntong.

Messages
msg3775 (view) Author: suntong Date: 2011-05-09.23:28:40
Ok, I gave grml-medium_sid_20110509 a try and I can't reproduce the issue either. 

So, let's close it.
msg3752 (view) Author: mika Date: 2011-05-09.14:39:28
Hi, sorry for not coming back earlier.

I sadly can't reproduce this issue with grml-medium_sid_20110509.iso, so we 
need either further information or have to close the bugreport because it's 
unreproducable.

I'm wondering about the:

| Device grml-crypt_Sources.img is busy.

and

| Device grml-crypt_Sources.img already exists.

Given it's using /dev/loop0 on your system, are you using a grml2hd 
installation? What cryptsetup version are you using?

thx && regards,
-mika-
msg3664 (view) Author: suntong Date: 2011-01-30.17:34:39
Hi, 

Just reporting the errors occurred when I was using grml-crypt. The error might
not be duplicable, but still, logged here for future reference. 

Executing the same command twice with 2 different errors:

First execution, failed to umount image and free loop dev:

% grml-crypt -f -vvv -text2 format $imgf
Debug - checkId(): accepted, UID matches "0"
Debug - your cryptsetup understands --batch-mode
Notice - Operating on a file
WARN: overwriting file Sources.img
Debug - exec-die: ( losetup /dev/loop0 Sources.img ) ret(0)
Enter LUKS passphrase: 
Debug - exec-warn: ( cryptsetup  --batch-mode --key-size 256 --cipher
aes-cbc-essiv:sha256 --iter-time 1000  luksFormat /dev/loop0 ) ret(0)
Enter passphrase for /dev/loop0: 
Debug - exec-warn: ( cryptsetup luksOpen /dev/loop0 grml-crypt_Sources.img ) ret(0)
mke2fs 1.41.12 (17-May-2010)
Debug - exec-warn: ( /sbin/mkfs.ext2 /dev/mapper/grml-crypt_Sources.img
>/dev/null ) ret(0)
Successully created ext2 on encrypted /dev/loop0
Device grml-crypt_Sources.img is busy.
WARN: problems executing ( cryptsetup luksClose grml-crypt_Sources.img ); ret(240)
Debug - exec-warn: ( cryptsetup luksClose grml-crypt_Sources.img ) ret(240)
loop: can't delete device /dev/loop0: Device or resource busy
WARN: problems executing ( losetup -d /dev/loop0 ); ret(1)
Debug - exec-warn: ( losetup -d /dev/loop0 ) ret(1)

Second execution, could not open /dev/mapper/... to create a filesystem:

% grml-crypt -f -vvv -text2 format $imgf
Debug - checkId(): accepted, UID matches "0"
Debug - your cryptsetup understands --batch-mode
Notice - Operating on a file
WARN: overwriting file Sources.img
Debug - exec-die: ( losetup /dev/loop1 Sources.img ) ret(0)
Enter LUKS passphrase: 
Debug - exec-warn: ( cryptsetup  --batch-mode --key-size 256 --cipher
aes-cbc-essiv:sha256 --iter-time 1000  luksFormat /dev/loop1 ) ret(0)
Device grml-crypt_Sources.img already exists.
WARN: could not open /dev/mapper/grml-crypt_Sources.img to create a filesystem
on it!; ret(239)
Debug - exec-warn: ( cryptsetup luksOpen /dev/loop1 grml-crypt_Sources.img )
ret(239)
Debug - exec-warn: ( cryptsetup luksClose grml-crypt_Sources.img ) ret(0)
Debug - exec-warn: ( losetup -d /dev/loop1 ) ret(0)
History
Date User Action Args
2011-05-09 23:28:41suntongsetstatus: need-eg -> resolved
messages: + msg3775
2011-05-09 14:39:29mikasetstatus: unread -> need-eg
messages: + msg3752
2011-01-30 17:34:41suntongcreate