L0rdRaiden

Members
  • Posts

    568
  • Joined

  • Last visited

Posts posted by L0rdRaiden

  1. I have a user (storage) with read and write access to all my shares

     

    this is my samba configuration

    imagen.thumb.png.5c07a1557e12fc139d3a3b972059ac05.png

     

    So in reallity I have read permisions to all shares but for writting persmisions I can only edit in some folders of some shares. The only clue I have is that those folders are old, they have existed almost since I started with unraid many years ago, by in recently created folders I don't have write permissions.

     

    For example here I can not edit the folders in green, this folders are created by unraid.

    imagen.thumb.png.e20940cabb0e99242826074a65a461c7.png

     

    imagen.png.dd756737836706e1b48674379b08db8f.png

     

    imagen.png.456b98ece97c9bf0959aa6f0e74e9b67.png

    I am using the storage user via SMB, I can edit adguardhome.yaml, but I can not edit adguardhome.yaml.bak

     

    Do you know what could be the issue?  why unraid started to write files and folders with different permisions?

    How can I restore all the file permissions to the "standard"? what are the best practices in unraid?

    Also before I was using Code Server docker to edit configuration files for other dockers, at some point I lost that permisions as well and code server docker can only read files but not edit.

     

    imagen.thumb.png.23a9da27e36dd2ef4a4307f4ba70d570.png

     

    imagen.png.6ff9aeb7ded18068533948026a3eb075.png

     

    imagen.png.9ed6bba3cabc3e1135d356c46ef06c1e.png

     

     

     

  2. On 10/9/2022 at 6:06 PM, SimonF said:

    Yes I think that may be outdated. as I didnt find it either. You should just need to start the service and z: drive will be mapped. I just run the virtiofs.exe for testing without a service.

    I have installed WinFsp and the virtio win drivers from the ISO but when I run virtiofw.exe I don't see new drives or anything. Should it appear automatically?

     

    imagen.png.4d622216e75dc152abf0aedc82824c6b.png

     

    Do you what could be the problem?

     

      <memoryBacking>
        <nosharepages/>    ---------> SHould I delete this line from the XML?
        <source type='memfd'/>
        <access mode='shared'/>
      </memoryBacking>

  3. My network configuration is this one

    imagen.thumb.png.12e7daca51eaba45f52c4fdb3a5108f8.png

     

    This are the docker settings

    imagen.thumb.png.42fab8b006507ccad1e75aaeafb47420.png

     

    Typical docker network configuration

    imagen.png.bcb70ba1bb323a70b5e599fcf25daaba.png

     

    Can anyone help me to understand why the dockers can not access to internet?

     

    The only dockers working are the ones using br0

    imagen.png.32eca3e21daf9bbfc38965663fe90d0c.png

     

     

    The VMs using br1 work fine. So is something that affects only to docker

     

    Thanks in advance

  4. I have 3 x540 and a noctua fan in line they run "hot" but how can I see the real temperature from unraid?

     

    The max power consumption according to specs is 19 watts but any idea what is the normal consumption when running at low speeds or idle?

     

    It's possible to tune up any parameter to improve the consumption?

    • Upvote 1
  5. Cloudflare zero trust offers a free service for web gateway among many other security services related to zero trust.

    https://developers.cloudflare.com/cloudflare-one/

     

    To use the web gateway with http filtering you need to install WARP client on the endpoint (host). Any idea how to configure the whole unraid, host, dockers, vms, to use a proxy service (another host) that will have WARP installed and will route all the traffic to the cloudflare gateway? or at least individual pieces?

    • Like 2
  6. 3 minutes ago, dlandon said:

    In order to support legacy devices using SMB2 and connecting to Unraid shares. the implementation of these security settings will have to be configurable.  Because of the desire to get 6.10 released, it is being held up for now.

     

    For the time being, you can put those settings with a [global] tag in smb-extra.conf.

     

     

    right now it's like this, so it's wrong? Do you mean that I have to add [global] in my config?

    like

    [global]

    server min protocol = SMB3_11

    client ipc min protocol = SMB3_11

    client signing = mandatory

    server....

    imagen.png.43153227743f8a021120ec8b1be6e4e7.png

     

  7. On 3/17/2022 at 6:40 AM, the1poet said:

    Since upgrading one of my servers to 6.10 rc3, my firewall has been reporting suspicious traffic to an IP address 52.40.54.163 in America, originating from my unraid server. Is this an IP address of a server managed by unraid? If so, why after this update is this traffic connecting to an IP address and not to a FQDN?

     

    image.thumb.png.436b2b6c8806ba6957d362969cde9481.png

    Just for curiosity what firewall do you have?

  8. On 3/6/2022 at 1:00 PM, Squid said:

    No.  The message from FCP says invalid folder "cache" within /mnt

     

    In your screenshot it shows "cache".  You do not have a pool named "cache", so something is creating it.  Look first at any docker apps (hit show more settings) for something that has a path mapping directly referencing /mnt/cache  Fix that and reboot and then see what FCP says again

     I am getting again similar errors

     

    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.398776, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.399123, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.399546, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.400016, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.400375, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.400734, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory
    Mar 15 23:54:42 Unraid smbd[6677]: [2022/03/15 23:54:42.401102, 0] ../../source3/smbd/service.c:841(make_connection_snum)
    Mar 15 23:54:42 Unraid smbd[6677]: make_connection_snum: '/mnt/user/appdata' does not exist or permission denied when connecting to [appdata] Error was No such file or directory

    unraid-diagnostics-20220316-0015.zip

    I have no docker using appdata, in fact appdata doesn't exist, but this looks like related with samba, any ideas?

  9. 14 minutes ago, Squid said:

    No.  The message from FCP says invalid folder "cache" within /mnt

     

    In your screenshot it shows "cache".  You do not have a pool named "cache", so something is creating it.  Look first at any docker apps (hit show more settings) for something that has a path mapping directly referencing /mnt/cache  Fix that and reboot and then see what FCP says again

     

    I think this will end up being a mistery, I rebooted because I change the vm.dirty values and now Fix common errors doesn't find the cache folder error

     

    In addition I have reviewed the mounting points of all the dockers as you mentioned and not a single docker is referencing to /mnt/cache

     

     

  10. 41 minutes ago, itimpi said:

    Your original post mentioned getting:

    Mar 6 04:30:05 Unraid root: Fix Common Problems: Error: Invalid folder cache contained within /mnt

    which was my big concern.  If this repeats then it is almost certainly a misconfigured docker container referencing that path.  I do not see this repeated recently so you might want to run Fix Common Problems again to see if that path still exists and if it does look at what that path contains to give you a clue as to what creates it.

     

    I have re run fix common problems and still appears, I think is because this "Remote" folder that I think I created when I had rclone. But now I can't delete it.

     

    imagen.png.4fb53d72a62ba10d6d8015b6f41b0ced.png

     

    And regarding the out of memory errors could be related with this settings? what are the recommended values if I have 32 GB of ram and usually half of it is no being used.

    Disk Cache 'vm.dirty_background_ratio' (%): 2

    Disk Cache 'vm.dirty_ratio' (%): 3

  11. 19 minutes ago, itimpi said:

    You are likely to get better informed feedback if you post your systems diagnostics zip file as without those we are just guessing.

     

    The messages suggest you have something mapped to /mnt/cache (probably a docker container) and you do not have a pool called 'cache'.  This would mean that the /mnt/cache location is in RAM so writing to this that will fill up your RAM.

     

    It might be that I have plex transcode on RAM bust last time plex was used, was like 10 hours before that out of memory error happened.

    I have attached the diagnostic file

     

    imagen.thumb.png.61779469bc89987ab7cd631028dda105.png

    unraid-diagnostics-20220306-1050.zip

  12. I  am getting this errors every 10-15 days or so

     

    Mar 6 04:30:05 Unraid root: Fix Common Problems: Error: Invalid folder cache contained within /mnt
    Mar 6 04:30:08 Unraid root: Fix Common Problems: Error: Out Of Memory errors detected on your server

     

    imagen.png.b713c0a9fdd38367e2ea37b4536f80eb.png

     

    Other related settings

    Disk Cache 'vm.dirty_background_ratio' (%): 2

    Disk Cache 'vm.dirty_ratio' (%): 3

     

    Any Idea how to fix it?

  13. 34 minutes ago, Protheus said:

    You are my Hero!

    After 3 Hours searching for a possibility to daily Backup the Flashdrive or its content i found this script.

     

    And what to say...

    Create Folders

    C&P the Script

    Fill the blanks

    Set the Schedule

    Fire and Forget

     

    Awesome! Thank you

     

    P.S: optional e-mail notification would be nice (i'm not so ften on my unraid gui)

    I have all the Unraid notifications on telegram. I think it was configured from the settings page

  14. 46 minutes ago, Cpt. Chaz said:

    you're on the right track! however the rm syntax requires a target. try this instead

     

    rm -rfv "$dir"*
    echo 'All files deleted'

     

     

    if you want to confirm this works before trying on "mission critical" files, take everything out of $dir. Then cd into the directory, and run this

    touch test1.txt test2.txt
    mkdir testfolder

    this just simply puts in a couple basic files and a directory. If the commands i gave you for section 4 work correctly, it should remove these test files, and the rest of the flow should result in the latest unzipped backup copy of your flash drive.

     

     

    Thanks, it works perfectly  :) I have learnt a lot with you

     

    Together with this Script (the first one in my life) and Kopia I have tune up my backup system 

     

    #!/bin/bash
    /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "OneDrive backup started" -d "Synchronizing Kopia backup to OneDrive" -i "normal"
    echo 'OneDrive backup started'
    
    rclone sync /mnt/user/Backup/Kopia OneDrive:"/Backup/Kopia"
    
    /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "OneDrive backup finished" -d "Synchronization completed" -i "normal"
    echo 'One Drive backup completed'

     

    • Like 1
  15. @Cpt. Chaz  well I am not as good as I though

     

    imagen.thumb.png.1b25f2755061b5ea4f30d5aa70f35eaf.png

     

    For some reason

    • Section 4 for doesn't delete previous zip files but deletes uncompressed files
    • Section 6 fails to unzip the file because I guess there are more than 1 file that matches, right?

    If we can fix section 4 I guess section 6 will work, it should be easy but I am afraid to experiment with the rm command.

     

    Maybe replacing section 4 with this will fix everything?

    cd "$dir"
    rm -rfv
    echo 'All files deleted'

     

  16. 59 minutes ago, Cpt. Chaz said:

    No problem.
     

    Does section 5 not do this for you?

     

    Yes you are right, so I used my advanced skills in scripting programming 😁 and swapped section 4 and 5, so the files are deleted (mtime +0) and then the zip file is moved and unzipped. I won't delete the original zip (section 6) file but I will exclude that file in the backup system.

     

    Now looks perfect for my use case, thanks a lot :)   (EDIT: see next posts, still doesn't work)

     

    #!/bin/bash
    
    #### SECTION 1 ####------------------------------------------------------------------------------------------------------
    #dir = WHATEVER FOLDER PATH YOU WANT TO SAVE TO
    dir="/mnt/user/Backup/UnraidFlash/"
    
    echo 'Executing native unraid backup script'
    /usr/local/emhttp/webGui/scripts/flash_backup
    
    #### SECTION 2 ####------------------------------------------------------------------------------------------------------
    echo 'Remove symlink from emhttp'
    find /usr/local/emhttp/ -maxdepth 1 -name '*flash-backup-*.zip' -delete
    
    sleep 5
    
    #### SECTION 3 ####------------------------------------------------------------------------------------------------------
    if [ ! -d "$dir" ] ; then
     
    			echo "making directory as it does not yet exist"
    
    			# make the directory as it doesnt exist
    			mkdir -vp "$dir"
    		else
    			echo "As $dir exists continuing."
    			fi
    
    
    #### SECTION 4 ####------------------------------------------------------------------------------------------------------
    echo 'Deleting Old Backups'
    
    #ENTER NUMERIC VALUE OF DAYS AFTER "-MTIME +"
    find "$dir"* -mtime +0 -exec rm -rfv {} \;
    
    echo 'All Done'
    
    sleep 5
    
    #### SECTION 5 ####------------------------------------------------------------------------------------------------------
    echo 'Move Flash Zip Backup from Root to Backup Destination'
    mv /*-flash-backup-*.zip "$dir"
    
    sleep 5
    
    #### SECTION 6 ####------------------------------------------------------------------------------------------------------
    echo 'Unzip Flash Backup'
    cd "$dir"
    unzip *.zip
    
    #UNCOMMENT THE NEXT LINE IF YOU WISH TO DELETE THE ORIGINAL ZIP FILE AFTER EXTRACTION
    #rm -rfv *.zip
    
    #### SECTION 7 ####------------------------------------------------------------------------------------------------------
    
    #UNCOMMENT THE NEXT LINE TO ENABLE GUI NOTIFICATION UPON COMPLETION 
    /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Flash Zip Backup" -d "A copy of the Unraid flash disk has been backed up" -i "normal"
    
    exit