Anacron is not running its tasks

  • Hello everyone,

    my NAS is running OMV6 without any problem, apart from anacron plugin (installed via OMVExtras).

    Anacron is not running its tasks and I would need help in order to determine why this is happening.




    Please, can anyone help me understand?

    Thank you.

  • Sorry but I think I not understand: should I change the string from

    /root/Collection/omv_automatic_update/omv_automatic_update.sh

    to

    ./Collection/omv_automatic_update/omv_automatic_update.sh

    ?


    Pressing the "play" button on Anacron Plugin, these scripts runs correctly.

    • Official Post

    Wenn die sh nicht im /usr/bin/ ist muss man ./ verwenden

    Not true. The tasks are using the full path of the script. As long as the scripts are marked executable and have a proper shebang at the top, the full path is perfectly valid.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    In my old OMV5 installation, this configuration was perfectly working.

    The anacron tab entry looks wrong. I didn't think I changed the saltstack code that generated it but I will check.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    The space in the identifier is breaking things. I will have to prevent spaces. But you can change the identifier and remove the spaces until then. The update won't allow them either.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    I moved my .sh script to /usr/bin/ without .sh.

    It's much easier to handle

    I agree it is easier to handle in /usr/bin. I just wanted to point out that the path in /root/ was not the issue.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Sorry for the OT, but why "easier"?

    Could you recommend a site where this easiness is explained, so I can study?


    In my case I have a lot of scripts and seems to me easier to backup my root folder instead of backing up some selected files mixed with other files in /usr/bin.

    Some scripts contain also secret codes (example: Telegram tokens) and placing them on /usr/bin seems to me more dangerous than use /root folder.

    Is not the home directory the correct location where personal files should be placed?

    • Official Post

    Sorry for the OT, but why "easier"?

    Because /usr/bin is in the root user's path. So, you would only have to specify the script's filename to execute it instead of the full path in /root/. But the drawback is that anyone can execute it from there.

    In my case I have a lot of scripts and seems to me easier to backup my root folder instead of backing up some selected files mixed with other files in /usr/bin.

    Some scripts contain also secret codes (example: Telegram tokens) and placing them on /usr/bin seems to me more dangerous than use /root folder.

    Is not the home directory the correct location where personal files should be placed?

    /root is fine. I wouldn't change what you are doing.

    omv 7.7.10-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!