-
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
deploy command does not succeed or fail when called an a module that is already deployed #1035
Comments
There might be a race condition here with creating ftl serve --recreate --log-level=debug
debug: Unary RPC failed: unavailable: dial tcp [::1]:8892: connect: connection refused: /xyz.block.ftl.v1.ControllerService/Ping
info: Starting FTL with 1 controller(s) and 0 runner(s)
debug: Reusing existing docker container "ftl-db-1" on port "54320" for postgres db
debug: Waiting for ftl-db-1 to be healthy
debug: Postgres DSN: postgres://postgres:secret@localhost:54320/ftl?sslmode=disable
debug:migrate: Applying: 001_init.sql
debug:controller0: Starting FTL controller
debug:controller0: Building console...
debug:controller0:
debug:controller0: up to date, audited 860 packages in 647ms
debug:controller0:
debug:controller0: 189 packages are looking for funding
debug:controller0: run `npm fund` for details
debug:controller0:
debug:controller0: 1 moderate severity vulnerability
debug:controller0:
debug:controller0: To address all issues, run:
debug:controller0: npm audit fix
debug:controller0:
debug:controller0: Run `npm audit` for details.
info:controller0: Web console available at: http://localhost:8892
debug:controller0: Starting DB listener
debug:controller0: Listening on http://localhost:8892
debug:controller0:
debug:controller0: > [email protected] dev
debug:controller0: > vite
debug:controller0:
debug:controller0: Port 5173 is in use, trying another one...
debug:controller0: Port 5174 is in use, trying another one...
debug:controller0: Port 5175 is in use, trying another one...
debug:controller0: Port 5176 is in use, trying another one...
debug:controller0: Port 5177 is in use, trying another one...
debug:controller0: Port 5178 is in use, trying another one...
debug:controller0:
debug:controller0: VITE v4.5.2 ready in 232 ms
debug:controller0:
debug:controller0: ➜ Local: http://localhost:5179/
debug:controller0: ➜ Network: use --host to expose
debug:controller0: Adding 1 replicas
debug:controller0: Seeded 0 deployments
debug:controller0: ….0-SNAPSHOT.jar| $ mvn -B -N install
debug:controller0: ….0-SNAPSHOT.jar| mvn -B -pl :ftl-runtime install
debug:controller0: ….0-SNAPSHOT.jar| [INFO] Scanning for projects...
debug:controller0: ….0-SNAPSHOT.jar| [INFO]
debug:controller0: ….0-SNAPSHOT.jar| [INFO] ---------------------------< xyz.block:ftl >----------------------------
debug:controller0: ….0-SNAPSHOT.jar| [INFO] Building FTL 1.0-SNAPSHOT
debug:controller0: ….0-SNAPSHOT.jar| [INFO] from pom.xml
debug:controller0: ….0-SNAPSHOT.jar| [INFO] --------------------------------[ pom ]---------------------------------
debug:controller0: ….0-SNAPSHOT.jar| [INFO]
debug:controller0: ….0-SNAPSHOT.jar| [INFO] --- install:3.1.1:install (default-install) @ ftl ---
debug:controller0: ….0-SNAPSHOT.jar| [INFO] Installing /Users/wesbillman/dev/ftl/pom.xml to /Users/wesbillman/.m2/repository/xyz/block/ftl/1.0-SNAPSHOT/ftl-1.0-SNAPSHOT.pom
debug:controller0: ….0-SNAPSHOT.jar| [INFO] ------------------------------------------------------------------------
debug:controller0: ….0-SNAPSHOT.jar| [INFO] BUILD SUCCESS
debug:controller0: ….0-SNAPSHOT.jar| [INFO] ------------------------------------------------------------------------
debug:controller0: ….0-SNAPSHOT.jar| [INFO] Total time: 0.109 s
debug:controller0: ….0-SNAPSHOT.jar| [INFO] Finished at: 2024-03-07T09:36:36-07:00
debug:controller0: ….0-SNAPSHOT.jar| [INFO] ------------------------------------------------------------------------
debug:controller0: Created new artefact d0b37a460be0654d47a21c2cda3e119550ddb87708275cfdd0d424deee362fe2
debug:controller0: Created deployment time-ff57b9a6a0
debug:controller0: Replace deployment for: time-ff57b9a6a0
debug:controller0: Reconciling time-ff57b9a6a0
debug:controller0: Need 1 more runners for time-ff57b9a6a0
error:controller0: Failed to increase deployment replicas: failed to claim runners for time-ff57b9a6a0: no idle runners found matching labels {"languages":["go"]}: not found
debug:controller0: Reconciling time-ff57b9a6a0
debug:controller0: Need 1 more runners for time-ff57b9a6a0
error:controller0: Failed to increase deployment replicas: failed to claim runners for time-ff57b9a6a0: no idle runners found matching labels {"languages":["go"]}: not found
debug:controller0: Reconciling time-ff57b9a6a0
debug:controller0: Need 1 more runners for time-ff57b9a6a0
error:controller0: Failed to increase deployment replicas: failed to claim runners for time-ff57b9a6a0: no idle runners found matching labels {"languages":["go"]}: not found
debug:controller0: Reconciling time-ff57b9a6a0
debug:controller0: Need 1 more runners for time-ff57b9a6a0
error:controller0: Failed to increase deployment replicas: failed to claim runners for time-ff57b9a6a0: no idle runners found matching labels {"languages":["go"]}: not found After a few seconds of the above, I see this:
The flow seems like the server starts and the controller is "online". But there are no runners yet, and they still need a maven build (from what I can tell in the log). So when we run If I wait for the runner to build and be available before running |
This also only seems to be an issue when using |
@matt2e I think this one is fixed maybe? I'm not able to reproduce. Might have been a side effect of some of the other FTL changes at the time? |
I think so too @wesbillman, haven't been able to reproduce on my side either |
Steps to repro:
ftl deploy <existing deployment>
Output:
ftl logs:
The text was updated successfully, but these errors were encountered: