Register for the iXsystems Community to get an ad-free experience
HDD Spindown Timer

HDD Spindown Timer 2.0.1

ngandrass

Explorer
Joined
Jun 26, 2019
Messages
58
ngandrass updated HDD Spindown Timer with a new update entry:

Version 1.3.2 (2022-01-10) released

  • Include an option to shutdown the system after all monitored drives are idle for a specified number of seconds. Thanks to @hschwane
    +1
For more details see: https://github.com/ngandrass/freenas-spindown-timer

Read the rest of this update entry...
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
The script works fine at least on one of my devices, but another one has issues. When I start the script, it aborts with the following error(s):
Code:
N54LNAS% sudo ./multi_report_v1.6e_11_Nov_2022.sh
Multi-Report v1.6e dtd:2022-11-11 (TrueNAS Core 13.0-U3.1)
Configuration File Version Date: 2022-11-11
Failed conversion of ``2020-Oct-19_03:58:30'' using format ``%Y-%b-%e_%H:%M:%S''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt]
Failed conversion of ``2022-Aug-28_19:37:29'' using format ``%Y-%b-%e_%H:%M:%S''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt]
./multi_report_v1.6e_11_Nov_2022.sh: line 2414: [[: ---: syntax error: operand expected (error token is "-")
./multi_report_v1.6e_11_Nov_2022.sh: line 2415: [[: ---: syntax error: operand expected (error token is "-")


It's in both the same TrueNAS version, and they should have a very similar configuration. So what's going on here?
 

Davvo

Guru
Joined
Jul 12, 2022
Messages
977
The script works fine at least on one of my devices, but another one has issues. When I start the script, it aborts with the following error(s):
Code:
N54LNAS% sudo ./multi_report_v1.6e_11_Nov_2022.sh
Multi-Report v1.6e dtd:2022-11-11 (TrueNAS Core 13.0-U3.1)
Configuration File Version Date: 2022-11-11
Failed conversion of ``2020-Oct-19_03:58:30'' using format ``%Y-%b-%e_%H:%M:%S''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt]
Failed conversion of ``2022-Aug-28_19:37:29'' using format ``%Y-%b-%e_%H:%M:%S''
date: illegal time format
usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt]
            [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]
            [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt]
./multi_report_v1.6e_11_Nov_2022.sh: line 2414: [[: ---: syntax error: operand expected (error token is "-")
./multi_report_v1.6e_11_Nov_2022.sh: line 2415: [[: ---: syntax error: operand expected (error token is "-")


It's in both the same TrueNAS version, and they should have a very similar configuration. So what's going on here?
Wrong thread. You want to post here and probably contact @joeschmuck.
 

ngandrass

Explorer
Joined
Jun 26, 2019
Messages
58
Top