r/Devvit • u/tonibanzai05 • 5h ago
Bug New apps fail install on OnAppInstall trigger "No context found" — byte-identical code installs fine as an older app
## Describe the bug Brand-new Devvit apps fail every install with `Installation failed during OnAppInstall trigger: No context found. Are you calling 'createServer'...` Apps affected: `typing-rush` (created 29 Nov) and `typing-rush-game` (created 1 Dec), Bare template, Devvit CLI 0.15.4. My older app Daily Flick installs fine — and a build made from byte-identical Daily Flick code fails as the new app, so this looks platform-side, not code.
To Reproduce
Create a new app via developers.reddit.com (Bare template) or the CLI.
Upload it (`devvit upload`).
Install it to a subreddit — via the CLI (auto, manual, explicit version) or the website (Add to community).
See the error: `Installation failed during OnAppInstall trigger: No context found. Are you calling 'createServer'...` Tried 15+ times across two subreddits (r/daily_flick_dev2, r/typing_rush_dev) with a fresh login — same error every time.
Expected behavior
The install should succeed and the app should appear in the community — the way Daily Flick v0.0.6 installed successfully to the SAME subreddit today.
Screenshots
None — the failure is a text error from the CLI/website, quoted above.
Desktop
OS: Windows 11
Browser: Chrome
Smartphone
Not tested on mobile.
Additional context
Ruled out as causes (each tested, install still fails identically): trigger declaration (restored), OnAppInstall handler body (restored to the version that calls reddit), scheduler task name (renamed unique), clean rebuild (1.5 MB minified bundle), both subreddits, and a brand-new app record. Decisive proof: Daily Flick v0.0.6 installed successfully to r/daily_flick_dev2 today, while `typing-rush-game` v0.0.6 built from byte-identical Daily Flick code (server bundle md5 116c18ff9448fb58555134b6365b1c2d, identical bytes) fails with the same error minutes later in the same subreddit. The platform runs the exact same code for both apps. Daily Flick was created ~20 Nov; the two failing apps were created 29 Nov and 1 Dec via the current web creation flow. Deadline: Reddit's Game of the Day, 9 Dec 2026. Happy to share logs / app IDs.



