Posts by tomstephens89

    Just stumbled across this.

    https://everything.curl.dev/ftp/ftps

    I wonder if this is what is happening. My FTP server is configured for Explicit TLS rather than Implicit (since its deprecated in filezilla server) and that CURL doc says the correct way to handle Explicit FTPS is to use ftp:// and NOT ftps://, but then to add the "--ssl-reqd" flag on the curl command.

    I guess that flag can't be added to the URL in KODI? How about adding |AUTH=tls instead? So ftp://user:pass@http://ftp.myftp.com/Movies|AUTH=tls

    I am trying to make an FTPS connection to a server of mine running filezilla server. Its set to require explicit FTPS (min TLS v1.2) and has a public wildcard certificate (issued by major public CA). This configuration is tested working from various FTPS clients at different locations. Should probably say that I'm a network/infrastructure guy and configure servers/networks/certificates all day long. The FTPS server is good.

    However adding an FTPS connection within the Kodi interface does not work. It cannot make a connection. Upon investigation heres what the client kodi logs and the filezilla server logs show. IP's/Domains changed for privacy of course.

    This is the line of concern:

    Code
    TEXT: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

    From my research, it appears this Curl FTPS library is having a hard time dealing with TLS 1.2 or above and actually looks like its trying to use SSLv3, which of course will fail.

    Any ideas?

    UPDATE:

    On further investigation I have determined that my 18TB Ironwolf Pro is not obeying its configured power/spin down settings when connected to either the Pi4 OR my Laptop using the uGreen USB caddy I have it installed in.

    This one here:

    UGREEN 3.5" Hard Drive Enclosure, USB 3.0 External SATA HDD Caddy for 2.5 3.5 HDD/SSD up to 16TB with 12V 2A Power Adapter, Support UASP and Trim for Windows Linux MacOS, PS4, Xbox, TV, Laptop
    UGREEN 3.5" Hard Drive Enclosure, USB 3.0 External SATA HDD Caddy for 2.5 3.5 HDD/SSD up to 16TB with 12V 2A Power Adapter, Support UASP and Trim for Windows…
    www.amazon.co.uk

    Even when EPC has been completely disabled, or idle_2 and standby_z set for 30 mins, the drive will completely standby within 2 mins when connected to my laptop as well as the Pi. Laptop is running Windows 10 Pro, Pi4 running LibreElec.

    To further this, I have removed the drive from the uGreen USB caddy and installed it in a USB desktop HDD dock. When connected via this different USB>SATA interface, the power settings are working as configured. Head parking and Spin Down occur as specified via the EPC options.

    Conclusion: It seems that certain USB>SATA caddy's/interfaces are interfering with the disk power states and that this is not a LibreElec/KODI issue at all.

    UPDATE:

    I connected my 18TB Ironwolf Pro to my laptop and used the Seagate Seachest tools to disable the EPC idle_a, idle_b, idle_c and standby_z timers.

    This has had no effect but I believe this issue is related to drive sleep state.

    EDIT:

    I have also completely disabled the EPC feature set on the drive but this doesn't appear to have an effect. Infact the drive still spins down.

    Whats happening here? HDD power management broken?

    Playing a video from the SD card pauses and resumes fine.


    Dumping my Seagate EPC settings here:

    Trying to stop my 18TB Ironwolf Pro which is attached via USB to my Pi4 from sleeping so aggressively.

    However I get the below, any ideas? This happens no matter which value I use, 0, 254, 255 etc...

    Code
    LibreELEC:~ # hdparm -B 255 /dev/sda
    
    /dev/sda:
     setting Advanced Power Management level to disabled
     HDIO_DRIVE_CMD failed: Input/output error
     APM_level      = not supported

    Worked out my drive supports EPC.

    See debug log here:

    http://ix.io/3TRK

    Attempted to playback but lost video out at 18:25 ish.

    Noticed this at end of log:

    I can confirm I am also experiencing this problem, as is a friend of mine. Both on the matrix build and both having the same issues as the OP.

    When a video is paused for several minutes, especially if it’s a large 4K video, resume results in audio playback with static video, if the video does play it is out of sync.

    Restarting playback from the menu works.

    Here is a full debug log. Paused and resumed between 30/3/22 18:10-18:20.

    http://ix.io/3TRA

    I am running a Pi4 8Gb, booting from MicroSD. Media is on a locally attached USB HDD. 18TB Ironwolf Pro. LibreElec 10.0.2.

    Thanks

    Disable "adjust refresh rate to match framerate" and I suspect you'll get a picture.

    Your overclock is having the same effect as "hdmi_enable_4kp60=1" and something isn't supporting that.

    Do you have another hdmi cable or 4k display to test with?

    Thanks for the reply. Where do I find that setting? If its within KODI and is Settings > Player > Videos 'Adjust display refresh rate' then its already off.

    I don't see "adjust refresh rate to match framerate" anywhere.