WH16NS60 1.02 - "ILLEGAL REQUEST:INVALID FIELD IN CDB" - Proxmox/TrueNAS/Docker

Forum for discussions about UHD-capable dives
Post Reply
sambarlick
Posts: 1
Joined: Mon Feb 24, 2025 12:55 am

WH16NS60 1.02 - "ILLEGAL REQUEST:INVALID FIELD IN CDB" - Proxmox/TrueNAS/Docker

Post by sambarlick »

Hi everyone,

I'm having trouble getting MakeMKV to work with my LG WH16NS60 Blu-ray drive (firmware 1.02) in a somewhat complex setup. I'm hoping someone with experience with this drive and/or Proxmox/TrueNAS can help.

**The Problem:**

MakeMKV consistently gives me the following error when I try to access the drive:

Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command ... to device 'SG:dev_...'

MakeMKV *can* eject the drive tray, but it cannot read any disc information.

**My Setup:**

* **Drive:** LG WH16NS60 (Blu-ray, DVD, CD writer)
* **Current Firmware:** 1.02
* **Host OS:** Proxmox VE 8.3.4
* **Kernel:** 6.8.12-8-pve
* **Virtualization:**
* The Blu-ray drive is passed through to a TrueNAS SCALE VM (version 24.10.2) using Proxmox's "CD/DVD Drive" passthrough option (SATA bus).
* MakeMKV is running inside a Docker container *within* the TrueNAS SCALE VM, using the `jlesage/makemkv` image. The container is launched using docker compose and is set to `privileged: true`.

**Troubleshooting Steps Taken (Extensive!):**

I've spent several days troubleshooting this, and I've tried *many* things, including:

* **Verified Host Detection:** The Proxmox *host* detects the drive. `cd-info` on the host works.
* **Kernel Modules:** The `ahci` driver is loaded. The `sr_mod` and `cdrom` modules are automatically loaded by the kernel when the drive is detected. I have added these to `/etc/modules` to ensure that this should happen.
* **Proxmox Passthrough:** I'm using the correct "CD/DVD Drive" passthrough option in Proxmox to pass the drive to the TrueNAS VM. The drive appears as `/dev/sr0` inside the TrueNAS VM.
* **TrueNAS Container:** The MakeMKV container is running as `privileged: true` and `user: 0:0`.
* **Permissions:** I've verified (and re-verified) permissions inside the TrueNAS VM and the MakeMKV container. The `/dev/sr0` device inside the TrueNAS VM is owned by `root:cdrom` with permissions `brw-rw----`. The root user inside the container, is a member of the cdrom group.
* **Different `makemkvcon` commands:** I've tried `makemkvcon info disc:0`, `makemkvcon info disc:1`, `makemkvcon info disc:all`.
* **Reinstalled Everything:** I've reinstalled MakeMKV multiple times.
* **Checked dependencies** I have run `ldd /usr/bin/makemkvcon` and there are no missing dependencies.
* I've even tried privileged and unprivileged Proxmox LXCs, the LXCs can see the drive and have the correct permissions, but MakeMKV can't access the drive.

**The Persistent Error:**

Despite all this, MakeMKV consistently gives the "ILLEGAL REQUEST:INVALID FIELD IN CDB" error. This strongly suggests a firmware issue.

**My Questions:**

1. **Recommended Firmware:** Given my setup (WH16NS60, Proxmox host, TrueNAS SCALE VM, MakeMKV in Docker), what is the *recommended* firmware version for my drive? Should I try an "MK" firmware? If so, which specific version? Should I try downgrading?
2. **Flashing Procedure:** What is the *safest* and most reliable way to flash the firmware on my drive, given that I'm running Proxmox? Can I use SDFtool Flasher from the Proxmox *host*? Are there any specific precautions I should take?
3. **Is this even possible?** Has anyone successfully used MakeMKV with a WH16NS60 in a similar setup (Proxmox host -> TrueNAS VM -> MakeMKV container)?
4. **Is there anything I have missed?**

I previously had this drive working perfectly on Windows 11 before switching to Proxmox. I installed firmware from this forum on Windows 11 to make the drive work with MakeMKV on Windows 11.

Any help or guidance would be greatly appreciated! I'm happy to provide any additional information or logs that might be helpful.

Thanks!
Post Reply