Ubuntu 8.04: BD Decrypt fails when not root

The place to discuss linux version of MakeMKV
Post Reply
drewg
Posts: 8
Joined: Fri Jul 30, 2010 4:55 pm

Ubuntu 8.04: BD Decrypt fails when not root

Post by drewg »

Hi,

I just downloaded the linux version of makemkv. I'm having a problem on Ubuntu 8.04 where I cannot "open" the BD drive when running as myself. When running with sudo, it works fine. From the log:

Code: Select all

Debug log started at Fri Jul 30 16:50:14 2010 , written by MakeMKV v1.5.8 linux(x64-release)
Using 524544KB for read cache.
001005:0000 MakeMKV v1.5.8 linux(x64-release) started
001004:0000 Debug logging enabled, log will be saved as /home/gallatin/MakeMKV_log.txt
001003:0020 DEBUG: Code 0 at ={DN#c^S5134#z2N;qsM:213130122
003007:0000 Using direct disc access mode
005050:0000 Evaluation version, 30 day(s) out of 30 remaining
002004:0000 Error 'Posix error - Bad address' occured while issuing SCSI command A30..0020..03F to device 'SG:dev_11:0'
001003:0020 DEBUG: Code 0 at ignu8RP|m4#$JnQ#4G$g:29394390
002004:0000 Error 'Posix error - Bad address' occured while issuing SCSI command A30..0020..07F to device 'SG:dev_11:0'
<...lots more deleted...>
001003:0020 DEBUG: Code 0 at ignu8RP|m4#$JnQ#4G$g:29394390
001003:0020 DEBUG: Code 0 at @`OX9g~)M'ig0<G-!1:29394183
002004:0000 Error 'Scsi error - ILLEGAL REQUEST:COPY PROTECTION KEY EXCHANGE FAILURE - KEY NOT ESTABLISHED' occured while issuing SCSI command AD010..080002400 to device 'SG:dev_11:0'
001003:0020 DEBUG: Code 0 at ignu8RP|m4#$JnQ#4G$g:29393930
001003:0020 DEBUG: Code 0 at @`OX9g~)M'ig0<G-!1:121262716
001003:0020 DEBUG: Code 4 at @`OX9g~)M'ig0<G-!1:213130191
003306:0000 Can't read AACS VID from disc - most likely current AACS host certificate is revoked by your drive
003303:0000 The volume key is unknown for this disc - video can't be decrypted
001003:0020 DEBUG: Code 0 at N*TAs9R> X6>Mhm$GyG:121263590
001003:0020 DEBUG: Code 0 at N*TAs9R> X6>Mhm$GyG:29396943
005010:0000 Failed to open disc
When it was running, I checked lsof and it appeared to have just /dev/scd0 open (not /dev/sg*). I do have read/write perms on that device (a Samsung BD drive):

Code: Select all

% ls -l /dev/scd0 
brw-rw----+ 1 root cdrom 11, 0 Jul 30 11:55 /dev/scd0
% groups
gallatin adm dialout cdrom floppy audio dip video plugdev fuse lpadmin admin vboxusers mythtv sambashare kvm
% uname -a 
Linux thunder 2.6.24-28-generic #1 SMP Wed May 26 23:34:09 UTC 2010 x86_64 GNU/Linux
% dmesg | grep SAMSUNG
[   55.126035] ata6.01: ATAPI: SAMSUNG  DVDWBD SH-B083L, SB01, max UDMA/100
[   55.301000] scsi 5:0:1:0: CD-ROM            SAMSUNG  DVDWBD SH-B083L  SB01 PQ: 0 ANSI: 5
Any idea what the problem could be? I prefer not to run things as root.

Again, it seems to open the disc and list the titles as root. I'm extracting an mkv right now..

Speaking of that, the extraction seemed fairly slow at first, and I was worried it was going to fail. It seems to speed up and slow down a lot. I'm extracting the feature on Toy Story 2, and it seems like it varies between 0.1x (50Kb/s) and 3.6x (15.6MB/s). Is that just seeking between different files that make up the movie? (like the various subtitle and audio tracks?).

Thanks,
Drew
mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by mike admin »

Is your user a member of cdrom group?
drewg
Posts: 8
Joined: Fri Jul 30, 2010 4:55 pm

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by drewg »

mike admin wrote:Is your user a member of cdrom group?
Yes -- see output from "groups" command in the above message. Other commands that access the cdrom (like eject, k9copy) work fine, that is why it is so strange. I've had this box for 2+ years now, and never had a problem ripping a dvd (using k9copy).

Drew
mzilikazi
Posts: 6
Joined: Tue Apr 27, 2010 1:31 am

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by mzilikazi »

Dunno if it's related but did you see this thread?
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=1350
mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by mike admin »

Apart from checking on /dev/shm as suggested by mzilikazi please try to run

Code: Select all

strace makemkvcon info disc:0
under root and regular user and then diff output. Thanks.
drewg
Posts: 8
Joined: Fri Jul 30, 2010 4:55 pm

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by drewg »

/dev/shm is fine. lsof shows shmem segments open:

Code: Select all

% lsof -n | grep shm | grep makemkv
makemkvco  8713    gallatin  DEL       REG               0,19                30719 /dev/shm/makemkvshm2209
makemkvco  8713    gallatin  DEL       REG               0,19                30720 /dev/shm/sem.PvrmVQ
makemkvco  8713    gallatin  DEL       REG               0,19                30721 /dev/shm/sem.dqt0Qv
makemkvco  8713    gallatin    6u      REG               0,19     65800      30719 /dev/shm/makemkvshm2209 (deleted)
makemkvco  8764    gallatin  DEL       REG               0,19                31226 /dev/shm/makemkvshm223c
makemkvco  8764    gallatin  DEL       REG               0,19                31227 /dev/shm/sem.zKpNJa
makemkvco  8764    gallatin  DEL       REG               0,19                31228 /dev/shm/sem.Pcde3C
makemkvco  8764    gallatin    7u      REG               0,19     65800      31226 /dev/shm/makemkvshm223c (deleted)
I've attached the diff output gzipped. The main difference I saw was root had fewer env. variables set. So I used a different user w/a cleaner env, and I still could not decrypt the disk. The other obvious difference I happened to notice is that setpriority() fails for a user account, but succeeds for root.

Thanks,

Drew
mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by mike admin »

drewg wrote:I've attached the diff output gzipped.
Where? :)
drewg
Posts: 8
Joined: Fri Jul 30, 2010 4:55 pm

Re: Ubuntu 8.04: BD Decrypt fails when not root

Post by drewg »

Lets try the attachment again..

Drew
Post Reply