Spyke

Posts

selfhosted·SelfhostedbyCyberpro123

[SOLVED] HandBrakeCLI (via ARM) incorrectly marking first subtitle track as "Forced"

EDIT: Oh my god, sorry, I'm an idiot who forgot that the Jellyfin subtitles setting menu had a save button you needed to press. ALSO, Simultaneously, I posted this earlier than I intended; I thought to myself "OK I'll try this one last thing and if that doesn't work then I'll give up and ask for help", and then went and wrote this post while I waited for the DVD to rip - and then I went and posted it as soon as I was done writing, without waiting for the one last attempt to finish. It turns out that removing the --subtitle scan flag fixes the problem. So I double shouldn't have posted this. Sorry for taking up your time, I saw an option to hide this post so I think I'll be doing that now.

First, this doesn't seem like quite the right community to post this in, but I couldn't find a better fitting one on Lemmy, and I'd prefer not to dust off my Reddit account if I don't have to. If you know of somewhere better for me to post this please let me know

I'm trying to use Automatic Ripping Machine (ARM) to copy my DVD collection onto my home server for playback with Jellyfin. I want the subtitles on the Jellyfin versions of my shows to work the same as playing the DVDs on my blu-ray player: Off by default, available when desired. After some googling I found that in order to have the subtitles on the disc to be retained in the files output by ARM (and thus be displayable in Jellyfin) I needed to put the --all-subtitles flag in the HB_ARGS_DVD section of the config file, so that it'd be passed to HandBrakeCLI in the transcoding stage. That worked, the subtitle selector appeared in Jellyfin and had all the options as the DVD does in my blu-ray player, but it introduced a new problem: The first subtitle track gets incorrectly marked as "Forced", and is selected by default in Jellyfin even when I set my Jellyfin user's subtitle settings to "None".

I have tried and tried and tried but no search term I've come up with has found me somebody who had this same problem. I found that the -F option that was included in HB_ARGS_DVD by default is short for --subtitle-forced, which marks the first subtitle track as forced when given without an argument, but removing the -F from the config file and recreating the ARM docker container did nothing to fix the issue. Replacing the -F with --subtitle-forced='none' or --subtitle-forced=none also didn't work, and neither did adding --subtitle-default=none or --subtitle-default='none'

My current setting for HB_ARGS_DVD is --subtitle scan --all-subtitles --subtitle-burned=none --subtitle-default=none, which still has the issue. The only lead I have left is to use an external program called "MKVToolNix" to manually set the subtitle track as not forced for every single video file, but

  1. I'd rather fix the tool I'm already using than add an extra step to the DVD ripping process if possible
  2. I tried using MKVToolNix earlier and couldn't get it to do what I wanted

A way to make Jellyfin disregard the "Forced" flag and treat the subtitle track normally would also work in my case but that seems less likely to exist than a way to fix HandBrake.

View original on lemmy.world
12
selfhosted·SelfhostedbyCyberpro123

"Client.Timeout exceeded while awaiting headers" when pulling Docker image via OpenMediaVault UI.

My household has recently bought some smarthome equipment that I'm now obligated to set up and teach my housemates to use, so I've been trying to modify my existing OpenMediaVault server to simultaneously run HomeAssistant in a Docker container.

I've successfully installed omv-extras and openmediavault-compose, and followed this guide up to the end of Step 8. However, whenever I select the HomeAssistant and click "pull" or "up" in order to actually download the HomeAssistant program the standard OMV terminal window thing appears saying "homeassistant Pulling" before seemingly doing nothing for several minutes. Eventually, "** CONNECTION LOST**" appears and I get an error message in the OMV notifications menu.

Here is the error message given:

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/Docker/HomeAssistant Core/HomeAssistant Core.yml' --env-file '/Docker/HomeAssistant Core/HomeAssistant Core.env' --env-file '/Docker/global.env' pull 2>&1':  homeassistant Pulling
 homeassistant Error
Error response from daemon: Get "https://lscr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/Docker/HomeAssistant Core/HomeAssistant Core.yml' --env-file '/Docker/HomeAssistant Core/HomeAssistant Core.env' --env-file '/Docker/global.env' pull 2>&1':  homeassistant Pulling
 homeassistant Error
Error response from daemon: Get "https://lscr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) in /usr/share/openmediavault/engined/rpc/compose.inc:676
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMVRpcServiceCompose->{closure}('/tmp/bgstatus6Z...', '/tmp/bgoutputy2...')
#1 /usr/share/openmediavault/engined/rpc/compose.inc(679): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceCompose->doCommand(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doCommand', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doCommand', Array, Array, 1)
#6 {main}

Here's the "stack":

---
# https://hub.docker.com/r/linuxserver/homeassistant
version: "2.1"
services:
  homeassistant:
    image: lscr.io/linuxserver/homeassistant:latest
    container_name: homeassistant
    network_mode: host
    environment:
      - PUID=1002
      - PGID=100
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
    ports:
      - 8123:8123 #optional
    devices:
      - /path/to/device:/path/to/device #optional
    restart: unless-stopped

While my main goal here is HomeAssistant, I've also tried installing other programs from the 'add from example...' menu (Jellyfin, Beets, and Syncthing) all of which have had similar results. It's probably noteworthy that all of these, from what I can tell, appear to be trying to download from lscr.io, meaning there's a chance the issue is with that website specifically.

Sorry if I haven't provided enough information, I've never seriously attempted to set up Docker before. Feel free to ask for any more information that might be useful. EDIT: Also, sorry if this isn't the right community to ask technical support questions in, if that's the case please let me know somewhere else I should post this instead.

View original on lemmy.world
15

Best practices for transferring an existing Linux installation from one drive to another?

Currently, my desktop computer has two storage devices attached: one 1TB NVME SSD, which has both Windows 10 and Linux Mint 21.2 installed on it (Each OS getting ~ 500 GB), and a 1TB SATA hard drive mostly used for Timeshift backups of the Linux Mint partition (Including my Home folder, for the record).

Later today I'm expecting to receive two more 1TB SSDs. When I've finished the upgrade process, I'd like to have my Linux Mint installation transferred to a RAID 1 array comprised of the two new drives and expand the Windows 10 partition to take up the whole existing SSD.

My current plan for doing this is to use my existing installation USB drive to install a fresh Linux Mint 21.1 installation on the two new drives, then use Timeshift to 'restore' my most recent backup from the existing installation. Is there a better way of going about this that I'm not already aware of?

View original on lemmy.world
50

Despite attempted RAID array, both drives detected individually by all software I've tried.

First of all, I'm sorry if this isn't the best place to post this; but I'm not aware of any more general tech support / PC building / ASUS forums here that I could post this to instead.

I'm trying to turn an old PC of mine built around an Asus M5A78L-M PLUS/USB3 into a home server, part of which means I'd like to have the two 6TB harddrives I've installed in it in a RAID 1 array. The manual, which I found a copy of online, briefly mentions that it supports RAID 0, 1, and 10 for drives in ports 1-4, then says to look for more information in the "RAID/AHCI Supplementary Guide" in the support DVD, which I don't have and can't find online. In the "SATA Configuration" section of the BIOS, I set the "SATA Port1 - Port4" setting from "[IDE]" to "[RAID]", which caused an additional step to start happening in the boot process where something labeled "RAID Option ROM Version 3.0.1540.39" by AMD would scan my drives for several seconds, then show some information on them and prompt me to press control+F to enter a "RAID Option ROM Utility". When I do that it takes me to another screen with 4 options: "View Drive Assignments", "Define LD", "Delete LD", and "Controller Configuration". I go to "Define LD" and it lets me select 1 of 10 slots, and when I select one it allows me to choose its RAID mode from RAID 0, RAID 1 RAID 10, JBOD, or "RAID READY", allows me to change its "Stripe Block" (64 KB or 128 KB for 0 & 10, NA for others), its "Fast Init" (On or Off for all options) its "Gigabyte Boundary" (On or off for the RAIDs, NA for JBOD and "RAID READY"), and shows its "Cache Mode" ("WriteThru" for all except JBOD, which is NA), and gives me a list of all my SATA hard drives and allows me to pick which whether its "Assignment" is N or Y. I set "RAID Mode" to RAID 1, leave Fast Init and Gigabyte Boundary as On, add both drives to the LD and press control+Y to save. It asks me to confirm I'm okay with all the data on the drive being wiped, then gives me an option to choose the LD size manually or choose the biggest available size, which I do. After a few seconds I'm taken back to the Define LD Menu, with an entry in slot #1 - "RAID Mode" is listed as RAID 1, "Total Drv" is 2, "Capacity(GB)" is 1602.95, and "Status" is Functional. No extra prompts are given and everything seems mostly fine. As far as I can tell, the array is set up.

I insert my Linux Mint Installation livedisc and reboot. I open Gnome Discs. it's still showing both discs independently, with no third 6TB drive nor any ~1.6TB drive. I open GParted. It shows both discs independently. I start the Install Linux Mint utility. Once I get to the appropriate part, it's detecting exactly two hard drives, both 6TB. Every other Linux installer I've tried (Debian, OpenMediaVault, Fedora Server) have detected two separate drives and no Raid anything. The two HDDs are connected to SATA ports #3 and #4. I've never set up any sort of RAID array before, and don't know enough about anything to know what exactly I'm doing wrong here. Can anyone help me figure out what the problem is?

View original on lemmy.world
7

You reached the end