Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地调试,启动报错 #104

Open
sqh539 opened this issue Sep 6, 2023 · 11 comments
Open

本地调试,启动报错 #104

sqh539 opened this issue Sep 6, 2023 · 11 comments
Assignees
Labels
deploy deployment

Comments

@sqh539
Copy link

sqh539 commented Sep 6, 2023

我在本地启动 cmd\kuscia\main.go 时 ,在启动containerd过程时报错。
image

@yushiqie
Copy link
Contributor

yushiqie commented Sep 7, 2023

请问你本地是什么环境, 本地启动的方式是什么, 可以看下containerd的具体日志信息 ${运行目录}/var/logs/containerd.log

@sqh539
Copy link
Author

sqh539 commented Sep 7, 2023

请问你本地是什么环境, 本地启动的方式是什么, 可以看下containerd的具体日志信息 ${运行目录}/var/logs/containerd.log

在我本地机器ubuntu系统中,模拟容器环境,使用IDE开发工具调试模式运行的代码。

@sqh539
Copy link
Author

sqh539 commented Sep 7, 2023

要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?

@yushiqie
Copy link
Contributor

yushiqie commented Sep 7, 2023

要想学习和本地开发调试kuscia代码,需要如何部署开发环境呢?有没有相关手册?

目前还没有相关手册,初步怀疑是本地没有正确安装containerd环境,可以贴出 containered的日志吗: ${运行目录}/var/logs/containerd.log

@sqh539
Copy link
Author

sqh539 commented Sep 7, 2023

要想学习和本地开发调试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

@sqh539
Copy link
Author

sqh539 commented Sep 7, 2023

要想学习和本地开发调试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

@yushiqie
Copy link
Contributor

yushiqie commented Sep 7, 2023

那是用root用户启动一下试试看呢, 我们现在不支持rootless

@yushiqie
Copy link
Contributor

yushiqie commented Sep 7, 2023

如果想本地调试kuscia, 由于裸机运行环境复杂,我们更推荐在容器中运行。

  1. make image 产生新的kuscia镜像
  2. 根据 quickstart 部署中心化/p2p的全家桶
  3. 根据 部署文档 按需部署master/lite/autonomy

@yushiqie yushiqie self-assigned this Sep 7, 2023
@sqh539
Copy link
Author

sqh539 commented Sep 7, 2023

那是用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

@longshan-ant
Copy link
Member

你的Ubuntu版本是哪个? 以及是用的WSL方式?
还有就是你并没有在docker中跑kuscia,直接使用的Ubuntu本地编译kuscia,然后直接执行的模式是吗?

@yushiqie
Copy link
Contributor

yushiqie commented Sep 7, 2023

  • /envoy.yaml
    问题我们已经收到,可以先通过手动改envoy.yaml 中 envoy_admin.log的path, 改成本地绝对路径试试看呢

AgravicCastle pushed a commit to AgravicCastle/kuscia that referenced this issue Sep 19, 2023
* fix deadlock in ecdhpsi when setting up link throttle window
@longshan-ant longshan-ant added the deploy deployment label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy deployment
Projects
None yet
Development

No branches or pull requests

3 participants