Posts by badluck

    I updated flexget and deluge plugins to the latest version and everything worked fine, but yesterday we had a power outage and after booting flexget can't connect to the deluge daemon to add the downloaded torrents.

    Here is part of journalctl


    Do you know what might cause it?

    So the problem is with resolving 'localhost' (which is the default value for "host" settings - flexget deluge plugin).

    I changed it to host: 127.0.0.1 in my config.yml and it works.

    I updated flexget and deluge plugins to the latest version and everything worked fine, but yesterday we had a power outage and after booting flexget can't connect to the deluge daemon to add the downloaded torrents.

    Here is part of journalctl


    Do you know what might cause it?

    If you have SSH enabled and you have either public IP on your LibreELEC machine or have some port forwarding on your router -> You can use SSH port forwarding

    ssh -L <local-port>:localhost:<remote-port> <libreelec-IP> -p <ssh-forwarded-port>

    <local-port> is the port you will put in you VNC client

    <remote-port> is the port the vnc server on you LibreELEC is listening

    <libreelec-IP> is publicly reachable address

    <ssh-forwarded-port> in case your LibreELEC machine does not have public IP - you can specify the port that is forwarded to port 22

    You can end up with something like:

    ssh -L 9999:localhost:5900 192.168.1.1 -p 122

    and then instruct your VNC client to connect to localhost and port 9999.

    Unfortunately you need the xhci_hcd driver to make the controller work (source).

    Even if the USB 3 hub is a dead eg has zero ports?

    Code
    Bus 02.Port 1: Dev 1

    Because the hub I am actually using (the one that acually has ports) is only 2.0 (480M).

    Code
    gt1:/ # lsusb -t
    /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
    /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/3p, 480M
        |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
            |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

    Anyway, if I would know how to disable it, I could at least try it.

    But because it's not module (doesn't appear in lsmod) I can't blacklist it in modprobe.d/.

    OR

    Where to put usbstoragequirks= which should disable it for particular ID (taken from lsusb).

    If the root hub is USB3 then you can't do anything. If it's USB2 then blacklist the xhci_hcd driver.

    It's the USB2 (although the usb controller does support USB3, the S912 does not, so the device does not have USB3 capabilities - as it's been explained to me before).

    But how do I blacklist the xhci_hcd driver?

    Small update:

    After connecting the WD 4TB through the usb hub and the Seagate (Maxtor) M3 directly to the box, the error messages stopped and so far it looks like the drive is working correctly.

    It looks like the WD 4TB doesn't care how it is connected, but the other drives are more picky.

    I have a box (Beeling GT1) with USB 3 external drive(s).

    Some of the drives (WD My Passport 25E1 2TB) really don't like to play with it spamming dmesg log with:

    Code
    66588.736256@6] usb 1-1.3: reset high-speed USB device number 4 using xhci-hcd
    [66588.736292@6] xhci-hcd xhci-hcd.0.auto: Setup ERROR: setup context command for slot 3.
    [66588.816251@6] usb 1-1.3: reset high-speed USB device number 4 using xhci-hcd
    [66588.816289@6] xhci-hcd xhci-hcd.0.auto: Setup ERROR: setup context command for slot 3.
    [66588.896254@6] usb 1-1.3: reset high-speed USB device number 4 using xhci-hcd
    [66588.937029@4] xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep ffffffc06278b980
    [66588.937047@4] xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep ffffffc06278b9c0

    From googling around it is an issue with USB3 and some suggest to simply disable xHCI in BIOS, but that's not really an option with this box - I don't know how to get into BIOS.

    This stackexchange question seems to be about the same problem and one of the answers susggest fixing it by disabling UAS by editing /boot/armbianEnv.txt but it applies for raspbian and such file does not exist in LE.


    Looking at the lsub

    Code
    gt1:/ # lsusb -t
    /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
    /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/3p, 480M
        |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
            |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

    All disks use usb-storage driver, but the root_hub uses xhci which might be the problem?

    So..

    How to disable xHCI/UAS for the root_hub device?

    Sadly "user reports bad behaviour from Amlogic legacy kernel sources" is not surprising or something anyone will investigate. We have abandoned that kernel (which is full of bad, period) in favour of the upstream/mainline kernel which is maintainable, although that work is still ongoing and current test images you can find on Index of / are not fully featured. It's a bit of a "rock and a hard place" situation, sorry.

    Thanks for that reply!

    I was looking for new kszaq's releases but I couldn't find any newer than I am running, so thanks for the link.

    And baring that it might not work - which image is intended for Amlogic S912 with 1Gb Ethernet and 2GB RAM?

    I assume this one LibreELEC-AMLGX.arm-9.80-nightly-20200103-587404e-box.img.gz

    or are the images more generic and not necessary to chose the right 'device tree'?

    Or even better is there a page which describes the different version?

    Hello,

    this is a bit of a follow-up to previous question.

    I have Beelink GT1 (S912) with external drive USB HDD WD My Passport 25E2 (4TB) and when I connected another WD My Passport (2TB) I started getting I/O error (more see the previous question).

    I though maybe the GT1 does not have enough power for both drives so I got USB hub with external power adapter.

    Before I could finish the previous question I wanted to backup my data and got a new drive - Seagate M3 Portable (4TB).

    When I connected the WD 4TB and Seagate M3 (or Maxtor M3) and let it run over night I got dmesg full of this xhci_drop_endpoint and eventually the drive stopped responding - would hang when trying 'ls' the mounted partition.

    Code
    [  131.968297@7] usb 1-1.2: reset high-speed USB device number 4 using xhci-hcd
    [  131.968341@7] xhci-hcd xhci-hcd.0.auto: Setup ERROR: setup context command for slot 3.
    [  132.048257@7] usb 1-1.2: reset high-speed USB device number 4 using xhci-hcd
    [  132.048298@7] xhci-hcd xhci-hcd.0.auto: Setup ERROR: setup context command for slot 3.
    [  132.128261@7] usb 1-1.2: reset high-speed USB device number 4 using xhci-hcd
    [  132.168911@4] xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep ffffffc0620ecd80
    [  132.168929@4] xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep ffffffc0620ecdc0
    [  147.791177@3] xhci-hcd xhci-hcd.0.auto: WARN Event TRB for slot 2 ep 2 with no TDs queued?


    Full log but only with few minutes of runtime, because the overnight log.got cut.

    Dmesg part of the overnight log - dmesg

    23:54:41.332 T:4098046416 NOTICE: ADDONS: Using repository superrepo.kodi.krypton.all

    Kindly remove all video piracy related crap from your Kodi setup as per LibreELEC and Kodi forum rules before asking for more support .

    Also, please use a pastebin website for all logs. We prefer to keep our forum server as clean as possible.

    23:54:40.883 T:4098046416 NOTICE: Disabled debug logging due to GUI setting. Level 0.

    For a proper debug log, enable debugging in Kodi, restart LibreELEC, recreate the problem situation, and provide a new log via a pastebin website near you, e.g. paste.kodi.tv .

    Will remove all crap, enable debugging and post the updated log.

    Sorry and thanks.

    Hi,

    I got Beelink GT1 with LibreELEC and external (USB) HDD (WD My Passport 4TB).

    This setup is working fairly stable.

    Now I wanted to extend the storage with another external drive - WD My Passport 2TB.

    But short after I started using the second HDD dmesg started to fill-up with errors.

    I thought maybe the GT1 can't power both HDD so I got USB hub with external power, but it is the same.

    I actually have two WD My Passport 2TB and both do cause the same error.

    I tried connecting both drives (2TB) to my laptot and copy few GB (~40MB/s) without a problem.

    Anybody has idea what to look for?


    snippet from dmesg:

    Longer dmesg output: https://forum.libreelec.tv


    Versions:

    Code
    gt1:~ # lsb_release
    LibreELEC (community): 8.2.2.3
    gt1:~ # uname -a
    Linux gt1 3.14.29 #1 SMP Sat Jan 6 18:53:48 CET 2018 aarch64 GNU/Linux

    Ok, thanks but the lshw output says there is usb 3.00 with 5000Mbit/ capability. Is it just used as internal bus for ... Ethernet or something?

    Code
    *-usbhost:0
    product: xHCI Host Controller
    vendor: Linux 3.14.29 xhci-hcd
    physical id: 1
    bus info: usb@2
    logical name: usb2
    version: 3.14
    capabilities: usb-3.00
    configuration: speed=5000Mbit/s

    I have a Beelink GT1 with HDMI, 1Gb Ethernet, 2x USB (2.0 + 3.0) and SD card slot or at least they claim.

    I had a problems with external HDD and when I fixed it and connected the disk back to GT1 I was wondering if it is recognised as USB 3.0.

    `lshw` show the device is connected to USB 2.0 port and 3.0 is empty, so I connected it to the other port, but I got the same output.

    So I connected another drive and found out that both visible USB ports are 2.0.

    My question: Where is the USB 3.0 port?

    Is it a fake just for marketing?

    Is it somewhere on the board but not made available on the case?

    <Something else>?

    Best,

    m&M.

    Ok, so my dirty fix is just to copy python packages from service.deluge/lib/python2.7/site-packages to service.flexget/lib/python2.7/site-packages and edit the easy-install.pth to include them.

    Unfortunately I don't have much experience with python installation process.

    Hope this help a bit.

    Hi, I was doing some digging on my own and from flexget site

    Quote
    • If you are installing to a virtualenv, you have to create the virtualenv with the --system-site-packages option so the deluge package can be found. This also applies to a git install.

    I assume this is the approach with addons that they each have their own environment right?

    I believe it needs to have access to the deluge install to use the deluge.ui.client package.

    I do not know how FlexGet interacts with Deluge.

    Please ask FlexGet support and report to me if I should fix.

    Thanks in advance.

    Hi,

    I have a trouble setting up flexget and deluge.

    I am trying to migrate flexget and deluge from my server to my "media center" and the flexget complains it cannot find the deluge plugin.

    Code
    2018-01-20 21:29 CRITICAL task          task-name Plugin `deluge` cannot be used because dependency `deluge` is missing.

    Does the flexget from your repository supports the deluge plugin and if so can/should I specify a path to it or something else that needs to be done?

    FlexGet 8.2.4 by thoradia

    flexget.ctl -V

    2.11.9

    LibreELEC (community): 8.2.2.3


    Thank you in advance.