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

monerod exit gets stuck/hangs at deinitializing p2p; network connection activity continues in background; command window will not close and cannot force process to close #9482

Open
mmortal03 opened this issue Sep 14, 2024 · 1 comment

Comments

@mmortal03
Copy link

mmortal03 commented Sep 14, 2024

This has been happening for years, but because it's difficult to debug the Windows version of monerod and because the issue itself is hard to reproduce every single time, I haven't gotten around to creating an issue report here.

What generally happens (and it just happened to me again today) is that I will run monerod for a while (maybe 12 hours) until it is fully synced, and then I will run the exit command. The exiting steps get to the point of deinitializing p2p, and there it remains stuck. At this point, I will wait maybe 20 minutes, then try clicking the X to close the command window, which will cause it to display the red text warning message (I forget what it says), but the window doesn't close.

If I go into Task Manager and try to force close monerod.exe, I get a popup window saying, "Unable to terminate process", "The operation could not be completed.", "Access is denied."

And something new to add that I just noticed today is that when I go into Resource Monitor after it gets stuck, monerod.exe continues to show network activity and numerous TCP connections, so, clearly, the deinitializing of p2p doesn't fully complete wherever in the actual code that it gets stuck.

Furthermore, I tried using a 3rd party tool such as CurrPorts to manually close out all of these network connections, but this didn't help in terms of closing the monerod.exe process. I think it might've lowered the remaining memory use of monerod.exe, but it still wouldn't close or be forced to close.

Ultimately, the only way I've found to get the process to actually close is to reboot the computer.

I'll run it again today and see if I can capture a log at level 0 to see if there's anything there that might help. (I usually don't run monerod with logging enabled.)

@0xFFFC0000
Copy link
Collaborator

I believe I have encountered this. Though I haven't debugged it to be 100% sure where and why this happens.

I am suspicious of Miniupnpc, but that is just suspicion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants