docker-ripper: MakeMKV does not accept key, so ripper.sh is unable to recognize disc types
Have you read and understood this part of the readme?
[X] YES
Hi,
I haven’t used the ripper for a while now, but it’s now suddenly unable to recognize disc types.
It’s just ejecting discs.
I use it on unraid with “manual-latest”
When I run the container unprivileged, I receive the following error:
*** Running /etc/my_init.d/10_syslog-ng.init...
[2025-01-21T14:59:14.883291] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 4.3 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.25'
[2025-01-21T14:59:14.884135] WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='stats_freq', change='Use the stats() block. E.g. stats(freq(1));', location='/etc/syslog-ng/syslog-ng.conf:10:4'
[2025-01-21T14:59:14.890210] WARNING: The internal_queue_length stat counter has been renamed to internal_source.queued; config-version='3.25'
*** Running /etc/my_init.d/ripper.sh...
*** Running /etc/my_init.d/web.sh...
*** Booting runit daemon...
*** Runit started as PID 42
Jan 21 14:59:14 872a5cbe2cf4 syslog-ng[13]: syslog-ng starting up; version='4.3.1'
Using this daily? Please sponsor me at https://github.com/sponsors/rix1337 - any amount counts!
Using MakeMKV beta key: T-lp4bZXFohCJOKraCftH2Z@oExMkXXEcuqsd8wNs3qjNSYf2Y1BQqIkJpxOCbBo@KTV
Use: makemkvcon [switches] Command [Parameters]
Commands:
info <source>
prints info about disc
mkv <source> <title id> <destination folder>
saves a single title to mkv file
backup <source> <destination folder>
backs up disc to a hard drive
f <args>
run universal firmware tool
reg <key string or file name>
enter registration key into program
Source specification:
iso:<FileName> - open iso image <FileName>
file:<FolderName> - open files in folder <FolderName>
disc:<DiscId> - open disc with id <DiscId> (see list Command)
dev:<DeviceName> - open disc with OS device name <DeviceName>
Switches:
-r --robot - turn on "robot" mode, see http://www.makemkv.com/developers
Starting web ui
21.01.2025 14:59:17 : Starting Ripper. Optical Discs will be detected and ripped within 60 seconds.
SEPARATERAWFINISH: false
EJECTENABLED: true
TIMESTAMPPREFIX: false
JUSTMAKEISO: false
ALSOMAKEISO: false
STORAGE_CD: /out/Ripper/CD
STORAGE_DATA: /out/Ripper/DATA
STORAGE_DVD: /out/Ripper/DVD
STORAGE_BD: /out/Ripper/BluRay
DRIVE: /dev/sr0
BAD_THRESHOLD: 5
DEBUG: true
DEBUGTOWEB: false
MINIMUMLENGTH: 600
[DEBUG] 21.01.2025 14:59:17: Script start.
[DEBUG] 21.01.2025 14:59:17: Starting main function.
[DEBUG] 21.01.2025 14:59:17: Cleaning up temporary files.
/
Jan 21 14:59:17 872a5cbe2cf4 cron[45]: (CRON) INFO (pidfile fd = 3)
Jan 21 14:59:17 872a5cbe2cf4 cron[45]: (CRON) INFO (Running @reboot jobs)
[DEBUG] 21.01.2025 14:59:17: Temporary file cleanup completed.
[DEBUG] 21.01.2025 14:59:17: Checking disc.
[DEBUG] 21.01.2025 14:59:18: INFO: DRV:0,256,999,0,"","",""
21.01.2025 14:59:18 : Unexpected makemkvcon output: DRV:0,256,999,0,"","",""
[DEBUG] 21.01.2025 14:59:18: Unexpected makemkvcon output.
[DEBUG] 21.01.2025 14:59:18: Processing disc type.
21.01.2025 14:59:18 : Disc type not recognized.
[DEBUG] 21.01.2025 14:59:18: Disc type not recognized.
Ejecting disc Succeeded
[DEBUG] 21.01.2025 14:59:19: Ejecting disc succeeded.
[DEBUG] 21.01.2025 15:00:19: Cleaning up temporary files.
/
[DEBUG] 21.01.2025 15:00:19: Temporary file cleanup completed.
[DEBUG] 21.01.2025 15:00:19: Checking disc.
[DEBUG] 21.01.2025 15:00:21: INFO: DRV:0,256,999,0,"","",""
21.01.2025 15:00:21 : Unexpected makemkvcon output: DRV:0,256,999,0,"","",""
[DEBUG] 21.01.2025 15:00:21: Unexpected makemkvcon output.
[DEBUG] 21.01.2025 15:00:21: Processing disc type.
21.01.2025 15:00:21 : Disc type not recognized.
[DEBUG] 21.01.2025 15:00:21: Disc type not recognized.
Ejecting disc Succeeded
[DEBUG] 21.01.2025 15:00:23: Ejecting disc succeeded.
When I run it as privileged user, my drive is recognized but nothing happens after starting it.
*** Running /etc/my_init.d/10_syslog-ng.init...
[2025-01-21T15:03:53.855175] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 4.3 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.25'
[2025-01-21T15:03:53.856225] WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='stats_freq', change='Use the stats() block. E.g. stats(freq(1));', location='/etc/syslog-ng/syslog-ng.conf:10:4'
[2025-01-21T15:03:53.863000] WARNING: The internal_queue_length stat counter has been renamed to internal_source.queued; config-version='3.25'
*** Running /etc/my_init.d/ripper.sh...
*** Running /etc/my_init.d/web.sh...
*** Booting runit daemon...
*** Runit started as PID 42
Jan 21 15:03:53 450e5f24b55f syslog-ng[13]: syslog-ng starting up; version='4.3.1'
Using this daily? Please sponsor me at https://github.com/sponsors/rix1337 - any amount counts!
Using MakeMKV beta key: T-lp4bZXFohCJOKraCftH2Z@oExMkXXEcuqsd8wNs3qjNSYf2Y1BQqIkJpxOCbBo@KTV
Use: makemkvcon [switches] Command [Parameters]
Commands:
info <source>
prints info about disc
mkv <source> <title id> <destination folder>
saves a single title to mkv file
backup <source> <destination folder>
backs up disc to a hard drive
f <args>
run universal firmware tool
reg <key string or file name>
enter registration key into program
Source specification:
iso:<FileName> - open iso image <FileName>
file:<FolderName> - open files in folder <FolderName>
disc:<DiscId> - open disc with id <DiscId> (see list Command)
dev:<DeviceName> - open disc with OS device name <DeviceName>
Switches:
-r --robot - turn on "robot" mode, see http://www.makemkv.com/developers
Starting web ui
21.01.2025 15:03:56 : Starting Ripper. Optical Discs will be detected and ripped within 60 seconds.
SEPARATERAWFINISH: false
EJECTENABLED: true
TIMESTAMPPREFIX: false
JUSTMAKEISO: false
ALSOMAKEISO: false
STORAGE_CD: /out/Ripper/CD
STORAGE_DATA: /out/Ripper/DATA
STORAGE_DVD: /out/Ripper/DVD
STORAGE_BD: /out/Ripper/BluRay
DRIVE: /dev/sr0
BAD_THRESHOLD: 5
DEBUG: true
DEBUGTOWEB: false
MINIMUMLENGTH: 600
[DEBUG] 21.01.2025 15:03:56: Script start.
[DEBUG] 21.01.2025 15:03:56: Starting main function.
[DEBUG] 21.01.2025 15:03:56: Cleaning up temporary files.
/
Jan 21 15:03:56 450e5f24b55f cron[45]: (CRON) INFO (pidfile fd = 3)
Jan 21 15:03:56 450e5f24b55f cron[45]: (CRON) INFO (Running @reboot jobs)
[DEBUG] 21.01.2025 15:03:56: Temporary file cleanup completed.
[DEBUG] 21.01.2025 15:03:56: Checking disc.
[DEBUG] 21.01.2025 15:03:57: INFO: DRV:0,1,999,0,"BD-RE HL-DT-ST BD-RE BP40NS20 ML01 KVGD82D0931","","/dev/sr0"
[DEBUG] 21.01.2025 15:03:57: Detected disc type: open
21.01.2025 15:03:57 : Disc tray open, checking again in 1 minute.
[DEBUG] 21.01.2025 15:03:57: Disc tray open, checking again in 1 minute.
[DEBUG] 21.01.2025 15:04:57: Cleaning up temporary files.
/
[DEBUG] 21.01.2025 15:04:57: Temporary file cleanup completed.
[DEBUG] 21.01.2025 15:04:57: Checking disc.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 36 (28 by maintainers)
Commits related to this issue
- Ensure HOME is available - this might fix #132 — committed to edgd1er/docker-ripper by deleted user 2 years ago
@veerpandya thanks for the thorough investigation. I also kept looking but didn’t stumble upon the above.
Just pushed https://github.com/rix1337/docker-ripper/commit/c632f4542cbabaf6e02efa3e891dbc0154ef7d66 which contains the proposed solution.
If you confirm It works, we can finally resolve this issue.
Big ❤ for the support
@veerpandya NICE! it seems to be working. I am closing this.
Will reopen in case of any remaining issues.
I just tried jlesages MakeMKV GUI container and it also fails to set up the latest beta key.
According to this issue over there, this is a bug with MakeMKV - so nothing we can do about it currently: https://github.com/jlesage/docker-makemkv/issues/237
If anyone is willing to provide me with a paid MakeMKV key I can at least debug if this issue is purely related to the beta key not being accepted by the current release. Else someone with bash skills AND a paid key needs to debug this further while I am pausing.
@rix1337 Yes I can confirm that if I manually run both the reg command and the script then everything works. It does seem to be something with the startup script. After manually running
makemkvcon reg $KEYand then running/config/ripper.shwithin the bash session inside the container it’s able to correctly detect the disc type and doesn’t show the not recognized error. But this is only if I run the script manually while still inside the container. The script process that was started automatically by the container still doesn’t work. Here are my logs from the startup script:Looks like for some reason when
makemkvcon reg $KEYruns via that script it fails withFailed to store key in preferences.I hate it but it literally just worked for me. Try cleaning your DVD drive lens. Nothing fancy, just a little glass/lens/eyeglass cleaner and a microfiber rag. I can’t believe it just worked.
Alright, yea could be indeed an hardware issue. Thanks anyway for your help!
(Just checked and you are right 👀 )
Well, past-sponsor would be the correct term here. 😄
I honor ur work and effort, but life seems to become more of a subscription and I already donate with the little I have, what I think is worth supporting.
Dont worry. I remember a good communication and problem solving.
Absolutely makes sense. Only problem is that the state aint changing when run privileged. It somehow freezes.
[DEBUG] 21.01.2025 15:03:57: INFO: DRV:0,1,999,0,“BD-RE HL-DT-ST BD-RE BP40NS20 ML01 KVGD82D0931”,“”,“/dev/sr0” [DEBUG] 21.01.2025 15:03:57: Detected disc type: open 21.01.2025 15:03:57 : Disc tray open, checking again in 1 minute. [DEBUG] 21.01.2025 15:03:57: Disc tray open, checking again in 1 minute. [DEBUG] 21.01.2025 15:04:57: Cleaning up temporary files. / [DEBUG] 21.01.2025 15:04:57: Temporary file cleanup completed. [DEBUG] 21.01.2025 15:04:57: Checking disc.
It logs “Checking disc.” but in reality nothing happens. Disc aint spinning nor does the tray open by itself. It wont recognize when I open and insert a disc. It also doesn’t log everything that happens after the initial start. It’s unusual compared to half a year ago. The only way I get a feedback, is when I start the container unprivileged. It then continously opens the disc tray.