When `forced-hosts` section in config is gone, errors appear
Open
Nobody has claimed this yet.
type: bug
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 960
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
Expected Behavior
The server should start.
Actual Behavior
The server crashes with this error:
[10:30:15 ERROR]: Server 'factions' for forced host 'factions.example.com' does not exist
[10:30:15 ERROR]: Server 'minigames' for forced host 'minigames.example.com' does not exist
[10:30:15 ERROR]: Your configuration is invalid. Velocity will not start up until the errors are resolved.
Steps to Reproduce
Just remove that section.
If it matters, my servers section was:
[servers]
lobby = "1.2.3.4:25576"
try = ["lobby"]
Plugin List
None
Velocity Version
3.3.0
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue on Velocity 3.3.0 with the forced-hosts section removed and the shown servers configuration. Trace the configuration handling for forced hosts and determine why the removed section still produces references to factions and minigames. Done means the server starts without those errors when forced-hosts is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100