Scheduled task completes when run manually, fails when triggered at specific time

  • I have posted about this issue on the relevant github page, but I think the issue may not be specific to that project, so figured I would solicit some help here as well.


    I am running the auanasgheps snapraid-aio-script in place of the built-in script to run a SnapRAID sync each night at midnight. One feature of the script is that it uses Apprise to send notifications when the job is triggered and a summary once the job has completed (how many new files added, how many removed, etc.). I created the scheduled task directly in the OMV interface and it runs as root (full settings below).


    When I open the task and manually start it for the first time, the dependency pipx is installed, and I am asked to run the script again. Upon doing so, the script runs flawlessly: pipx installs Apprise, the sync and scrub commands run as configured, and I eventually receive the job completion notification. This is true every subsequent time I go into the OMV interface and trigger the job manually.


    However, when I allow the job to be triggered at midnight, it attempts to download pipx again (which is already installed and can be verified with apt as seen below), and fails, causing the script to end prematurely.


    Any suggestions on what is causing this issue?


    Image


    OMV 7.7 (Sandworm) - Linux 6.2.16-20-pve - Intel Core i5-12500

  • flvinny521

    Added the Label resolved

Participate now!

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