Repository navigation
fit python: Address already in use #263
Copy link
Copy link
Labels
Milestone
Description
Activity
- addedtype: bugA general bugA general bugstatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
on Aug 26, 2025 这里修改注册中心的地址成什么了呢?能不能把详细的操作步骤在下面列一下,我根据你的操作尝试进行一下复现。
- addedstatus: feedback-providedFeedback has been providedFeedback has been providedand removedstatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
on Aug 26, 2025 - addedstatus: waiting-for-internal-feedbackAn issue that needs input from a member or another FIT teamAn issue that needs input from a member or another FIT teamand removedstatus: feedback-providedFeedback has been providedFeedback has been provided
on Aug 27, 2025 我在MacOS上面的确也发生了类似的问题,直接启动就会报:
2025-08-28 10:28:39,561 - broker_utils:115 - [WARNING] - user exception type: <class 'OSError'> - [MainThread] 2025-08-28 10:28:39,561 - broker_utils:116 - [WARNING] - user exception value: [Errno 48] Address already in use - [MainThread] 2025-08-28 10:28:39,564 - broker_utils:117 - [WARNING] - user exception trace back: File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 104, in wrapper return _execute(*args, **kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 89, in wrapper return _execute(*args, **kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 139, in fit_lb_and_execute return broker.fit_execute(address, generic_id, fitable_id, fit_ref, *args, timeout=timeout, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/trace.py", line 211, in wrapper return broker_execute(*args, **kwargs) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/configure_based_brokerimpl.py", line 362, in fit_execute return address(*args) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/plugin/fit_py_server_http/http_server.py", line 43, in server_start init_fit_http_server(port_to_listen) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/plugin/fit_py_server_http/fit_http_server.py", line 279, in init_fit_http_server _http_server.listen(port) File "/Users/jiyujie/miniconda3/lib/python3.10/site-packages/tornado/tcpserver.py", line 183, in listen sockets = bind_sockets( File "/Users/jiyujie/miniconda3/lib/python3.10/site-packages/tornado/netutil.py", line 162, in bind_sockets sock.bind(sockaddr) - [MainThread] 2025-08-28 10:28:39,565 - broker_utils:141 - [ERROR] - non-degradable fit exception found: [Errno 48] Address already in use - [MainThread] 2025-08-28 10:28:39,565 - broker_utils:108 - [WARNING] - fit invoke error with fitable info (d087020c54ea44e3a8a893e5fbc2959e:ed770dde7be44cf18fe0ebe2fc7a773d): [Errno 48] Address already in use - [MainThread] 2025-08-28 10:28:39,565 - broker_utils:141 - [ERROR] - non-degradable fit exception found: [Errno 48] Address already in use - [MainThread] booting failed, terminating Traceback (most recent call last): File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 365, in wrapper return func(*args, **kw) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 349, in wrapper ret = func(*args, **kw) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/__init__.py", line 203, in main bootstrap_start(plugins_info, runtime_context.get_item(const.CONFIG_FOLDER_ARG_NAME)) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 411, in wrapper ret = func(*args, **kw) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 52, in fit_invoke_wrapper return select_broker.select(generic_id) \ File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/select_broker.py", line 119, in fit_selector_invoke return self.broker.fit_ffp_invoke(self._genericable_id, self._fitable_identifier, fit_ref, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 48, in fit_ffp_invoke raise err from None File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 37, in fit_ffp_invoke result = self.fit_invoke(generic_id, fitable_identifier, fit_ref, *args, timeout=timeout, is_async=is_async, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 148, in fit_invoke return fit_lb_and_execute(self, generic_id, the_id, fit_ref, *args, timeout=timeout, is_async=is_async, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 129, in wrapper return _execute(broker, generic_id, cur_fitable_id, fit_ref, *fit_args, **fit_kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 104, in wrapper return _execute(*args, **kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 89, in wrapper return _execute(*args, **kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 139, in fit_lb_and_execute return broker.fit_execute(address, generic_id, fitable_id, fit_ref, *args, timeout=timeout, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/simple_brokerimpl.py", line 38, in fit_execute return address(*args) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/bootstrap/fit_py_bootstrap/bootstrap.py", line 103, in start _start_all_servers() File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 411, in wrapper ret = func(*args, **kw) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/bootstrap/fit_py_bootstrap/bootstrap.py", line 160, in _start_all_servers select(const.FIT_SERVER_START_GEN_ID).route_filter(_start_server_fitable_exists).fit_selector_invoke() File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/select_broker.py", line 119, in fit_selector_invoke return self.broker.fit_ffp_invoke(self._genericable_id, self._fitable_identifier, fit_ref, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 48, in fit_ffp_invoke raise err from None File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 37, in fit_ffp_invoke result = self.fit_invoke(generic_id, fitable_identifier, fit_ref, *args, timeout=timeout, is_async=is_async, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 148, in fit_invoke return fit_lb_and_execute(self, generic_id, the_id, fit_ref, *args, timeout=timeout, is_async=is_async, File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 129, in wrapper return _execute(broker, generic_id, cur_fitable_id, fit_ref, *fit_args, **fit_kws) File "/Users/jiyujie/projects/github/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 118, in wrapper raise FitException(InternalErrorCode.EXCEPTION_FROM_USER_CODE_OCCURRED.value, fitframework.core.exception.fit_exception.FitException: [Errno 48] Address already in use 2025-08-28 10:28:39,567 - decorators:371 - [ERROR] - [Errno 48] Address already in use.- linked a pull request that will close this issue[fit] fix python heartbeat thread on mac #268
on Aug 29, 2025 - addedin: fitIssues in FIT modulesIssues in FIT modulesand removedstatus: waiting-for-internal-feedbackAn issue that needs input from a member or another FIT teamAn issue that needs input from a member or another FIT team
on Aug 29, 2025






问题摘要 / Issue Summary
python fit 启动报错
版本信息 / Version Information
v3.5.0-M6
浏览器 / Browser
其他 (请在下方说明) / Other (please specify below)
操作系统 / Operating System
macOS (Apple Silicon)
发生了什么?/ What happened?
从官网clone的python fit,仅在 registry_client插件的配置文件中修改了注册中心地址,其余都是默认配置。fit-framework/framework/fit/python/fitframework 目录下启动报错:
2025-08-26 19:16:10,241 - broker_utils:115 - [WARNING] - user exception type: <class 'OSError'> - [MainThread]
2025-08-26 19:16:10,241 - broker_utils:116 - [WARNING] - user exception value: [Errno 48] Address already in use - [MainThread]
2025-08-26 19:16:10,246 - broker_utils:117 - [WARNING] - user exception trace back:
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 104, in wrapper
return _execute(*args, **kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 89, in wrapper
return _execute(*args, **kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 139, in fit_lb_and_execute
return broker.fit_execute(address, generic_id, fitable_id, fit_ref, *args, timeout=timeout,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/trace.py", line 211, in wrapper
return broker_execute(*args, **kwargs)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/configure_based_brokerimpl.py", line 362, in fit_execute
return address(*args)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/plugin/fit_py_server_http/http_server.py", line 43, in server_start
init_fit_http_server(port_to_listen)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/plugin/fit_py_server_http/fit_http_server.py", line 279, in init_fit_http_server
_http_server.listen(port)
File "/Users/xiaohao/Project/java/fit-framework/framework/fit/python/venv/lib/python3.9/site-packages/tornado/tcpserver.py", line 183, in listen
sockets = bind_sockets(
File "/Users/xiaohao/Project/java/fit-framework/framework/fit/python/venv/lib/python3.9/site-packages/tornado/netutil.py", line 162, in bind_sockets
sock.bind(sockaddr)
2025-08-26 19:16:10,246 - broker_utils:141 - [ERROR] - non-degradable fit exception found: [Errno 48] Address already in use - [MainThread]
2025-08-26 19:16:10,246 - broker_utils:108 - [WARNING] - fit invoke error with fitable info (d087020c54ea44e3a8a893e5fbc2959e:ed770dde7be44cf18fe0ebe2fc7a773d): [Errno 48] Address already in use - [MainThread]
2025-08-26 19:16:10,246 - broker_utils:141 - [ERROR] - non-degradable fit exception found: [Errno 48] Address already in use - [MainThread]
booting failed, terminating
Traceback (most recent call last):
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 365, in wrapper
return func(*args, **kw)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 349, in wrapper
ret = func(*args, **kw)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/init.py", line 203, in main
bootstrap_start(plugins_info, runtime_context.get_item(const.CONFIG_FOLDER_ARG_NAME))
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 411, in wrapper
ret = func(*args, **kw)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 52, in fit_invoke_wrapper
return select_broker.select(generic_id)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/select_broker.py", line 119, in fit_selector_invoke
return self.broker.fit_ffp_invoke(self._genericable_id, self._fitable_identifier, fit_ref,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 48, in fit_ffp_invoke
raise err from None
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 37, in fit_ffp_invoke
result = self.fit_invoke(generic_id, fitable_identifier, fit_ref, *args, timeout=timeout, is_async=is_async,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 148, in fit_invoke
return fit_lb_and_execute(self, generic_id, the_id, fit_ref, *args, timeout=timeout, is_async=is_async,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 129, in wrapper
return _execute(broker, generic_id, cur_fitable_id, fit_ref, *fit_args, **fit_kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 104, in wrapper
return _execute(*args, **kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 89, in wrapper
return _execute(*args, **kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 139, in fit_lb_and_execute
return broker.fit_execute(address, generic_id, fitable_id, fit_ref, *args, timeout=timeout,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/simple_brokerimpl.py", line 38, in fit_execute
return address(*args)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/bootstrap/fit_py_bootstrap/bootstrap.py", line 103, in start
_start_all_servers()
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/api/decorators.py", line 411, in wrapper
ret = func(*args, **kw)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/bootstrap/fit_py_bootstrap/bootstrap.py", line 160, in _start_all_servers
select(const.FIT_SERVER_START_GEN_ID).route_filter(_start_server_fitable_exists).fit_selector_invoke()
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/select_broker.py", line 119, in fit_selector_invoke
return self.broker.fit_ffp_invoke(self._genericable_id, self._fitable_identifier, fit_ref,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 48, in fit_ffp_invoke
raise err from None
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 37, in fit_ffp_invoke
result = self.fit_invoke(generic_id, fitable_identifier, fit_ref, *args, timeout=timeout, is_async=is_async,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker.py", line 148, in fit_invoke
return fit_lb_and_execute(self, generic_id, the_id, fit_ref, *args, timeout=timeout, is_async=is_async,
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 129, in wrapper
return _execute(broker, generic_id, cur_fitable_id, fit_ref, *fit_args, **fit_kws)
File "/Users/xiaohao/Project/python/fit-framework/framework/fit/python/fitframework/core/broker/broker_utils.py", line 118, in wrapper
raise FitException(InternalErrorCode.EXCEPTION_FROM_USER_CODE_OCCURRED.value,
fitframework.core.exception.fit_exception.FitException: [Errno 48] Address already in use
2025-08-26 19:16:10,248 - decorators:371 - [ERROR] - [Errno 48] Address already in use.
期望的行为 / Expected Behavior
不期望看到报错
重现步骤 / Steps to Reproduce
直接启动python版的fit框架即可看到错误
相关日志 / Relevant Logs
额外信息 / Additional Context
No response
确认事项 / Confirmations
我已经搜索了现有的issues,确认这不是重复问题
I have searched existing issues and confirmed this is not a duplicate
我已经阅读了项目文档和 FAQ
I have read the project documentation and FAQ
我提供的信息准确完整
The information I provided is accurate and complete
我愿意协助测试问题修复 (可选)
I'm willing to help test the bug fix (optional)