-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
A couple of safe modes with mysql and deleted towns that didn't delete #4170
Comments
The first one says The 2nd one looks like the same issue from the previous ticket. |
Yes, but I've confirmed with both Question himself and online witnesses that Question deleted the town. Gcnner is on the assistant list. I assume he's major due to towny inheritance. I could search the logs if it would help. |
Also, Bethlehem is no longer in a nation (It was in Arkhalis) and no longer has a spawn set, both of which I see on my failed deletions. |
If a town attempts to set a mayor who is not part of the town, and the town has no residents, the town will be deleted. - Closes #4170.
- Removes towns.txt and nations.txt files on flatfile databases. - Loads old towns.txt and nations.txt to ensure that orphaned files in the towns & nations folders are not loaded. If successfully loaded, the towns.txt and nations.txt files are deleted. - Residents now store their Town, and Towns do not store their Residents. - Towns now store their Nation, and Nations do not store their Towns. - Towny now handles loading a mayor for a town intelligently. - If a town attempts to set a mayor who is not part of the town, and the town has no residents, the town will be deleted. - Closes #4170. - Towny now handles loading the capital of a nation intelligently. - Little fixes for TownySQLSource: - Hit TownySQLSource with the formatting stick. - Add tar/tar.gz backups to the backup code. - Make deletePlotGroup actually do something. - Invite Cleanup, courtesy of Siris with PR #4269. - Cleanup Confirmation class and properly implement async, courtesy of Siris with PR #4280. - Remove Secondary POM file, courtesy of TheFlagCourier with PR #4278.
What steps will reproduce the problem?
What is the expected output?
Okay: what happened:
The mayor of Bethlehem (Question11) deleted his town with /t delete.
At the next restart the server went into safe mode with this error:
https://paste.gg/p/Momshroom/8ad07bc58da34ad28300b92f0ac25d5d
At that time, the mysql entry for Bethlehem was this:
https://paste.gg/p/Momshroom/52b76de921fb41a3a3a6abe190cfe980
(note that Question11 was no longer listed as mayor, one of his old assistants is. Question is a fairly active player and was not deleted: he just moved to a different town.)
For reference of what the town likely looked like before it was deleted, here's its mysql table entry from my test server:
https://paste.gg/p/Momshroom/cd821d732a734adc803cfce6686f08ff
I deleted Bethlehem from the town table, then restarted.
MiBoi5's town, Dark_Room, had been deleted due to lack of funds sometime in the same period as Bethlehem was deleted and once we fixed Bethlehem, Dark_Room caused its own safe mode:
Dark_Room's safe mode error:
https://paste.gg/p/Momshroom/72eee1570a974dd6bdc1bdf46a9bae0e
Dark_Room's town table entry before fixing:
https://paste.gg/p/Momshroom/cef48981648d4062bba3a311f749fb97
Reference of what Dark_Room's mysql likely looked like before it was deleted, from my test server:
https://paste.gg/p/Momshroom/6cee89db982841e7833343e96554a728
Deleting Dark_Room from the town table and restarting fixed the error and we loaded fine.
What is your Towny version?
Do not say "latest".
0.96.2.3
What is your spigot/craftbukkit version?
Do not say "latest".
Paper-89 (1.16.1)
Please use Pastebin.com to link the following files:
Skipping these files is not an option. It is the easiest way to diagnose an issue ticket properly. If you do skip this step then your ticket will most likely be deleted and you will be asked to resubmit.
Your full server startup from the logs\latest.log :
https://paste.gg/p/Momshroom/2f29d59c511c4e0a8dbc88223be4b207
Your Towny config.yml (if using MySQL please remove password,) :
https://paste.gg/p/Momshroom/5092b9f0aefe4b02af61f8df84be756f
Your townyperms.yml :
really not relevant here. (if you need it, I'll happily go make a paste, but I can't imagine you do)
Your log's error :
errors above in the explanation.
The text was updated successfully, but these errors were encountered: