auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
239 stars 37 forks source link

./snapraid-aio-script.sh: line 567: /usr/bin/snapraid: No such file or directory #91

Closed zz0rk closed 6 months ago

zz0rk commented 6 months ago

Debian 12 snapraid binary location: /usr/local/bin/snapraid snapraid-aio-script location: ~/scripts/snapraid-aio-script-v.3.3/snapraid-aio-script.sh

[WARNING] - Unable to continue with SYNC/SCRUB job(s). Check DIFF job output. (SnapRAID on snapraid)

SnapRAID Script Job started [Tue Apr 2 06:00:28 AM PDT 2024] Running SnapRAID version 12.3 SnapRAID AIO Script version 3.3 Using configuration file: ./script-config.sh Preprocessing

SnapRAID is not running, proceeding. Checking if all parity and content files are present. All parity files found. All content files found. Processing SnapRAID TOUCH [Tue Apr 2 06:00:28 AM PDT 2024]

Checking for zero sub-second files. ./snapraid-aio-script.sh: line 567: /usr/bin/snapraid: No such file or directory No zero sub-second timestamp files found. TOUCH finished [Tue Apr 2 06:00:28 AM PDT 2024] SnapRAID DIFF [Tue Apr 2 06:00:28 AM PDT 2024]

DIFF finished [Tue Apr 2 06:00:28 AM PDT 2024] ERROR - Failed to get one or more count values. Unable to continue. Exiting script. [Tue Apr 2 06:00:28 AM PDT 2024]

Thank you.

auanasgheps commented 6 months ago

Hi there,

You need to change the snapraid bin directory. The script defaults to /usr/bin/snapraid but as you stated yours is in /usr/local/bin/snapraid

Go to the config file, it's here: https://github.com/auanasgheps/snapraid-aio-script/blob/ecbaa73b4ebc5654600378cf3593aabe089aa08e/script-config.sh#L219

Save it and run again!

I can definitely implement a check for the SnapRAID bin!

zz0rk commented 6 months ago

@auanasgheps :man_facepalming: Jeez, that was simple. How did I miss that, lol. Thanks!

zz0rk commented 6 months ago

snapraid-aio-script/script-config.sh

Line 219 in ecbaa73

SNAPRAID_BIN="/usr/bin/snapraid"

Change to: SNAPRAID_BIN="/usr/local/bin/snapraid"

auanasgheps commented 6 months ago

Happy to know the problem was fixed! I will add an error message to have a clear output for the next time :)