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

Support debugging by attaching go process which is run by docker compose #11

Open
chokobole opened this issue Apr 3, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@chokobole
Copy link
Contributor

chokobole commented Apr 3, 2023

Issue Type

Feature Request

Kroma Version

0.1.0

OS Platform and Distribution

Linux Ubuntu 22.04

Go version

go1.19.3 linux/amd64

Node version

No response

Current Behaviour?

In ops-devnet/docker-compose.yaml, set pid to host on kanvas-node.

kanvas-node:
  pid: host

And then set ptrace_scope to 0

> sudo su -
> echo 0 >  /proc/sys/kernel/yama/ptrace_scope

And then if I try to debug by attaching go process is rejected with this message.

Failed to attach: Could not attach to pid 39997: current user does not own the process.

Which feature do you want to expect?

I expect the process is launched with uid:gid so that we are able to debug. Currently, we should rely on the log message, which is very difficult when we consider that the logs are emitted so long.

@chokobole chokobole added the feature New feature or request label Apr 3, 2023
@chokobole chokobole assigned chokobole and unassigned kangsorang Apr 10, 2023
@chokobole chokobole changed the title Support debugging by attaching go process which is ran by docker compose Support debugging by attaching go process which is run by docker compose Apr 11, 2023
chokobole added a commit that referenced this issue Apr 12, 2023
This commit helps user to debug a process which is run by docker
compose. Currently, this only works on Linux. There should be another
way for macOS users.

Resolves: #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants