FATE icon indicating copy to clipboard operation
FATE copied to clipboard

Discussions

Open dylan-fan opened this issue 7 years ago • 23 comments

This issue is specially opened for discussion. Here, you can feedback some problem such as install problem when you install FATE or new feature which you think is important for you. Finally, hope to use English to ask your questions. Thanks. dylanfan

dylan-fan avatar Mar 18 '19 03:03 dylan-fan

When you installed FATE , What was the worst experience?

dylan-fan avatar Mar 18 '19 03:03 dylan-fan

For some cooperative partners, docker for cluster is necessary, because they have to ask for more physical computers. This may cost more time and resources for them but just experience FATE they want.

zazd avatar Mar 18 '19 03:03 zazd

@dylan-fan hi,can you give a sketch to explain the relationship between the various components in the cluster mode? I don't quite understand how to deploy a cluster.

ZZIQIN avatar Apr 07 '19 12:04 ZZIQIN

After installed the packages, I tried to run "sh run_logistic_regression_standalone.sh". But it is extremely slow. it keeps printing something like cat: /fate/examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/workflow.log: No such file or directory please wait or check more info in /fate/examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/workflow.log

In general, how lone does it takes to run the program? Is there any way to accelerate the process? Thanks.

cacoderquan avatar May 28 '19 09:05 cacoderquan

@cacoderquan It should be completed in one minute. If not, could you please check logs in this path: /fate/examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/ and see if there is a status_tracer_decorator.log file exist and see if there is error in it? Or, is there any error info in nohup file in your current path?

tanmc123 avatar May 28 '19 09:05 tanmc123

@tanmc123 Thanks. But could you tell me how to go to /fate/examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/

I type cd examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/ but got errors like

root@f94b7a1fdfe7:/fate# cd examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/ bash: cd: examples/homo_logistic_regression/../../logs/logistic_regression_example_standalone_20190528090656/: No such file or directory r

cacoderquan avatar May 28 '19 10:05 cacoderquan

@cacoderquan well, in your current path, you can just type cd ../../logs/logistic_regression_example_standalone_20190528090656/

tanmc123 avatar May 28 '19 11:05 tanmc123

Thanks. But I type cd ../../logs/hetero_logistic_regression_example_standalone_20190529012020/ it does not work(I use another container)

root@45c7dd1d05a1:/fate# cd ../../logs/hetero_logistic_regression_example_standalone_20190529012020/ bash: cd: ../../logs/hetero_logistic_regression_example_standalone_20190529012020/: No such file or directory

cacoderquan avatar May 29 '19 01:05 cacoderquan

find there is a new logs directory, but could not find any results under it.

cacoderquan avatar May 29 '19 01:05 cacoderquan

root@45c7dd1d05a1:/fate# ls Dockerfile arch data examples federatedml logs requirements.txt workflow root@45c7dd1d05a1:/fate# cd logs root@45c7dd1d05a1:/fate/logs# ls root@45c7dd1d05a1:/fate/logs#

cacoderquan avatar May 29 '19 01:05 cacoderquan

@tanmc123

cacoderquan avatar May 29 '19 01:05 cacoderquan

You should be able to see three nohup files in your example/homo_logistic_regression folder. Please see if there is any error info in one of them.

tanmc123 avatar May 29 '19 01:05 tanmc123

config path is /fate/examples/hetero_logistic_regression/conf/guest_runtime_conf.json_hetero_logistic_regression_example_standalone_20190529012020 jobid is hetero_logistic_regression_example_standalone_20190529012020 Traceback (most recent call last): File "/fate/arch/api/utils/file_utils.py", line 40, in load_json_conf with open(json_conf_path) as f: FileNotFoundError: [Errno 2] No such file or directory: '/fate/arch/conf/server_conf.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "../../workflow/hetero_lr_workflow/hetero_guest_workflow.py", line 22, in from workflow.workflow import WorkFlow File "/fate/workflow/workflow.py", line 52, in from workflow import status_tracer_decorator File "/fate/workflow/status_tracer_decorator.py", line 30, in server_conf = file_utils.load_json_conf("arch/conf/server_conf.json") File "/usr/local/lib/python3.6/site-packages/cachetools/init.py", line 46, in wrapper v = func(*args, **kwargs) File "/fate/arch/api/utils/file_utils.py", line 43, in load_json_conf raise EnvironmentError("loading json file config from '{}' failed!".format(json_conf_path)) OSError: loading json file config from '/fate/arch/conf/server_conf.json' failed!

cacoderquan avatar May 29 '19 02:05 cacoderquan

seems there is some error on loading json file config

cacoderquan avatar May 29 '19 02:05 cacoderquan

@tanmc123 this confuses me because I look at server_conf.json which has no problem (as below)

{ "servers": { "roll": { "host": "localhost", "port": 8011 }, "federation": { "host": "localhost", "port": 9394 }, "manager": { "host": "localhost", "http.port": 9380, "grpc.port": 9360 }, "servings": [ "127.0.0.1:8000" ], "proxy": { "host": "localhost", "port": 9370 } } }

cacoderquan avatar May 29 '19 03:05 cacoderquan

@tanmc123 I tried to debug it, but could not find any solutions. Could you give me some hint/suggestions ? Thanks a lot!

cacoderquan avatar May 29 '19 08:05 cacoderquan

@cacoderquan Have you add /fate into you PYTHONPATH enviroment? Like

export $PYTHONPATH=/fate

tanmc123 avatar May 30 '19 02:05 tanmc123

I have added /fate into my PYTHONPATH enviroment but still get the same error

root@d28bbf5328ac:/fate/examples/hetero_logistic_regression# echo $PYTHONPATH /fate root@d28bbf5328ac:/fate/examples/hetero_logistic_regression# ls conf kill.sh run_arbiter.sh run_guest.sh run_host.sh run_logistic_regression.sh run_logistic_regression_cluster.sh run_logistic_regression_standalone.sh root@d28bbf5328ac:/fate/examples/hetero_logistic_regression# sh run_logistic_regression_standalone.sh

cacoderquan avatar May 30 '19 07:05 cacoderquan

@tanmc123

cacoderquan avatar May 30 '19 07:05 cacoderquan

Hello, I am running the test with 'sh ./federatedml/test/run_test.sh', the error is as follows: File "project/FATE/arch/api/standalone/eggroll.py", line 104, in _open_env return lmdb.open(path, create=True, max_dbs=1, max_readers=1024, lock=write, sync=True, map_size=10_737_418_240) SyntaxError: invalid syntax

When I changed the code at FATE/arch/api/standalone/eggroll.py", line 104 to ‘ return lmdb.open(path, create=True, max_dbs=1, max_readers=1024, lock=write, sync=True, map_size=(10,737,418,240))’,The error has become ‘ File "/project/FATE/arch/api/standalone/eggroll.py", line 104, in _open_env return lmdb.open(path, create=True, max_dbs=1, max_readers=1024, lock=write, sync=True, map_size=(10,737,418,240)) TypeError: unorderable types: tuple() >= int()’

So I would like to ask you what is the reason, thank you!

wkzsgxxn avatar Jun 03 '19 13:06 wkzsgxxn