simse

Community Developer
  • Posts

    38
  • Joined

  • Last visited

Posts posted by simse

  1. Hello Unraiders,

     

    I've just a released a beta version of a Python module I've been working on for a while now. It's called pyunraid and allows you to communicate with your Unraid server using python. It supports Python 3.4 and up and is available to install via pip. Documentation can be found here: https://pyunraid.simse.io/docs. Pypi page is here: https://pypi.org/project/pyunraid/. Github is here: https://github.com/simse/pyunraid.

     

    I'm not trying to promote myself or anything, I'd just be very happy if some of you would try it out and report any bugs, since I've only been able to test it against my own server.

     

    Install using: pip install pyunraid OR python3 -m pyunraid OR pip3 install pyunraid

     

    Small code sample:

    from pyunraid import Unraid
    
    # Connect to Unraid server
    unraid = Unraid('192.168.0.4', USERNAME, PASSWORD)
    
    # Get all Docker containers
    containers = unraid.containers()
    
    # Restart all containers
    for container in containers:
      container.restart()
      
    # Get all plugins
    plugins = unraid.plugins()
    
    # Print all plugin names
    for plugin in plugins:
      print(plugin.name)

     

  2. I am extremely worried about the situation I am in. Within a very short time, I have lost 6 hard drives. Some times they will fail INSTANTLY, like I'll boot the server up, it will say the drive has failed and can't be used. I have tried switching the HBA to no avail. The drives that are only failing, only fail on a certain row of my chassis, which is something along the lines of a Norco RPC-3216. Is it possible that the actual backplane is causing some sort of short circuiting or something that's causing the drives to fail? I've currently lost 3 Seagate Barracudas (bad purchase), two WD Reds and a WD Red Pro. When I moved my SSD it also failed. When I moved my IronWolf it started showing errors. 

     

    Anybody got suggestions?

  3. I opened up my web UI to find my cache drive spun down, which is weird because it's an SSD. Then I reboot the server, and then it disappeared completely. Then I reseated the SSD and rebooted, and then I could add the SSD back to the cache array. When SSD was dropped the cache array was disabled, because I only have one drive in the cache.

     

    Now comes the strange part, when open the appdata share (which was set to 'cache only') using SMB it's empty. But my Docker containers still read the config just fine, so nothing is changed except, what I can see on SMB. Anybody know what's going on?

    proton-diagnostics-20190510-1310.zip

  4. Brilliant point. But then, I'm curious; I've had 8 drives connect to main SATA controller for 5 years, and not a single drive has failed. 

     

    IF these two WD Red drives connected to LSI controller are indeed failing, that would mean a 100% failure rate (I've had 3 Seagate drives completely fail as well) when connected to the LSI controller. Am I the unluckiest server owner or is there something else? That's all I'm trying to find out. 

  5. I HIGHLY doubt it's the hard drives failing. One is older than the other, and they both report the same type of UNC error at the EXACT same time. This would point to an error with SAS controller or something else.

  6. Thank you for getting back to me. Both SMART tests passed and both disks also bassed a 24 hour badblocks run on initial install. I'm still 99% certain the problem is the SAS card or cable and NOT the drives.

  7. Hello everyone,

     

    I have a SAS controller card flashed to IT mode, I am not 100% sure which card it is, but it was recommended on the Unraid Wiki, and believe it's an IBM ServeRaid. It's been working great for about two years, but a week ago, the 2 drives that are connected to it are throwing read errors. They are very few, and the array seems to be running just fine.

     

    I would like to know, if anyone could suggest what might be wrong, or things I should check. I've already ordered a new card and a new SAS to SATA splitter cable. Could it be a software issue? Could it be a power issue? Could it be a firmware issue? Could it be a temperature issue?

     

    I hope the fantastic community here at Unraid, can help me out.

     

    Cheers! 

  8. Good news!

     

    I made good progress writing the initial API logic and reading and decoding the .ini files found in unRAID. I don't currently have my server on hand so I can't test right now. The first version here, won't work on a server. Rather you should try it on a computer. This project is written in Visual Studio, so I recommend using that.

     

    https://github.com/fattdev/uAgent

     

  9. Hello everyone,

     

    Thank you so much for the support shown so far. I've made my initial progress on the agent I'm planning to write. As I'm not as experienced in unRAID as some of you are, I need your confirmation;

     

    I have determined the current Dynamix webGUI pulls all of its data from

    /var/local/emhttp

    , and I'll therefore be able to write an agent that reads this same data. Dockers are also handled by a Dynamix specific system, but I'll be able to have Python communicate with the Docker installation on the unRAID system.

     

    As a bonus, I'm writing the agent as a RESTful API, as I know many have been wanting this. This creates the opportunity for people to write their UIs, integrate it deeply with their system or anything else crazy and awesome.

     

    If anyone is interested in helping me write the agent, please do reach out, as I am definitely not best fit for this exact task. Thank you again.

     

    -Simon

  10. Your other option is to manually download those .plg files, toss them on the flash drive somewhere, then within the plugins tab, navigate and select the .plg and install it that way.  Hopefully the vpn will allow the plg to hit github to download the .txz

     

    That works somewhat. But now I'm seeing a new problem.

    +==============================================================================
    | Skipping package community.applications-2016.12.05 (already installed)
    +==============================================================================

    It's skipping CA, even though it's nowhere to be found.

     

    I see it in the plugin list. But there's no 'apps' in the navbar.