Presjar

Members
  • Posts

    40
  • Joined

  • Last visited

Posts posted by Presjar

  1. After trying out this container for the first time, I have noticed that a log file syslog-127.0.0.1.log has appeared in the user/system share. 

     

    Includes things like 

    ug 14 22:16:34 unraid1 proxmox-backup-api[10]: service is ready
    Aug 14 22:16:34 unraid1 proxmox-backup-proxy[49]: service is ready
    Aug 14 22:16:34 unraid1 proxmox-backup-proxy[49]: applied rrd journal (2 entries in 0.002 seconds)
    Aug 14 22:16:34 unraid1 proxmox-backup-proxy[49]: write rrd data back to disk
    Aug 14 22:16:34 unraid1 proxmox-backup-proxy[49]: starting rrd data sync
    Aug 14 22:16:34 unraid1 proxmox-backup-proxy[49]: rrd journal successfully committed (0 files in 0.000 seconds)



    Where does this come from and how can I move it? I have not had other containers write logs to this share. As it is on the array, the drives also keep spinning up.

     

    ---------------------

     

    I am also getting this warning on creation due to the --memory=2g. Is it an 'ignore' kind of error?

     

    Edit found the answer: https://forums.unraid.net/topic/139578-your-kernel-does-not-support-swap-limit-capabilities-or-the-cgroup-is-not-mounted-memory-limited-without-swap/

     

      --restart unless-stopped
      --memory=2g
      --mount type=tmpfs,destination=/run 'ayufan/proxmox-backup-server:v2.3.2'
    WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

     

  2. A request for nvme-cli please

     

    I tried adding it manually for testing purposes from the Slackware15 mirror and installing with upgradepkg --install-new but nvme-cli doesn't exist after install is complete. No error during the install /setup either.

  3. I'm having trouble viewing the new notifications style in the Web UI when using Chrome on Android. Unable to select the options in the dropdown for Alerts Warnings Notices when a notification should show. Tried with desktop mode checked and not. On desktop Chrome it's working fine, but the old display method worked much better for mobile.

     

    • Upvote 1
  4. On 5/16/2023 at 5:38 PM, L0rdRaiden said:

    @Presjar

    I have tried to fix it, not sure if it works or not yet.

     

    I have been trying as well to make Watchtower work with no success.

     

    On 5/17/2023 at 11:36 PM, primeval_god said:

    For autoupdates i would recommend something like Watchtower.

     

    Thanks for taking more of a look into it. Seems like the option on Watchtower is encouraged, but a bit silly when there is a button in the plugin that updates. This this can't be easily modified run on a schedule is confusing to me. Using another application to manage updates is a bit overkill.

    I know the basic script I have on schedule will download all the docker images again, which happens to also grab any updates. It just wastes a few MB downloading images I already have if no update is available. The compose plugin still works with the containers after running the update this way.

    #!/bin/bash
    #--------------Original Script
    docker compose -f /mnt/cacheone/appdata/dockerConfiguration/compose/traefik2_stack/docker-compose.yml -f /boot/config/plugins/compose.manager/projects/Traefik2_stack/docker-compose.override.yml -p traefik2_stack pull
    docker compose -f /mnt/cacheone/appdata/dockerConfiguration/compose/traefik2_stack/docker-compose.yml -f /boot/config/plugins/compose.manager/projects/Traefik2_stack/docker-compose.override.yml -p traefik2_stack up -d --remove-orphans
    docker image prune -f
    
    /usr/local/emhttp/webGui/scripts/notify -i normal -e "Docker Image Update Completed" -s "" -d ""

     

    Edit:
    Realized your script also just grabs all the image files, even if the image is current.  But giving the notification of which images actually change after the pull is a great idea!

    I have your script running now up to the pull stage. But I had to identify the docker-compose full path. When I run your script as is I get the error that the docker-compose command is not recognized. But if I use the full path for the docker-compose the script works. It is strange because in the web terminal I can just type docker-compose and it works perfectly.

  5. On 4/29/2023 at 5:08 AM, L0rdRaiden said:

    my script to update compose with user scripts and cron jobs.

     

    Any feedback for improvement is welcome, I will improve it.

     

    Does this script take into account the /boot/config/plugins/compose.manager/projects/MYPROJECT/docker-compose.override.yml ?

     

    In a script I had previous been using, I defined the docker-compose.yml and the docker-Compose.override.yml as separate files when starting the stack outside of the plugin UI.

     

    I have also setup your script, my project directory is /mnt/cacheone/appdata/dockerConfiguration/compose 

     

    However it doesn't seem to run docker-compose pull on my yml file. It goes straight to the No updates available notification. I'm very sure there are updates available. using the 'Update Stack' UI button results in downloads happening.

    I added a few Echos to see what is happening, but I can't see anything obviously wrong.

    # Define the root directory to search for projects
    projects_dir="/mnt/cacheone/appdata/dockerConfiguration/compose"
    echo "Project Directory: $projects_dir"
    # Find all subdirectories containing docker-compose files
    compose_files=$(find "$projects_dir" -maxdepth 2 -name "docker-compose.y*ml")
    echo "Located Compose Files: $compose_files"
    # Loop over each file found
    for file in $compose_files; do
      echo "I'm in the loop"
      # Get the directory containing the file
      dir="$(dirname "$file")"
    echo "dir: $dir"
      # Get the last folder name in the directory path
      project_name="$(basename "$dir")"
    echo "Project name: $project_name"
      # Change the current directory to the project directory
      pushd "$dir"
    
      # Check if there are any updates available for the Docker images
      if [[ $(docker-compose pull 2>&1) =~ 'Downloaded newer image' ]]; then
        # Get the names of the updated Docker images
        updated_images=$(docker-compose images --quiet | xargs docker inspect --format '{{.RepoTags}}' | tr -d '[] ' | sed 's/,/\n/g')
    
        # Stop any running containers associated with the project
        docker-compose down
    
        # Pull the latest version of the Docker images
        docker-compose pull
    
        # Start the containers in detached mode
        docker-compose up -d --remove-orphans
    
        # Clean up any unused Docker images
        docker image prune -f
    
        # Output a notification with the names of the updated Docker images
        echo "Updates available for project $project_name"
        echo "Updated Docker images:"
        echo "$updated_images"
        /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Docker Compose Updates" -d "$project_name updated the images $updated_images" -i "normal"
    
      else
        echo "No updates available for project $project_name"
        /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Docker Compose Updates" -d "$project_name no updates available" -i "normal"
    
      fi
    
      # Change back to the original directory
      popd
    done

    This is my terminal output with the extra echos

    Script location: /tmp/user.scripts/tmpScripts/3.Docker-Compose UPDATE/script
    Note that closing this window will abort the execution of this script
    Project Directory: /mnt/cacheone/appdata/dockerConfiguration/compose
    Located Compose Files: /mnt/cacheone/appdata/dockerConfiguration/compose/traefik2_stack/docker-compose.yml
    I'm in the loop
    dir: /mnt/cacheone/appdata/dockerConfiguration/compose/traefik2_stack
    Project name: traefik2_stack
    /mnt/cacheone/appdata/dockerConfiguration/compose/traefik2_stack /
    No updates available for project traefik2_stack
    /

    Any ideas where to go next? I really like the idea of your script. Much better than my original attempt which was just downloading all the images even if they are up to date.

     

  6. On 4/22/2023 at 6:22 PM, hasown said:

    That is for updating containers.

     Oh I see.

     

    #!/bin/bash
    COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
    curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/lib/docker/cli-plugins/docker-compose
    sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

    Use this as an automatic weekly script until the git is updated more often.

    • Upvote 1
  7. On 4/17/2023 at 3:28 AM, NAS said:

    Could we trigger an update on a semi regular basis? I do not know what your build pipeline is but I would like to avoid getting into a situation where we are essentially nagging you as a trigger.

     

    Even once a month or perhaps on each minor release could be automated.?

     

    Ultimately the end goal should be to make your life easier helping where we can; forking, splitting effort or taking away from your work should never be our goal.

     

     

    This works well enough

    https://forums.unraid.net/topic/114415-plugin-docker-compose-manager/?do=findComment&comment=1240504

  8. On 3/9/2023 at 1:48 PM, Presjar said:

    Is it a problem if a CA script I have set to run on start of the array never completes when I test with "RUN SCRIPT"?

     

    During my script I call another script that is first copy into /usr/local/bin

     

    In the unraid WEBUI Shell, If I run ./monitor_arrayAudioChanges.sh I am returned to the # prompt and the process runs in background fine.

    If I close the RUN SCRIPT window the PID started by the monitor_arrayAudioChanges.sh is also terminated. I have tried sever suggestions I found online to have this .sh start in a different way / in background but have had no luck. Any suggestions?

     

     

    ## Install inotify-tools package ##
    installpkg /boot/packages/inotify-tools-3.22.6.0-x86_64-1.txz
    
    ## Setup monitoring of music and audiobooks array folders ##
    cp -r /boot/custom/audioArrayToSSD /usr/local/bin && chmod +x /usr/local/bin/audioArrayToSSD/sync_arrayAudioToSSD.sh && chmod +x /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh
    source /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh
    
    ## Install  docker compose 
    BLABLABLA


     

    Chasing some feedback on this one please if anyone knows what I can do.

  9. I added this to my UserScripts plugin on a schedule for weekly to automatically grab any updated images. It is a small variation to what i was using previously updating the docker-compose images before I found this plugin option. The UI then reflects the stack is running like normal with the play icon after the script runs.

     

    If you come up with something more interesting, like posting which images were updated to the notification, please share!

     

    #!/bin/bash
    docker compose -f /PATH/TO/docker-compose.yml -f /PATH/TO/docker-compose.override.yml -p YourProjectName pull
    docker compose -f /PATH/TO/docker-compose.yml -f /PATH/TO/docker-compose.override.yml -p YourProjectName  up -d --remove-orphans
    docker image prune -f
    /usr/local/emhttp/webGui/scripts/notify -i normal -e "Docker Image Update Completed"

     

    You can check your required yml paths and your.project name by having the stack running via the ui then running shell

    docker compose ls
  10. 1 hour ago, ICDeadPpl said:

    Use "bash /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh"

    Thanks! I will give that a try. I had previously tried it as per the first link, top answer, point 3. /bin/bash /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh

     

    Edit: no good unfortunately. Same issue.

     

    Link the script im trying to run on array start. Original script was on github. Modified to made it work for my purpose and made it messy.

    https://pastebin.com/Xu5U9nAB

  11. Is it a problem if a CA script I have set to run on start of the array never completes when I test with "RUN SCRIPT"?

     

    During my script I call another script that is first copy into /usr/local/bin

     

    In the unraid WEBUI Shell, If I run ./monitor_arrayAudioChanges.sh I am returned to the # prompt and the process runs in background fine.

    If I close the RUN SCRIPT window the PID started by the monitor_arrayAudioChanges.sh is also terminated. I have tried sever suggestions I found online to have this .sh start in a different way / in background but have had no luck. Any suggestions?

     

    Quote

     

    ## Install inotify-tools package ##
    installpkg /boot/packages/inotify-tools-3.22.6.0-x86_64-1.txz
    
    ## Setup monitoring of music and audiobooks array folders ##
    cp -r /boot/custom/audioArrayToSSD /usr/local/bin && chmod +x /usr/local/bin/audioArrayToSSD/sync_arrayAudioToSSD.sh && chmod +x /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh
    source /usr/local/bin/audioArrayToSSD/monitor_arrayAudioChanges.sh
    
    ## Install  docker compose 
    BLABLABLA


     

  12. 55 minutes ago, ich777 said:

    Can you also do the things that I've mentioned here

     

    Export from ssh

    Last login: Wed Nov  2 21:10:38 2022 from 192.168.2.95
    Linux 5.19.9-Unraid.
    root@UNRAID1:~# modprobe it87
    modprobe: ERROR: could not insert 'it87': No such device
    root@UNRAID1:~# ignore_resource_conflict=1
    root@UNRAID1:~# modprobe it87
    modprobe: ERROR: could not insert 'it87': No such device
    root@UNRAID1:~# lsmod
    Module                  Size  Used by
    tun                    53248  2
    tcp_diag               16384  0
    udp_diag               16384  0
    inet_diag              20480  2 tcp_diag,udp_diag
    xt_nat                 16384  65
    xt_tcpudp              16384  99
    veth                   32768  0
    xt_conntrack           16384  4
    xt_MASQUERADE          16384  21
    nf_conntrack_netlink    49152  0
    nfnetlink              16384  2 nf_conntrack_netlink
    xfrm_user              36864  1
    xfrm_algo              16384  1 xfrm_user
    xt_addrtype            16384  2
    iptable_nat            16384  13
    nf_nat                 49152  3 xt_nat,iptable_nat,xt_MASQUERADE
    nf_conntrack          139264  5 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE
    nf_defrag_ipv6         16384  1 nf_conntrack
    nf_defrag_ipv4         16384  1 nf_conntrack
    br_netfilter           32768  0
    bridge                262144  1 br_netfilter
    xfs                  1654784  5
    nfsd                  507904  3
    auth_rpcgss           135168  1 nfsd
    oid_registry           16384  1 auth_rpcgss
    lockd                 102400  1 nfsd
    grace                  16384  2 nfsd,lockd
    sunrpc                569344  13 nfsd,auth_rpcgss,lockd
    md_mod                 53248  3
    nct6775                24576  0
    nct6775_core           65536  1 nct6775
    hwmon_vid              16384  1 nct6775
    efivarfs               16384  1
    ip6table_filter        16384  1
    ip6_tables             28672  1 ip6table_filter
    iptable_filter         16384  1
    ip_tables              28672  2 iptable_filter,iptable_nat
    x_tables               45056  10 ip6table_filter,xt_conntrack,iptable_filter,xt_tcpudp,xt_addrtype,xt_nat,ip6_tables,ip_tables,iptable_nat,xt_MASQUERADE
    af_packet              49152  2
    8021q                  32768  0
    garp                   16384  1 8021q
    mrp                    16384  1 8021q
    stp                    16384  2 bridge,garp
    llc                    16384  3 bridge,stp,garp
    ipv6                  532480  271 bridge,br_netfilter,udp_diag
    igb                   192512  0
    r8169                  81920  0
    realtek                24576  1
    i915                 2441216  1
    iosf_mbi               16384  1 i915
    drm_buddy              16384  1 i915
    ttm                    73728  1 i915
    drm_display_helper    135168  1 i915
    drm_kms_helper        159744  2 drm_display_helper,i915
    x86_pkg_temp_thermal    16384  0
    i2c_i801               24576  0
    intel_powerclamp       16384  0
    wmi_bmof               16384  0
    coretemp               16384  0
    kvm_intel             266240  0
    kvm                   958464  1 kvm_intel
    crct10dif_pclmul       16384  1
    crc32_pclmul           16384  0
    crc32c_intel           24576  0
    ghash_clmulni_intel    16384  0
    aesni_intel           380928  0
    crypto_simd            16384  1 aesni_intel
    cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
    intel_cstate           20480  0
    intel_uncore          200704  0
    i2c_smbus              16384  1 i2c_i801
    drm                   475136  6 drm_kms_helper,drm_display_helper,drm_buddy,i915,ttm
    nvme                   49152  1
    ahci                   45056  4
    intel_gtt              24576  1 i915
    i2c_algo_bit           16384  2 igb,i915
    agpgart                40960  2 intel_gtt,ttm
    libahci                40960  1 ahci
    nvme_core             106496  2 nvme
    i2c_core               86016  8 drm_kms_helper,i2c_algo_bit,igb,drm_display_helper,i2c_smbus,i2c_i801,i915,drm
    syscopyarea            16384  1 drm_kms_helper
    sysfillrect            16384  1 drm_kms_helper
    sysimgblt              16384  1 drm_kms_helper
    fb_sys_fops            16384  1 drm_kms_helper
    thermal                20480  0
    wmi                    28672  2 nct6775,wmi_bmof
    fan                    16384  0
    tpm_crb                16384  0
    tpm_tis                16384  0
    tpm_tis_core           20480  1 tpm_tis
    video                  53248  1 i915
    tpm                    73728  3 tpm_tis,tpm_crb,tpm_tis_core
    backlight              20480  4 video,drm_display_helper,i915,drm
    acpi_pad               24576  0
    acpi_tad               16384  0
    button                 20480  0
    unix                   53248  497
    root@UNRAID1:~#

     

  13. Hello! @Frank Crawford @ich777 I'm trying to get my fan speed control enabled and have gone down the path of thinking I need the it87 drivers, however after installing the it87 plugin, rebooting with the default Syslinux configuration to include it87.ignore_resource_conflict=1 I'm not having any luck.

     

    My motherboard is 

    ASUS TUF GAMING B560M-PLUS (Intel)

    https://www.asus.com/motherboards-components/motherboards/tuf-gaming/tuf-gaming-b560m-plus/

     

    Output from sensors-detect has me thinking I was requiring the it87 driver as my output is showing the below unknown ite chip id 0x0101.

     

    Linux 5.19.9-Unraid.
    root@UNRAID1:~# sensors-detect
    # sensors-detect version 3.6.0
    # Board: ASUSTeK COMPUTER INC. TUF GAMING B560M-PLUS
    # Kernel: 5.19.9-Unraid x86_64
    # Processor: 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz (6/167/1)
    This program will help you determine which kernel modules you need
    to load to use lm_sensors most effectively. It is generally safe
    and recommended to accept the default answers to all questions,
    unless you know what you're doing.
    Some south bridges, CPUs or memory controllers contain embedded sensors.
    Do you want to scan for them? This is totally safe. (YES/no): y
    Silicon Integrated Systems SIS5595...                       No
    VIA VT82C686 Integrated Sensors...                          No
    VIA VT8231 Integrated Sensors...                            No
    AMD K8 thermal sensors...                                   No
    AMD Family 10h thermal sensors...                           No
    AMD Family 11h thermal sensors...                           No
    AMD Family 12h and 14h thermal sensors...                   No
    AMD Family 15h thermal sensors...                           No
    AMD Family 16h thermal sensors...                           No
    AMD Family 17h thermal sensors...                           No
    AMD Family 15h power sensors...                             No
    AMD Family 16h power sensors...                             No
    Hygon Family 18h thermal sensors...                         No
    Intel digital thermal sensor...                             Success!
        (driver `coretemp')
    Intel AMB FB-DIMM thermal sensor...                         No
    Intel 5500/5520/X58 thermal sensor...                       No
    VIA C7 thermal sensor...                                    No
    VIA Nano thermal sensor...                                  No
    Some Super I/O chips contain embedded sensors. We have to write to
    standard I/O ports to probe them. This is usually safe.
    Do you want to scan for Super I/O sensors? (YES/no): y
    Probing for Super-I/O at 0x2e/0x2f
    Trying family `National Semiconductor/ITE'...               No
    Trying family `SMSC'...                                     No
    Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
    Found `Nuvoton NCT6798D Super IO Sensors'                   Success!
        (address 0x290, driver `nct6775')
    Probing for Super-I/O at 0x4e/0x4f
    Trying family `National Semiconductor/ITE'...               Yes
    Found unknown chip with ID 0x0101

     

  14.  

    1 hour ago, ich777 said:

    Can you try to check if the file has any contents or even exists with:

     

    Yes looks like /root/.config/CoreFreq/corefreq.cfg is a link to the boot/config version?

     

    root@UNRAID1:~/.config/CoreFreq# ls

    corefreq.cfg@

     

    root@UNRAID1:~/.config/CoreFreq# ls -l

    lrwxrwxrwx 1 root root 42 Jun 15 22:21 corefreq.cfg -> /boot/config/plugins/corefreq/corefreq.cfg

     

    I can open the .cfg via either path.

     

    1 hour ago, ich777 said:

    Have you enabled the CoreFreq service and also the Autostart here:

    CoreFreq Daemon and Autostart is active as per this image.

     

    1 hour ago, ich777 said:

    What kind of settings do you want to save exactly?

    I thought that the cpu multipliers for base and turbo boost might save / restore at boot. 

     

    I was trying to set 3.0GHz as the max any core can go rather than 4.9GHz.

    Screenshot_20220616-010456_JuiceSSH.png

    Screenshot_20220616-010742_JuiceSSH.png

    Screenshot_20220616-010810_JuiceSSH.png

  15. On 6/9/2022 at 1:41 AM, ich777 said:

    Yes, should work now if you upgrade to 6.10.1 or 6.10.2 or even downgrade to any version (except for 6.10.0 because there is a bug in it that prevents the Plugin Update Helper from working correctly).

     

    I have been on 6.10.2 and now moved to 6.10.3. I can see the corefreq.cfg file has an updated datestamp and includes my changes to cpu multipliers. However after a server reboot, the corefreq-cli ui shows all the default cpu values. 

     

    The above has been the case since starting to play with corefreq-cli. Seems to not load from the corefreq.cfg file.

     

    Am I missing something basic haha.

    unraid1-diagnostics-20220615-2252.zip

  16. On 1/10/2020 at 8:18 AM, Diggewuff said:

     

    When Syncing data to these mapped shares via Web DAV, or when I'm creating a folder via Web GUI,

    permissions of created folders are not 777 (drwxrwxrwx) but 755 (drwxr-xr-x).

    Permissions of a txt file created via Web GUI are 644 (-rw-r--r--) and not 666 (-rw-rw-rw-) as expected for Unraid. 

     

    Is there any option to set the propper UMASK to make Nextcloud respect Unraid's permission scheme?

    Was this ever fixed? I also have created by nextcloud - (linuxserver) showing 755 folders and 644 for files.

    Is there an option that is opposite to UMASK to make the files 666 and folders 777?