Posts by chewitt

    Code
    journalctl > /storage/journal.log && journalctl -f >> /storage/journal.log

    SSH in and run ^ after boot. It will dump the initial log to file then tail/append future journal content to the same file. Now go start something playing until it hangs. The logging task will die when the system hangs but the file will remain on-disk after you power cycle and log back in. Then do:

    a) cat /storage/journal.log | paste

    b) cat /storage/.kodi/temp/kodi.old.log | paste

    Share the URL's and if you're lucky there's a trace of something in the system log that correlates to the kodi old log.

    The Kodi release manager tagged the 21.3 release :)

    The same release manager has then paused the push of release notes and wider rollout after noting a minor issue for a couple of the platforms that Kodi ships binaries for. That seems to be taking time; such is the nature of all-volunteer FOSS projects where folk have real-world commitments that need their attention too.

    Until something changes, the tagged 21.3 release is still the tagged 21.3 release and Kodi still seems to play movies and tv shows. Go watch something instead of obsessing over release numbers.

    There is no need for multiple threads on the same issue so I have merged the latest post into here.

    Using the latest log we can see the following:

    So playback starts at 7:38p, is paused at 8:00pm, resumed at 8:03pm, then the state tracker goes schizoid at 8:43pm. There is nothing in the log to indicate why, but the most logical explanation is the connection to the media source being interrupted.

    Please run "pastekodi" or "journalctl | paste" and share the URL so we can see what the OS is doing around the same time.

    Is there a way to run LibreELEC inside a docker container

    No. You can virtualise an OS with a hypervisor. You can virtualise an app with a container. LE is an OS, not an app.

    So you either install Docker on LE (which exists) and then add (and you support) the containers you need. Or you can run another OS that supports containers and run Kodi via a container (something probably exists). Or you run another OS with a hypervisor and run LE as a guest OS on that hypervisor. An OVA for vmware hypervisors exists for project staff to use for dev work and some users are known to run LE that way. Note that the OVA is unsupported; meaning that all other use of it must be self-supported.

    The "pastekodi" command is probably failing due to the size of the log (limits on the paste server are generous, but there are limits) and the Kodi log is zero value because it's captured hours after boot, so it has rotated and useful info shown during initial startup is no longer present. It also looks like you copy/pasted from a terminal session as some text is truncated (not a major thing..).

    The OS seems to have an issue with the iwlwifi card as this is throwing errors. Not sure it's too important but it adds to the log noise and might indirectly impact on other aspects of boot. Nothing else really stands out to me.

    However, audio capabilities in Kodi are determined from EDID data on the HDMI connection at startup. If Kodi cannot see/find audio hardware either the kernel doesn't detect it, correctly or (more likely in this case) something is messing with EDID data.

    I'll make an educated guess that the HDMI output spec from the NUC is not aligned to the HDMI spec of the input on the AVR, e.g. something like the NUC only supporting 4:2:0 and the AVR requiring 4:2:2. It reads a little like you picked "the best port" for input on the AVR but instead of ensuring best results this could be counter-productive and you might need to swap to another (lesser) input port or experiement with changes to the HDMI spec support of the port to make things work. I'm being a little vague about things here because different vendors name things differently. The important thing to understand is that HDMI is a collection of standards (interpreted by vendors) not 'a' standard.

    I would also experiment with cables (only use HDMI 2.0 certified ones) and the second HDMI port on the NUC, and also external DP to HDMI adapters instead of the HDMI output sockets on the NUC. The reason being that most NUC like boxes omit proper HDMI transciever hardware to save $$ and instead uses an internal DP to HDMI adapter (aka LSPCON chip) which contains closed-source firmware doing magic and imposing unseen limitations on the display chain - they are often oriented towards output on monitors more than TV's. Make sure the BIOS/firmware of the NUC and if separate any LSPCON firmware updates are applied as they can/do contain bugs. The advantage of external DP > HDMI adapters is that they aren't soldered to the motherboard inside the box so you can order a bunch of different ones and experiment until you find one that works. NB: There is also a long-running 'Denon AVR' thread elsewhere in the forums that you can read, but IIRC the main conclusion of that thread is people ditching the internal HDMI ports for external DP > HDMI adapters. The tertiary challenge is that different brands of adapters are available in different parts of the world, and even if the same brand is available there's no guarantee the LSPCON chip and firmware inside the latest batch of adapters is the same as the chip and firmware that someone tested a year ago and worked great. LSPCON chips in NUC boxes has been "the gift that keeps on giving" for HDMI support issues since they first appeared 6-8 years ago.

    Note to self .. I should scrape this text ^ into a wiki article, it's not the first time I had to write it all out long-hand :)

    From the descriptions it sounds like a kernel issue, but without some form of log evidence we really have nothing to research. If you remove "quiet" from kernel boot params in syslinux.cfg it will dump the system log onto the screen during boot. Record the screen as a slow-motion movie and as long as your hands are steady it's normally possible to play the resulting movie back and read the text to spot error messages. Upload load the movie to a sharing site somewhere and we can see it too.

    NB: If LE 12.0 works on the boxes (but not LE 12.2) stick on the earlier release until kodi-headless has a K22 release available. The diff between Kodi versions isn't large so it's not a 'must have' update.

    However I feel a utf-8 unzip would probably help others extracting downloads etc.

    I don't recall this issue coming up before despite umlaut and DVB loving Germans being our largest demographic, and there are multiple workarounds (7z, zipfile, etc.) so I don't see much need to replace busybox unzip with the full-fat version.

    If LE added everything that would 'probably help' it would be a 1.2GB distro download like Ubuntu :)

    This is a super-simple python script to unpack the NPVR.zip file:

    Code
    #!/usr/bin/env python3
    import zipfile
    with zipfile.ZipFile('NPVR.zip', 'r') as z:
        z.extractall('/storage/.kodi/addons/pvr.nextpvr/files/etc')

    Unlike busybox unzip, python 'zipfile' will preserve the filenames, e.g. after unpacking:

    Create /storage/.restore and place the backup file there and reboot. On restart it will be detected, the dirs that will be overwritten will be deleted (/storage/.kodi, /storage/.config, and /storage/.cache) and then the backup is decompressed to /

    You can also use the restore function in the GUI which will copy the file from wherever you have it to /storage/.restore then force a reboot to start the process.

    Or use tar commands to extract files and do other things with the backup file. It's just a standard tar archive.

    Use GParted for scan and repair. This tool can leave bad blocks out during formatting.

    If the device has failing cells it's only a matter of time (and usually not much time) before more cells or the entire card fails.

    If it was just corrupted then reformat with any tool will fix. No need to jump through extra hoops with GParted.