Jump to content

XtyX

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by XtyX

  1. Everything was working perfectly with Tdarr until I updated the Server & Node yesterday to 2.00.12.  The videos (all .webm) are no longer transcoded but are moved in Tdarr to Transcode: Success/Not required with the error "☒File is not video undefined".

     

    My setup for .webm videos:

     

    Tdarr Server on Unraid

    Tdarr Node on Win 10

     

    Library Transcode options:

    Plugin Stack: Off

    Video: On - Handrake (-Z "Fast 1080p30")

     

    Note:  I have another library using the same as above with Handrake (-Z "Fast 1080p30") which is still working fine.  The only difference is the video files are .mkv.

     

    image.thumb.png.44379acee68931ee60b14b6574c9f115.png

     

    FYI - Downgraded the Server & Node to 2.00.11 and it works fine

  2. Hi Guys,

     

    I am currently learning Python and have started to learn Flask (Web Framework).  I have created a simple Web App and since I have unRAID I thought I would try to get it running in a Docker Container.  I played around and got it running with a few base images such as ubuntu:18.04 & python:3-alpine without persisting any data.

     

    So I have decided to try and tackle the task of persisting data.  I am using a SQLite database via SqlAlchemy (ORM) & the app saves user uploaded images.  I have been able to get it all working with the exception of permissions (The directories/files created are still owned by root).  I decided to try using linuxserver's Ubuntu base image thinking that might solve my issue but no luck so far.

    Here is what I have:

     

    Dockerfile

    #LinuxServers base Ubuntu image
    FROM lsiobase/ubuntu:bionic
    
    #Update & Install Python, PIP & Virtual Environments
    RUN apt-get update && apt-get install \
        -y python3 python3-pip python3-venv
    
    #Set Work Directory
    WORKDIR /app
    
    #Copy the App
    COPY . /app
    
    #Create Virtual Environment
    RUN python3 -m venv /app/venv
    
    #Activate Virtual Environment and install dependencies
    RUN . /app/venv/bin/activate && pip install -r requirements.txt
    
    #Expose Flask Port
    EXPOSE 5000
    
    #Directory to store App's DB & Images
    VOLUME /config
    
    #Run the App
    CMD . /app/venv/bin/activate && exec python run.py

    (I know I don't need to run the App in a Virtual Environment but was I doing it to learn how Python venv works)

     

    run.py (The python file that creates the DB + Image folder in /Config and starts the App)

    import os
    import shutil
    from mywebapp import app
    from mywebapp import db
    
    #Create the database if it does not exist
    def createdb():
        if not os.path.exists('/config/site.db'):
            db.create_all()
            
    #Create the images directory if it does not exist and copy the default image
    def createimgagefolder():
        if not os.path.exists('/config/images'):
            os.mkdir('/config/images')
        if not os.path.exists('/config/images/default.png'):
            project_root = os.path.abspath(os.path.dirname(__file__))
            defaultimgpath = os.path.join(project_root, 'myapp', 'static', 'img', 'default.png')
            shutil.copyfile(defaultimgpath, '/config/images/default.png')
            
    if __name__ == '__main__':
        createdb()
        createimgagefolder()
        #host must be 0.0.0.0 to be accessed from outside the containter
        app.run(host='0.0.0.0')

     

    __init__.py (I included this as this defines the location of the database: /config/site.db)

    from flask import Flask
    from flask_sqlalchemy import SQLAlchemy
    
    app = Flask(__name__)
    
    #Location of database
    app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////config/site.db'
    
    db = SQLAlchemy(app)
    
    #Import blueprints & register them
    from myapp.settings.routes import appsettings
    from myapp.posts.routes import posts
    from myapp.main.routes import main
    app.register_blueprint(appsettings)
    app.register_blueprint(posts)
    app.register_blueprint(main)

    docker run command

    run -d --name='myapp' --net='bridge' --cpuset-cpus='1,3,5,7,9,11' -e TZ="America/Denver" -e HOST_OS="Unraid" -e 'PUID'='99' -e
    'PGID'='100' -p '5000:5000/tcp' -v '/mnt/user/appdata/myapp':'/config':'rw' 'mydockerhubacct/myapp'

    So as I stated above the creation of db, image folder and copying of the default.png works but they are all owned by root.  My understanding is that docker runs all of its containers under the root user domain.  So i tried adding USER 99:100 to the docker file thinking that if the app was run as 99:100 then it would create the db and image folder as 99:100 but I get a mkdir permission error.

     

    I also tried changing the ownership after creation in run.py

    #Create the database if it does not exist
    def createdb():
        if not os.path.exists('/config/site.db'):
            db.create_all()
    	os.chown('/config/site.db', uid=99, gid=100)

    This works but doesn't seem like a great solution as I would also need to code it in my function that saves the images users upload.

    I have spent hours trying to figure out how others are doing this (such as LinuxServers Radarr, Sonarr etc) by reading their Dockerfiles and following it back to the Github repositories but it's got me stumped.

    Any help would be immensely appreciated! I am learning python, Flask, Docker etc. on my own and don't really have a teacher or mentor to ask any questions.

     

    I also want to thank Limetech for unRaid because that's what got me down the path of learning to code and experiment with Docker, and so far I am really enjoying it.

    Thanks guys!

  3. I purchased an LSI 9201-8i from Ebay (Seller has pre-flashed to IT Mode)

     

    https://www.ebay.ca/itm/Genuine-LSI-6Gbps-SAS-HBA-LSI-9201-8i-9211-8i-P20-IT-Mode-ZFS-FreeNAS-unRAID/162958581156?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649

     

    The card is not recognized when inserted.  I do not see the cards Bios screen on boot.  The cards heartbeat light does not flash nor the activity lights. 

    However there is a single small green LED that does light up when the card is inserted.  Which I believe is the one circled in the pic below.

    image.thumb.png.6215c52b756f3b9967f1e060b1216f21.png

     

     

    Troubleshooting I have tried:

     

    • Tested all PCIE slots with GPU (All work)
    • Tried in all 3 PCIE slots
    • Updated to the latest version of the MB Bios (4.10) - http://www.asrock.com/MB/Intel/Z370 Extreme4/index.asp#BIOS
    • BIOS -> Boot -> CSM (Compatibility Support Module) -> Launch Storage OpROM Policy - I have tried changing this from "Legacy" to "UEFI only"
    • BIOS -> Chipset Configuration -> PCIE Link Speed - Options "Auto", Gen 1, Gen 2 & Gen 3.  - Have tried Auto & Gen 2

     

    I have not tested this in another PC yet as I don;t have a spare, however I could probably find someone to test it for me if needed.

     

    Is this card not compatible with the Asrock Z370 Extreme4 MB or perhaps the card is dead?  Any help/suggestions appreciated?

  4. I created a topic already it seems more appropriate here.

     

    I just installed unRAID and I am trying to pass through the onboard video Asrock Z370 Extreme4/I7 8700K (Intel IGD - UHD 630 iGPU) to a Windows 10 VM and just get a black screen when starting the VM.

    image.png.bdcc7afd9323546968b98204f1accbe4.png

     

    I am able to VNC when using all VM settings. I have installed Team Viewer and have been able to connect but only when using OVMF BIOS.  I have also tried every combination of VM setup possible.  Double checked all my Asrock BIOS settings, including setting Onboard Graphics as Primary Display etc..

     

    IGD is in its own IOMMU group

    IOMMU group 1:	[8086:3e92] 00:02.0 VGA compatible controller: Intel Corporation Device 3e92

    And the Intel Device 00:2:0 is listed under GRAPHICS CARD in VM Setup.

    image.png.fa349368c1d2cbfd08cd225c929fecee.png

     

    I did a lot of reading and it appears that perhaps the new Coffee Lake's iGPU may not be supported yet. 

     

    Has anyone tried IGD pass through with an 8th gen?

     

    Any help is much appreciated.

    IOMMU group 0:	[8086:3ec2] 00:00.0 Host bridge: Intel Corporation Device 3ec2 (rev 07)
    IOMMU group 1:	[8086:3e92] 00:02.0 VGA compatible controller: Intel Corporation Device 3e92
    IOMMU group 2:	[8086:a2af] 00:14.0 USB controller: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller
    [8086:a2b1] 00:14.2 Signal processing controller: Intel Corporation 200 Series PCH Thermal Subsystem
    IOMMU group 3:	[8086:a2ba] 00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
    IOMMU group 4:	[8086:a282] 00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
    IOMMU group 5:	[8086:a2e7] 00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
    IOMMU group 6:	[8086:a290] 00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
    IOMMU group 7:	[8086:a291] 00:1c.1 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #2 (rev f0)
    IOMMU group 8:	[8086:a294] 00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
    IOMMU group 9:	[8086:a298] 00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
    IOMMU group 10:	[8086:a2c9] 00:1f.0 ISA bridge: Intel Corporation Device a2c9
    [8086:a2a1] 00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC
    [8086:a2f0] 00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
    [8086:a2a3] 00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller
    IOMMU group 11:	[8086:15b8] 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
    IOMMU group 12:	[1b21:0612] 03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
    IOMMU group 13:	[1b21:2142] 04:00.0 USB controller: ASMedia Technology Inc. Device 2142

     

×
×
  • Create New...