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

[bug]: not able to start keploy with docker #1862

Open
1 task done
Sonichigo opened this issue May 7, 2024 · 2 comments
Open
1 task done

[bug]: not able to start keploy with docker #1862

Sonichigo opened this issue May 7, 2024 · 2 comments
Labels
bug Something isn't working keploy

Comments

@Sonichigo
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

image

I am using my application with keploy and docker : -

keploy record -c "docker compose up" --containerName "bunSqlApp" --buildDelay 50s

Afer one-click, keploy alias variable is set as below

alias keploy='docker run --pull always --name keploy-v2 -p 16789:16789 --privileged --pid=host -it -v $(pwd):$(pwd) -w $(pwd) -v /sys/fs/cgroup:/sys/fs/cgroup -v debugfs:/sys/kernel/debug:rw -v /sys/fs/bpf:/sys/fs/bpf -v /var/run/docker.sock:/var/run/docker.sock -v /Users/sonichigi/.keploy:/root/.keploy --rm ghcr.io/keploy/keploy'

Steps to reproduce

  1. I used one-click installation curl -O https://raw.githubusercontent.com/keploy/keploy/main/keploy.sh && source keploy.sh
  2. run keploy with docker
🐰 Keploy: 2024-05-07T09:30:35Z         ERROR   failed to attach the kretprobe hook on tcp_v4_connect   {"error": "creating tracefs event (arch-specific fallback for \"tcp_v4_connect\"): creating probe entry on tracefs: checking trace event ebpf_0e10d539f465b608/tcp_v4_connect: neither debugfs nor tracefs are mounted"}
🐰 Keploy: 2024-05-07T09:30:35Z         ERROR   failed to load hooks    {"error": "creating tracefs event (arch-specific fallback for \"tcp_v4_connect\"): creating probe entry on tracefs: checking trace event ebpf_0e10d539f465b608/tcp_v4_connect: neither debugfs nor tracefs are mounted"}
🐰 Keploy: 2024-05-07T09:30:35Z         ERROR   failed to start the hooks and proxy     {"error": "failed to hook into the app"}

Environment

Release

Version

Local

Repository

keploy

@Sonichigo Sonichigo added the bug Something isn't working label May 7, 2024
@github-actions github-actions bot added the keploy label May 7, 2024
@charankamarapu
Copy link
Member

Hi @Sonichigo latest release is working fine for me with samples-go repo and gin-mongo application. Can you try with latest release? I suggest you to try first with gin-mongo and then with your sample app where you faced the error.

@Sonichigo
Copy link
Member Author

Hi @charankamarapu yep tried with latest release installed from one and with gin-mongo itself, still not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working keploy
Projects
None yet
Development

No branches or pull requests

2 participants