reconquest / orgalorg

Parallel SSH commands runner and file synchronization tool
MIT License
887 stars 51 forks source link

[windows] panic: interface conversion: interface {} is nil, not bool #39

Open cr1cr1 opened 2 years ago

cr1cr1 commented 2 years ago

orgalorg version: 1.2.0 platform: windows x64

orgalorg -v -s -u root -y -e -r / -S etc
2022-04-17 18:00:48 [DEBUG] building files list from 1 sources
2022-04-17 18:00:48 [DEBUG] file list contains 1 files
2022-04-17 18:00:48 [DEBUG] trying windows pageant
2022-04-17 18:00:48 [DEBUG]     pageant is not found
2022-04-17 18:00:48 [DEBUG] trying windows openssh-agent
2022-04-17 18:00:48 [DEBUG] using 16 threads
2022-04-17 18:00:48 [DEBUG] connecting to 3 nodes
2022-04-17 18:00:48 [DEBUG]    1/3 (0 failed) connection established: [root@srv1:22]
2022-04-17 18:00:48 [DEBUG]    2/3 (0 failed) connection established: [root@srv2:22]
2022-04-17 18:00:48 [DEBUG]    3/3 (0 failed) connection established: [root@srv3:22]
2022-04-17 18:00:48 [DEBUG] connection established to 3 nodes
panic: interface conversion: interface {} is nil, not bool

goroutine 1 [running]:
main.upload(0xfaddb7, 0xc0003b4c00, {0xc0003ae120, 0x1, 0x1})
        /home/runner/work/orgalorg/orgalorg/main.go:543 +0x566
main.handleSynchronize(0xf62b00)
        /home/runner/work/orgalorg/orgalorg/main.go:484 +0x6a7
main.main()
        /home/runner/work/orgalorg/orgalorg/main.go:282 +0x6ef

where etc is a local directory containing a file

Expected: synchronize /some/dir/etc/file to remote /etc/file

cr1cr1 commented 2 years ago

On Ubuntu (WSL) I get:

orgalorg -s -u root -y -e -r / -S etc
2022-04-17 17:16:39  [INFO]     1/1 sending file: 'etc/tmux.conf'
srv1 bash: /usr/lib/orgalorg/sync: No such file or directory
srv2 bash: /usr/lib/orgalorg/sync: No such file or directory
srv3 bash: /usr/lib/orgalorg/sync: No such file or directory
2022-04-17 17:16:39 [FATAL] failed to run sync command
                            └─ failed to finish sync tool command
                               └─ commands are failed on all 3 nodes
                                  └─ code 127 (3 nodes)