Thanks for the quick reply!
Unfortunately, I already had a problem when trying the solution in my development environment with flower version 1.12.0
. To simulate a “real” setup, I used flower-superlink --insecure
and flower-server-app . --insecure
.
First, I started my supernodes with flower-supernode . --insecure --isolation process
. After starting the sample server app (again, I used flwr init
), both nodes got stuck with:
$ flower-supernode . --insecure --isolation process
INFO : Starting Flower SuperNode
WARNING : Option `--insecure` was set. Starting insecure HTTP client connected to 0.0.0.0:9092.
INFO : Starting Flower ClientAppIo gRPC server on 0.0.0.0:9094
INFO :
INFO : [RUN 14290138308533441979, ROUND 1]
INFO : Received: train message c52ab732-bf0b-4c77-9878-2c5010b6673a
INFO : Sent reply
Then, I tried the subprocess option: flower-supernode . --insecure --isolation subprocess
. This resulted in an error:
$ flower-supernode . --insecure --isolation subprocess
INFO : Starting Flower SuperNode
WARNING : Option `--insecure` was set. Starting insecure HTTP client connected to 0.0.0.0:9092.
INFO : Starting Flower ClientAppIo gRPC server on 0.0.0.0:9094
INFO :
INFO : [RUN 10533597333898177981, ROUND 1]
INFO : Received: train message 6981bcde-4c13-4eaf-b45c-2ea909ad9c9a
INFO : Starting Flower ClientApp
INFO : Pulling ClientAppInputs for token 12402382628435006975
Traceback (most recent call last):
File "/usr/local/bin/flwr-clientapp", line 8, in <module>
sys.exit(flwr_clientapp())
File "/usr/local/lib/python3.10/dist-packages/flwr/client/clientapp/app.py", line 82, in flwr_clientapp
run_clientapp(supernode=args.supernode, token=args.token)
File "/usr/local/lib/python3.10/dist-packages/flwr/client/clientapp/app.py", line 125, in run_clientapp
install_from_fab(fab.content, flwr_dir=None, skip_prompt=True)
File "/usr/local/lib/python3.10/dist-packages/flwr/cli/install.py", line 105, in install_from_fab
with zipfile.ZipFile(fab_file_archive, "r") as zipf:
File "/usr/lib/python3.10/zipfile.py", line 1271, in __init__
self._RealGetContents()
File "/usr/lib/python3.10/zipfile.py", line 1338, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
ERROR : ClientApp raised an exception
Is there a way to resolve those issues?