kuscia
kuscia copied to clipboard
本地调试,启动报错
我在本地启动 cmd\kuscia\main.go 时 ,在启动containerd过程时报错。
请问你本地是什么环境, 本地启动的方式是什么, 可以看下containerd的具体日志信息 ${运行目录}/var/logs/containerd.log
请问你本地是什么环境, 本地启动的方式是什么, 可以看下containerd的具体日志信息 ${运行目录}/var/logs/containerd.log
在我本地机器ubuntu系统中,模拟容器环境,使用IDE开发工具调试模式运行的代码。
要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?
要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?
目前还没有相关手册,初步怀疑是本地没有正确安装containerd环境,可以贴出 containered的日志吗: ${运行目录}/var/logs/containerd.log
要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?
目前还没有相关手册,初步怀疑是本地没有正确安装containerd环境,可以贴出 containered的日志吗: ${运行目录}/var/logs/containerd.log
这是日志内容: time="2023-09-06T19:28:15.603920600+08:00" level=info msg="Connect containerd service" time="2023-09-06T19:28:15.603961477+08:00" level=info msg="using legacy CRI server" time="2023-09-06T19:28:15.603967988+08:00" level=info msg="using experimental NRI integration - disable nri plugin to prevent this" time="2023-09-06T19:28:15.603994150+08:00" level=info msg="Get image filesystem path "/home/kuscia/containerd/root/io.containerd.snapshotter.v1.overlayfs"" time="2023-09-06T19:28:15.610146622+08:00" level=info msg="Start subscribing containerd event" time="2023-09-06T19:28:15.612302639+08:00" level=info msg="Start recovering state" containerd: failed to get listener for main ttrpc endpoint: chown /home/kuscia/containerd/run/containerd.sock.ttrpc: operation not permitted
要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?
目前还没有相关手册,初步怀疑是本地没有正确安装containerd环境,可以贴出 containered的日志吗: ${运行目录}/var/logs/containerd.log
这是日志内容: time="2023-09-06T19:28:15.603920600+08:00" level=info msg="Connect containerd service" time="2023-09-06T19:28:15.603961477+08:00" level=info msg="using legacy CRI server" time="2023-09-06T19:28:15.603967988+08:00" level=info msg="using experimental NRI integration - disable nri plugin to prevent this" time="2023-09-06T19:28:15.603994150+08:00" level=info msg="Get image filesystem path "/home/kuscia/containerd/root/io.containerd.snapshotter.v1.overlayfs"" time="2023-09-06T19:28:15.610146622+08:00" level=info msg="Start subscribing containerd event" time="2023-09-06T19:28:15.612302639+08:00" level=info msg="Start recovering state" containerd: failed to get listener for main ttrpc endpoint: chown /home/kuscia/containerd/run/containerd.sock.ttrpc: operation not permitted
我的启动用户不是root
那是用root用户启动一下试试看呢, 我们现在不支持rootless
如果想本地调试kuscia, 由于裸机运行环境复杂,我们更推荐在容器中运行。
- make image 产生新的kuscia镜像
- 根据 quickstart 部署中心化/p2p的全家桶
- 根据 部署文档 按需部署master/lite/autonomy
那是用root用户启动一下试试看呢, 我们现在不支持rootless
我现在使用root运行遇到了新的异常
2023-09-07 14:29:45.707 INFO autonomy/autonomy.go:212 create domain bob 2023-09-07 14:29:45.739 ERROR modules/containerd.go:121 context canceled 2023-09-07 14:29:45.739 ERROR modules/envoy.go:146 context canceled 2023-09-07 14:29:45.739 INFO supervisor/supervisor.go:72 [envoy] start and watch subprocess 2023-09-07 14:29:45.739 INFO supervisor/supervisor.go:79 [envoy] try to start new process 2023-09-07 14:29:45.739 WARN supervisor/supervisor.go:81 [envoy] run process failed with start process(0) failed with context canceled 2023-09-07 14:29:45.739 ERROR modules/envoy.go:141 startup process failed at first time, so stop at once, error: start process(0) failed with context canceled
[2023-09-07 14:25:41.636][4646][info][main] [external/envoy/source/server/server.cc:458] response trailer map: 144 bytes: grpc-message,grpc-status [2023-09-07 14:25:41.654][4646][info][main] [external/envoy/source/server/server.cc:819] runtime: layers:
- name: static_layer static_layer: re2: max_program_size: error_level: 512 overload: global_downstream_max_connections: 32768 [2023-09-07 14:25:41.669][4646][critical][main] [external/envoy/source/server/server.cc:130] error initializing configuration '/home/kuscia/etc/conf/envoy.yaml': unable to open file 'var/logs/envoy/envoy_admin.log': No such file or directory [2023-09-07 14:25:41.671][4646][info][main] [external/envoy/source/server/server.cc:972] exiting
你的Ubuntu版本是哪个? 以及是用的WSL方式? 还有就是你并没有在docker中跑kuscia,直接使用的Ubuntu本地编译kuscia,然后直接执行的模式是吗?
- /envoy.yaml 问题我们已经收到,可以先通过手动改envoy.yaml 中 envoy_admin.log的path, 改成本地绝对路径试试看呢