Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Container doesn't react to Ctrl-C until builtins are deployed #10

Open
folex opened this issue Sep 21, 2021 · 0 comments
Open

Container doesn't react to Ctrl-C until builtins are deployed #10

folex opened this issue Sep 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@folex
Copy link
Member

folex commented Sep 21, 2021

I can't stop the container with ^C right after the start. It simply ignores ^C until it has fully started.

That also means it ignores SIGINT and probably other signals.

I guess s6 forwards SIGINT the right way, but the Fluence node ignores it. If that's the case, then the SIGINT handler should be set up earlier in the fluencelabs/fluence code.

Here's how that looks in the console:

$ docker run -v fluence:/.fluence -v /tmp/fluence/secret_key.ed25519:/.fluence/v1/secret_key.ed25519 -v /tmp/fluence/builtins_secret_key.ed25519:/.fluence/v1/builtins_secret_key.ed25519 --rm fluencelabs/fluence:latest --local
[2021-09-21T08:24:44.413648Z INFO  particle_node]
    +-------------------------------------------------+
    | Hello from the Fluence Team. If you encounter   |
    | any troubles with node operation, please update |
    | the node via                                    |
    |     docker pull fluencelabs/fluence:latest      |
    |                                                 |
    | or contact us at                                |
    | github.com/fluencelabs/fluence/discussions      |
    +-------------------------------------------------+

[2021-09-21T08:24:44.413756Z INFO  server_config::resolved_config] Loading config from "/.fluence/v1/Config.toml"
[2021-09-21T08:24:44.420653Z WARN  server_config::defaults] New management key generated. ed25519 private key in base64 = 8R3Ufdv5daVLoyBUPrI1hAco2OcTK+UNsJzmc7vR2pk=
[2021-09-21T08:24:44.423095Z INFO  particle_node] AIR interpreter: "/.fluence/v1/aquamarine_0.14.3.wasm"
[2021-09-21T08:24:44.423225Z INFO  particle_node::config::certificates] storing new certificate for the key pair
[2021-09-21T08:24:44.423417Z INFO  particle_node] node public key = 7JNvFtMFmj36PUGjXtZThsDySFv9CmAJKT17xr7BTwf3
[2021-09-21T08:24:44.423453Z INFO  particle_node] node server peer id = 12D3KooWG7k611vxxdJaoMnAAVJoUfJovaxnETEnH3N9LqG5MtNy
[2021-09-21T08:24:44.428729Z INFO  particle_node::node] Fluence listening on ["/ip4/0.0.0.0/tcp/7777", "/ip4/0.0.0.0/tcp/9999/ws"]
[2021-09-21T08:24:44.430728Z INFO  tide::server] Server listening on http://0.0.0.0:18080
[2021-09-21T08:24:44.431395Z INFO  local_vm::local_vm] particle_data_store: "/tmp/12D3KooWCCKcCxmv5qxuxQMviZXEtD9JHN9mJJir8sKCc5Uo6nqu"
^C^C^C^C^C^C^C

[2021-09-21T08:25:00.113576Z INFO  local_vm::local_vm] Made a particle a1042f41-0ad9-49e5-a81f-0c03896425d1
[2021-09-21T08:25:00.126841Z INFO  particle_closures::host_closures] Executed host call "op" "noop" (14us 100ns)
[2021-09-21T08:25:00.152669Z INFO  local_vm::local_vm] Made a particle e5a5b4ec-6ca3-4aae-8e8d-392238aa9c67
[2021-09-21T08:25:00.163208Z INFO  particle_closures::host_closures] Executed host call "srv" "list" (15us 900ns)
[2021-09-21T08:25:00.676753Z INFO  local_vm::local_vm] Made a particle e8e61bd4-7727-41f5-b662-32dec63ea548
[2021-09-21T08:25:01.171677Z INFO  particle_closures::host_closures] Executed host call "dist" "add_module" (2ms 398us 700ns)
[2021-09-21T08:25:02.033003Z INFO  local_vm::local_vm] Made a particle 39d5503c-b344-4017-8dc4-0d02c990f4a8
[2021-09-21T08:25:02.301553Z INFO  particle_closures::host_closures] Executed host call "dist" "add_module" (3ms 659us 900ns)
[2021-09-21T08:25:02.755948Z INFO  local_vm::local_vm] Made a particle 2daaa2b5-cd61-4816-8af7-4127fff61cda
[2021-09-21T08:25:02.759341Z INFO  particle_closures::host_closures] Executed host call "dist" "add_blueprint" (101us 300ns)
[2021-09-21T08:25:05.293240Z INFO  particle_closures::host_closures] Executed host call "srv" "create" (2s 533ms 731us 400ns)
[2021-09-21T08:25:05.293561Z INFO  particle_closures::host_closures] Executed host call "srv" "add_alias" (99us 100ns)
[2021-09-21T08:25:05.296905Z INFO  local_vm::local_vm] Made a particle d34a6407-2b41-4b3d-bea9-d61ff6b20ca8
[2021-09-21T08:25:05.298324Z INFO  particle_closures::host_closures] Executed host call "script" "add" (87us 300ns)
[2021-09-21T08:25:05.301695Z INFO  local_vm::local_vm] Made a particle 274292ec-c150-475b-ab53-d2f5c06447b2
[2021-09-21T08:25:05.302738Z INFO  particle_closures::host_closures] Executed host call "script" "add" (50us 600ns)
[2021-09-21T08:25:05.306992Z INFO  particle_node] Fluence has been successfully started.
[2021-09-21T08:25:05.307030Z INFO  particle_node] Waiting for Ctrl-C to exit...
^C[2021-09-21T08:25:14.586453Z INFO  particle_node] Shutting down...
[2021-09-21T08:25:14.586535Z INFO  particle_node::node] Stopping node
ctrlc fired!
@folex folex added the bug Something isn't working label Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant