Re: ERROR: Unauthorized variable: host_uuid


Keye Zhou
 

The problem is that the configuration protocols have been updated. The model used early configuration version, and it is kind of hard for me to modify them.

Haining Zhang <hi@...> 于2022年5月17日周二 10:33写道:

The FATE 1.2.0 is a very early version and it is no longer supported. Could you upgrade to the latest version (v1.8) to have a try?

Henry


On 2022/5/17 1:09 AM, Zhoukeye11@... wrote:
I'm using Fate1.2.0 and deployed a model https://github.com/chengziqiang/FL_DrugDiscovery. When training the given model there is an error. Logs are shown below: 
  • ValueError: Unauthorized variable: host_uuid
  • 160 "2022-05-16 16:53:14,549 - task_executor.py[line:132] - ERROR: Unauthorized variable: host_uuid"
  • 161 Traceback (most recent call last):
  • 162 File "/fate/fate_flow/driver/task_executor.py", line 119, in run_task
  • 163 run_object.run(parameters, task_run_args)
  • 164 File "/fate/federatedml/model_base.py", line 75, in run
  • 165 self._init_runtime_parameters(component_parameters)
  • 166 File "/fate/federatedml/model_base.py", line 47, in _init_runtime_parameters
  • 167 self._init_model(param)
  • 168 File "/fate/federatedml/nn/ecfp_nn/enter_point.py", line 127, in _init_model
  • 169 super(ECFPNNClient, self)._init_model(param)
  • 170 File "/fate/federatedml/nn/ecfp_nn/enter_point.py", line 64, in _init_model
  • 171 enable_secure_aggregate=secure_aggregate)
  • 172 File "/fate/federatedml/framework/homo/procedure/aggregator.py", line 191, in with_role
  • 173 return Host().register_aggregator(transfer_variable, enable_secure_aggregate)
  • 174 File "/fate/federatedml/framework/homo/procedure/aggregator.py", line 170, in register_aggregator
  • 175 transfer_variables).create_cipher()
  • 176 File "/fate/federatedml/framework/homo/procedure/random_padding_cipher.py", line 60, in create_cipher
  • 177 uuid = self.generate_uuid()
  • 178 File "/fate/federatedml/framework/homo/sync/identify_uuid_sync.py", line 60, in generate_uuid
  • 179 self._uuid_transfer_variable.remote(obj=_uid, role=consts.ARBITER, idx=0, suffix=ind)
  • 180 File "/fate/federatedml/transfer_variable/base_transfer_variable.py", line 117, in remote
  • 181 return self.remote_parties(obj=obj, parties=parties, suffix=suffix)
  • 182 File "/fate/federatedml/transfer_variable/base_transfer_variable.py", line 72, in remote_parties
  • 183 parties=parties)
  • 184 File "/fate/arch/api/transfer/standalone.py", line 59, in remote
  • 185 self._remote_side_auth(name=name, parties=parties)
  • 186 File "/fate/arch/api/transfer/__init__.py", line 271, in _remote_side_auth
  • 187 if self._role not in self._authorize.authorized_src_roles(variable_name=name):
  • 188 File "/fate/arch/api/transfer/__init__.py", line 209, in authorized_src_roles
  • 189 self._update_auth(variable_name)
  • 190 File "/fate/arch/api/transfer/__init__.py", line 199, in _update_auth
  • 191 raise ValueError(f"Unauthorized variable: {v_name}")

Join Fate-FedAI@lists.lfaidata.foundation to automatically receive all group messages.