Let Server start the engine without a config file - #220
Merged
Conversation
Server(config=None) spawns the engine with no --config at all: built-in defaults, no databases — what a converter or upload-driven script wants. Needs an engine >= v0.9.3, which learned to run config-less. Two silent failure modes die with it. A config path that does not exist now fails loudly at start() instead of the engine dying behind the scenes — the docstring used to claim "missing file is tolerated" while the spawned engine refused it. And an engine that exits before serving (the likeliest config-less cause: an engine too old) fails immediately with its exit code and a version hint, instead of hanging until the readiness timeout. Verified against a locally built v0.9.3: Server(config=None, port="auto") boots, answers /version with wire 3, and lists the uploads it rediscovers from the shared data dir.
The exit-code and version-hint diagnostic only fired in the fixed-port readiness loop. In dynamic-port mode — the canonical config-less invocation — a dying engine still raised the opaque "exited before reporting its bound port", with no exit code and no hint. One shared error builder now serves both paths.
ccomb
force-pushed
the
pyvolca-server-no-config
branch
from
July 15, 2026 21:18
e86f606 to
b2806fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server(config=None)spawns the engine with no--configat all: built-in defaults, no databases — what a converter or upload-driven script wants. Needs an engine >= v0.9.3, which learned to run config-less (#211).Two silent failure modes die with it. A config path that does not exist now fails loudly at
start()instead of the engine dying behind the scenes — the docstring used to claim "missing file is tolerated" while the spawned engine refused it. And an engine that exits before serving (the likeliest config-less cause: an engine too old) fails immediately with its exit code and a version hint, instead of hanging until the readiness timeout.Verified end-to-end against a locally built v0.9.3:
Server(config=None, port="auto")boots, answers/versionwith wire 3, and lists the uploads it rediscovers from the shared data dir. 233 tests green (4 new).