Jump to content

PartyingChair

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by PartyingChair

  1. 33 minutes ago, Rysz said:

     

    Not sure to be honest, this is definitely not normal behaviour for a UPS.

    It should be available because system boot takes long enough, did you try another USB port or cable?

    Update: No dice. But even weirder, "Start Network UPS Tools Service" is set to Yes, but the status is "stopped"

    I have to change it to no, then back to yes for it to start.

     

    Update: seems to be working now. Thank you. I'm using the script. At the end of the day, even if it's a workaround, if it's working, I'm happy

     

    image.thumb.png.657854018fdb13ece9633b4bb98b7745.png

    • Like 1
  2. 5 minutes ago, Rysz said:

     

    Not sure to be honest, this is definitely not normal behaviour for a UPS.

    It should be available because system boot takes long enough, did you try another USB port or cable?

    I've plugged it into a different port, but have not tested yet. I do not have another cable to try at the moment though. 

  3. 4 minutes ago, Rysz said:

     

    It seems your UPS takes longer to get ready for a USB connection than it should.

    I'm not sure what is causing this, as a workaround you can put this in your /boot/config/go file:

    at now + 3 minutes <<< "/etc/rc.d/rc.nut restart | logger"

    Which will restart the NUT services 3 minutes after system boot and it should be ready by then.

     

    The UPS is on the entire time, never turned off, so I worry this won't work all the time. Is there a way to tell NUT to wait longer for the UPS to reply? The fact that it's taking a long time to get ready while it's constantly on is weird. But I must admit, most of the time starting it manually later does work so maybe it will fix it for good.

    (I have not had a single power outage yet - these are simply reboots on the server I have done for various reasons as I change things around and test different things) 

  4. NUT keeps failing on startup. I suspect it's due to high CPU load - as home assistant is also failing on startup since I installed NUT. I'd really just like to add a delay to startup, but if anyone can see anything else that could cause it, see the attached debug package. (I dragged the debug folder as 1 folder and it seems to have submitted it as many different files.. sorry about that)

    BazansUPS.dev.txt nut-dw.cfg.txt nut-dw.plg.txt nut-scanner.txt nut.conf.txt ups.conf.txt upsd.conf.txt upsd.users.txt upsmon.conf.txt upssched.conf.txt xnut-nospam.conf.txt tower-diagnostics-20240423-1343.zip unraid-lsusb.txt unraid-packages.txt unraid-version.txt nut.conf.txt ups.conf.txt upsd.conf.txt upsd.users.txt upsmon.conf.txt upssched.conf.txt xnut-nospam.conf.txt

  5. Hello! 

     

    I am having an issue with the NUT plugin. It fails to start when the server is rebooted. I have to go in and manually start it. I think the CPU load is too high during start up, because it is also causing home assistant to sometimes fail to start. 

    Is there a way I can delay the startup of it so it will start up successfully when the CPU load has dropped?

     

    Thanks in advance.

  6. Hello! 

     

    I use my Mac primarily, but have a windows computer backup. I have been trying to configure a YAML file for a dashboard (startpage) and I am running into an issue when my windows machine can edit it, but my Mac can't. My Mac can only duplicate it, edit the duplicate file, and then I have to put the new file back and delete the old one to make changes. This makes it annoyingly difficult to edit, check changes, edit, check changes. 

    I tried the same thing on my windows computer, and it works pretty flawlessly. I can edit the changes directly in the file without duplicating file and so on. 

     

    I checked the user permission of the file, and they were root root. I ran chmod -R 99:100 which changes them to nobody and user. I disconnected my Mac from the server and then reconnected it. I even restarted my Mac. The issue still exists. 

  7. I had to restart my server by pressing and holding the power button, it was not responding. Once back online, a parity check does not appear to have automatically started. When I try to start one in the UI, nothing happens. I'm not sure if it's running in the background, or if it's not running at all, or what. I have configured unraid to send emails when a parity check starts, haven't receeved that email either like I normally do. When I try to run a parity check, only one thing appears in the logs: 

     

    Apr  9 13:52:56 Tower kernel: mdcmd (44): check correct

     

    Unraid 6.12.10

     

    Any help would be appreciated. I have restarted twice to see if I could get it working.

  8. On 5/17/2019 at 4:23 PM, JoeUnraidUser said:

    Here is a script that will remove directories within a source directory less than a certain size limit.  I used 100M, but you can change it to any size in MB.  The script can be easily changed to KB, GB, TB etc...  Don't forget to set your source directory.

    #!/bin/bash
    
    limit=100M
    source="/mnt/user/Movies"
    
    limit=$(echo $limit | cut -d 'M' -f 1)
    
    for dir in "$source"/*/
    do
    	size=$(du -sBM "$dir" | cut -d 'M' -f 1)
    
    	if (( $limit > $size ))
    	then
    		echo remove: $dir
    		rm -rf "$dir"
    	fi
    done

    removeDirUnderSize.sh 237 B · 30 downloads

    Hey,

     

    I copy and pasted that, the copy and pasted the directory in that I want to finish with this: 

     

    #!/bin/bash

     

    limit=10M
    source="/mnt/user/Media/Ingress/Compressed"

     

    limit=$(echo $limit | cut -d 'M' -f 1)

     

    for dir in "$source"/*/
    do
        size=$(du -sBM "$dir" | cut -d 'M' -f 1)

     

        if (( $limit > $size ))
        then
            echo remove: $dir
            rm -rf "$dir"
        fi


    done

     

     

    But I get error 

    du: cannot access '/mnt/user/Media/Ingress/Compressed/*/': No such file or directory
    /tmp/user.scripts/tmpScripts/Delete empty compressed folders/script: line 12: ((: 10000000 > : syntax error: operand expected (error token is "> ")

     

    This is what the folder looks like, I am trying to deleted the folder ".ISdr1c"

     

    For more info, this is a temporary folder created by handbrake when it is compressing my files. it deletes it on it's own, but I want to automatically turn off handbrake in the morning and when I do that, it DOES leave those folders there. 

     

    Do you know if I need to mofify something in your script to make it work?

     

    Thanks in advance! 

  9. Hello! 

     

    Unsure if this is the right place to ask this, but I have connected my shares to my phone, ipad, and mac, but when I search in spotlight for files on unraid, it just won't find them. Does anyone know a way to let my phone, mac and ipad search these shares/folders?

     

    Thanks

×
×
  • Create New...