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

Error when towny stops on a restart #7385

Closed
Mundo-Minecraft opened this issue Apr 27, 2024 · 5 comments
Closed

Error when towny stops on a restart #7385

Mundo-Minecraft opened this issue Apr 27, 2024 · 5 comments
Labels

Comments

@Mundo-Minecraft
Copy link

What steps will reproduce the problem?

In the previous report (#7372) I got a java error when restarting the server, now the error no longer appears. But the result is the same, towny does not close correctly and leaves the server "blocked"

What is the expected output?

A successful reboot

Towny version

0.100.2.6

Server version

Paper version git-Paper-496 (MC: 1.20.4)

Please use Pastebin.com to link the following files

  1. Your full server startup from the logs\latest.log: https://pastebin.com/0666NKYS
  2. Your Towny config.yml: https://pastebin.com/XDTASugH
  3. Your townyperms.yml: https://pastebin.com/H5uTJcsS
  4. Your log's error: https://pastebin.com/PrRJbJYT

(optional) If this is to do with permissions,
5. Your permissions file:

(optional) If this is to do with chat,
6. Your chatconfig.yml:
7. Your channels.yml:

@Warriorrrr
Copy link
Member

Please provide a thread dump from while the server is blocked

@Mundo-Minecraft
Copy link
Author

Please provide a thread dump from while the server is blocked

Hello, I am looking for the best way to do that but I find unreliable information. How can I provide that information?

Thank you.

@Warriorrrr
Copy link
Member

Use the jps command to get process ids for currently running java processes, then use jstack <process id> for the server process

@Mundo-Minecraft
Copy link
Author

Mundo-Minecraft commented Apr 27, 2024

Hello, when I write jps it tells me 7920 but when I write jstack 7920 it says "the target process 7920 does not respond within 10500 ms or HotSpot VM not loaded" so everything leaves this log

https://pastebin.com/HvgyijEP

If I use the pid that appears when doing top, leave this other log

https://pastebin.com/kgw2xtiZ

All of this has been with java 22, since I just updated the server to java 22 since minecraft 1.20.5 requires 21 (I had java 17).

Thx.

@Mundo-Minecraft
Copy link
Author

It's already solved, I'll comment on what happened in case it happens to someone else. I have had Towny installed for 2 years (I restarted worlds 2 years ago) although I have been using it since 2013.
I transferred the mysql to flatfile and saw that everything was working correctly (I didn't imagine it could be the database). Then I went from flatfile to mysql and now it works correctly and the server restarts fine...

It is very strange, I only went from mysql to flatfile and from flatfile to mysql... but it is solved

Greetings.

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

No branches or pull requests

2 participants