Closed sempervictus closed 1 year ago
Rebuilt from master
and the redefinition of delay line went away, but the uninitialized values and div by 0 persist.
This seems to have been introduced at some point in the past by way of incompatibility with the attributes set by znapzendzetup
- re running the same invocation of it used to create the original configuration at some point in the past, regenerates the dataset user-options in a format which znapzend
can use. Might be worth having some sort of safety latch for old config styles to have it bail with an informative message about those.
some examples would be helpful
Using this znapzend option-set:
500g6dz2 org.znapzend:post_znap_cmd off local
500g6dz2 org.znapzend:mbuffer_size 1G local
500g6dz2 org.znapzend:tsformat znap-%Y%m%d-%H%M%S local
500g6dz2 org.znapzend:dst_a_plan 14days=>1days,8weeks=>1weeks,24months=>1months,5years=>1years local
500g6dz2 org.znapzend:dst_a 3t6dz2/backups/fs00/500g6dz2 local
500g6dz2 org.znapzend:enabled on local
500g6dz2 org.znapzend:recursive on local
500g6dz2 org.znapzend:pre_znap_cmd off local
500g6dz2 org.znapzend:mbuffer off local
500g6dz2 org.znapzend:src_plan 3days=>1days,2weeks=>1weeks local
500g6dz2 org.znapzend:zend_delay 0 local
i get this
# znapzend --runonce --autoCreation
[2022-08-01 01:56:53.83892] [100689] [info] znapzend (PID=100689) starting up ...
[2022-08-01 01:56:53.83922] [100689] [info] refreshing backup plans ...
Use of uninitialized value $backupPlan in split at /opt/znapzend/lib/ZnapZend/Time.pm line 111.
[2022-08-01 01:57:51.70258] [100689] [info] found a valid backup plan for rpool...
[2022-08-01 01:57:51.70304] [100689] [info] found a valid backup plan for 500g6dz2...
Use of uninitialized value $backupPlan in split at /opt/znapzend/lib/ZnapZend/Time.pm line 111.
Use of uninitialized value $timeFormat in substitution (s///) at /opt/znapzend/lib/ZnapZend/Time.pm line 264.
Use of uninitialized value $timeFormat in substitution (s///) at /opt/znapzend/lib/ZnapZend/Time.pm line 265.
Use of uninitialized value $timeFormat in substitution (s///) at /opt/znapzend/lib/ZnapZend/Time.pm line 266.
Use of uninitialized value $timeFormat in substitution (s///) at /opt/znapzend/lib/ZnapZend/Time.pm line 269.
Use of uninitialized value $timeFormat in pattern match (m//) at /opt/znapzend/lib/ZnapZend/Time.pm line 132.
[2022-08-01 01:57:51.70335] [100689] [info] found a valid backup plan for 500g6dz2/local/lxc...
Use of uninitialized value $backupPlan in split at /opt/znapzend/lib/ZnapZend/Time.pm line 111.
Use of uninitialized value $interval in division (/) at /opt/znapzend/lib/ZnapZend/Time.pm line 53.
Illegal division by zero at /opt/znapzend/lib/ZnapZend/Time.pm line 53.
FWIW, adding --debug
to command line may yield even more details about variables passing through the logic.
As a shot in the dark, could the pool names starting with a digit get treated as an invalid number (maybe not by custom code in znapzend, but generally in some perl parser routine that is called)?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Arch Linux is blowing up on znapzend operations with:
the package is built on Arch from AUR using
package was just rebuilt in a clean chroot with the same results