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

Unable to load plugin with missing tpr.yml #6003

Closed
henningrck opened this issue Jan 1, 2025 · 0 comments · Fixed by #6004
Closed

Unable to load plugin with missing tpr.yml #6003

henningrck opened this issue Jan 1, 2025 · 0 comments · Fixed by #6004
Labels
bug: unconfirmed Potential bugs that need replicating to verify.

Comments

@henningrck
Copy link

henningrck commented Jan 1, 2025

Type of bug

Error in console

/ess dump all output

https://essentialsx.net/dump.html?id=6554aaea3d7640728ec800758ddbb701

Error log (if applicable)

https://gist.github.com/henningrck/273e6ab72473780a13c121f6301da8ec

Bug description

When loading Essentials v2.21.0-dev+153-8e53214, the random teleport config is going to be upgraded, even though the config file does not exist yet. This causes an exception and the plugin cannot be loaded.

Steps to reproduce

  1. Set up a new server
  2. Activate Essentials plugin, version v2.21.0-dev+153-8e53214
  3. Make sure, there's no Essentials config directory yet
  4. Start the server

Expected behaviour

A config directory containing all the required config files is created.

Actual behaviour

The config directory is created partially. The tpr.yml file is missing, and thus an exception is thrown when trying to migrate it. The plugin crashed and cannot be loaded.

Additional Information

No response

@henningrck henningrck added the bug: unconfirmed Potential bugs that need replicating to verify. label Jan 1, 2025
mdcfe pushed a commit that referenced this issue Jan 1, 2025
…yet (#6003)

If there's no tpr.yml, upgrading the random teleport config will fail
and the plugin cannot be loaded.
Starmism pushed a commit to valence-smp/Essentials that referenced this issue Jan 8, 2025
…yet (EssentialsX#6003)

If there's no tpr.yml, upgrading the random teleport config will fail
and the plugin cannot be loaded.
Euphillya added a commit to Euphillya/Essentials-Folia that referenced this issue Jan 18, 2025
EssentialsX@5515f9f Rework the provider system (EssentialsX#5087)
EssentialsX@8e53214 Fix paper maven repository URL (EssentialsX#6002)
EssentialsX@667b0f7 Skip upgrading random teleport config when tpr.yml isn't initialized yet (EssentialsX#6003)
EssentialsX@803771e Switch to pastes.dev for /ess dump (EssentialsX#6011)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: unconfirmed Potential bugs that need replicating to verify.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant