sysdig icon indicating copy to clipboard operation
sysdig copied to clipboard

Can't start a new instance after having stopped the previous one

Open rodrigolc opened this issue 12 years ago • 8 comments

After stopping sysdig, sometimes the next time I try to run it I get this message:

device /dev/sysdig1 is already open. You can't run multiple instances of sysdig.

There's no other sysdig instance running, but the new one can't start. Any idea on what might be happening? Any info I can give you to clarify?

rodrigolc avatar May 29 '14 23:05 rodrigolc

Your sysdig-probe might have ended up in a very weird state. Do you have a way to replicate this issue? I've been seeing it once every few months and I've never been able to reproduce it and thus work on it.

gianlucaborello avatar May 30 '14 15:05 gianlucaborello

By "replicate this issue" I mean restarting in a clean state (e.g. "reboot" or "rmmod sysdig-probe") and make the problem happen again.

gianlucaborello avatar May 30 '14 15:05 gianlucaborello

The first time it happened, I tried modprobe -r sysdig-probe, which caused a kernel panic on the host machine (the machine I was inspecting was a VM), so I'm not trying that again :$

After rebooting, sysdig worked perfectly, even when I stopped it manually so I could run another instance. When I set up a cron job to do the same thing, it started to go nuts.

It's an x86_64 VM running Ubuntu Precise on VMWare ESXi

I'm trying to replicate the issue on a similar machine running on another host.

rodrigolc avatar May 30 '14 16:05 rodrigolc

Please, if you can give step-by-step instructions on how to make this happen again it would be very very useful, it's a daunting bug.

gianlucaborello avatar May 30 '14 16:05 gianlucaborello

It happened again, but I don't know what caused it. (it was on another VM) I tried then removing the module and reinstalling it, but It still couldn't run sysdig, same error. I'll keep trying

rodrigolc avatar May 30 '14 16:05 rodrigolc

One thing is different, though: When it went kablooey, even after I removed the module, the /dev/sysdig0 file was still there. Now when I remove sysdig-probe, the file vanishes (which I guess is expected)

rodrigolc avatar May 30 '14 16:05 rodrigolc

Can't reproduce. Even removing the device with sudo rm /dev/sysdig0 while sysdig is running didn't break it. My best guess is that it happens randomly. I'll keep trying, and I'll report anything unusual.

rodrigolc avatar May 30 '14 16:05 rodrigolc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 03 '23 02:03 github-actions[bot]