0-db icon indicating copy to clipboard operation
0-db copied to clipboard

Restarting incremental.py fails

Open coesensbert opened this issue 2 years ago • 1 comments

I noticed the script not catching freshly uploaded flists to hub.grid.tf

root@Main-Grid-DE-hub-02 ~ # python3 incremental.py 
[+] authenticating
[+] master host: hub.grid.tf, port: 9900
[+] slave host: 172.17.0.2, port: 9900
[+] syncing namespace: default
[+] syncing: 724784.31 / 724784.46 MB (100.0 %), waiting changes

so I restarted it, but on restart:

root@Main-Grid-DE-hub-02 ~ # python3 incremental.py 
[+] authenticating
[+] master host: hub.grid.tf, port: 9900
[+] slave host: 172.17.0.2, port: 9900
[+] syncing namespace: default
Traceback (most recent call last):
  File "/root/incremental.py", line 104, in <module>
    incremental.run()
  File "/root/incremental.py", line 84, in run
    sys.stdout.write("\r[+] syncing: %.2f / %.2f MB (%.1f %%), waiting changes \033[K" % (ssize, msize, progress))
UnboundLocalError: local variable 'ssize' referenced before assignment

coesensbert avatar Jan 26 '24 13:01 coesensbert

Did you try with latest version from latest development-v2 branch ?

maxux avatar Aug 12 '24 15:08 maxux