-
Notifications
You must be signed in to change notification settings - Fork 8
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
ftl dev
controller failed to start randomly errors
#1942
Comments
I think this might be the same issue that @matt2e is working on, though it does look slightly different |
From slack DMs: this is on debug logs would be helpful to see if theres any errors |
maybe related? #1956 |
Also probably #1973 |
This looks like a different issue to #1973 where that one is related to only happening when not running in the root. This one looks like a timeout waiting for npm to build. Investigating. |
The timeout was set to 10s for the controller to run, and adding this code shows it's running over: // Wait for controller to start, then run startup commands.
start := time.Now()
if err := waitForControllerOnline(ctx, time.Second*30, client); err != nil {
return fmt.Errorf("controller failed to start: %w", err)
}
logger.Infof("Controller started in %s", time.Since(start))
|
@wesbillman was this crashing at ~10s? Maybe this is another issue too otherwise! |
Also just to clarify, need to clean out build cache to reproduce:
|
Maybe #1942 * Use `--startup-timeout` flag for controller timeout when in foreground
Optimistically closing :) |
ftl dev --recreate
info: Starting FTL with 1 controller(s)
info:controller0: Web console available at: http://localhost:8892
info:controller0: HTTP ingress server listening on: http://localhost:8891
error: Timeout reached while polling for controller status: context deadline exceeded
ftl: error: controller failed to start: context deadline exceeded
The text was updated successfully, but these errors were encountered: