Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Unable to compose docker and run the single node on MacOS or windows: #2420

Open
swapnildeshmukh15 opened this issue Apr 17, 2022 · 7 comments

Comments

@swapnildeshmukh15
Copy link

sawtooth-validator-default | [2022-04-17 12:13:46.810 INFO cli] config [path]: config_dir = "/etc/sawtooth"; config [path]: key_dir = "/etc/sawtooth/keys"; config [path]: data_dir = "/var/lib/sawtooth"; config [path]: log_dir = "/var/log/sawtooth"; config [path]: policy_dir = "/etc/sawtooth/policy"
sawtooth-validator-default | [2022-04-17 12:13:46.811 WARNING cli] Network key pair is not configured, Network communications between validators will not be authenticated or encrypted.
sawtooth-validator-default | [2022-04-17 12:13:46.861 DEBUG state_verifier] verifying state in /var/lib/sawtooth/merkle-00.lmdb
sawtooth-validator-default exited with code 137

@dmichail
Copy link

dmichail commented Aug 7, 2022

I have been facing the same issue. Cant run Sawtooth at all. Tried v1.1 docker-compose script as well and I get same issue with validators keep crashing with exit code 137.

@dannygim
Copy link

I have faced the same problem with v1.2 sawtooth-default.yaml

@dndll
Copy link

dndll commented Oct 24, 2022

Same here, works out of the box on Linux - Arch.

@trasgoverde
Copy link

I am facing the same problem. Do you have a solution for it?
L.5432" db-alpha | 2022-11-28 12:26:33.161 UTC [28] LOG: database system was shut down at 2022-11-28 12:26:13 UTC db-alpha | 2022-11-28 12:26:33.183 UTC [1] LOG: database system is ready to accept connections sawtooth-sabre-tp | 2022-11-28 12:26:33,296 INFO [sawtooth_sdk::processor] connecting to endpoint: tcp://sawtooth-validator:4004 sawtooth-sabre-tp | 2022-11-28 12:26:33,309 INFO [sawtooth_sdk::processor] sending TpRegisterRequest: sabre 0.5 gridd-alpha | Successfully applied Grid migrations gridd-beta | Successfully applied Grid migrations sawtooth-validator | writing file: /etc/sawtooth/keys/validator.priv sawtooth-validator | writing file: /etc/sawtooth/keys/validator.pub sawtooth-shell | creating key directory: /root/.sawtooth/keys sawtooth-shell | writing file: /root/.sawtooth/keys/root.priv sawtooth-shell | writing file: /root/.sawtooth/keys/root.pub sawtooth-rest-api | [2022-11-28 12:26:35.775 INFO messaging] Connecting to tcp://sawtooth-validator:4004 sawtooth-rest-api | [2022-11-28 12:26:35.790 INFO rest_api] Creating handlers for validator at tcp://sawtooth-validator:4004 sawtooth-rest-api | [2022-11-28 12:26:35.841 INFO rest_api] Starting REST API on sawtooth-rest-api:8008 sawtooth-validator | creating key directory: /root/.sawtooth/keys sawtooth-validator | writing file: /root/.sawtooth/keys/my_key.priv sawtooth-validator | writing file: /root/.sawtooth/keys/my_key.pub sawtooth-validator | Generated config-genesis.batch sawtooth-validator | Processing config-genesis.batch... sawtooth-validator | Processing config.batch... sawtooth-validator | Processing sabre-admin.batch... sawtooth-validator | Generating /var/lib/sawtooth/genesis.batch sawtooth-validator | [2022-11-28 12:26:40.554 WARNING (unknown file)] [src/pylogger.rs: 40] Started logger at level DEBUG sawtooth-validator | [2022-11-28 12:26:41.358 DEBUG ffi] loading library libsawtooth_validator.so sawtooth-validator | [2022-11-28 12:26:41.376 DEBUG ffi] loading library libsawtooth_validator.so sawtooth-validator | [2022-11-28 12:26:42.312 INFO path] Skipping path loading from non-existent config file: /etc/sawtooth/path.toml sawtooth-validator | [2022-11-28 12:26:42.313 INFO validator] Skipping validator config loading from non-existent config file: /etc/sawtooth/validator.toml sawtooth-validator | [2022-11-28 12:26:42.315 INFO keys] Loading signing key: /etc/sawtooth/keys/validator.priv sawtooth-validator | [2022-11-28 12:26:42.325 INFO cli] sawtooth-validator (Hyperledger Sawtooth) version 1.2.6 sawtooth-validator | [2022-11-28 12:26:42.326 INFO cli] config [path]: config_dir = "/etc/sawtooth"; config [path]: key_dir = "/etc/sawtooth/keys"; config [path]: data_dir = "/var/lib/sawtooth"; config [path]: log_dir = "/var/log/sawtooth"; config [path]: policy_dir = "/etc/sawtooth/policy" sawtooth-validator | [2022-11-28 12:26:42.326 WARNING cli] Network key pair is not configured, Network communications between validators will not be authenticated or encrypted. sawtooth-validator | [2022-11-28 12:26:42.362 DEBUG state_verifier] verifying state in /var/lib/sawtooth/merkle-00.lmdb sawtooth-validator | [2022-11-28 12:26:52.656 DEBUG state_verifier] block store file is /var/lib/sawtooth/block-00.lmdb sawtooth-validator exited with code 137 db-beta | 2022-11-28 12:31:33.110 UTC [26] LOG: checkpoint starting: time db-beta | 2022-11-28 12:31:33.223 UTC [26] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.104 s, sync=0.003 s, total=0.115 s; sync files=3, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB db-alpha | 2022-11-28 12:31:33.256 UTC [26] LOG: checkpoint starting: time db-alpha | 2022-11-28 12:31:33.367 UTC [26] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.104 s, sync=0.002 s, total=0.113 s; sync files=3, longest=0.002 s, average=0.001 s; distance=0 kB, estimate=0 kB sawtooth-devmode-engine-rust | ERROR | devmode_engine_rust: | ReceiveError: TimeoutError sawtooth-devmode-engine-rust | DEBUG | sawtooth_sdk::messag | Disconnected outbound channel sawtooth-devmode-engine-rust | ERROR | sawtooth_sdk::messag | Failed to send disconnect reply: sending on a closed channel sawtooth-devmode-engine-rust | ERROR | sawtooth_sdk::messag | Failed to send disconnect: sending on a closed channel sawtooth-devmode-engine-rust | DEBUG | sawtooth_sdk::messag | Exited stream sawtooth-devmode-engine-rust | DEBUG | <unknown>:489 | socket dropped sawtooth-devmode-engine-rust | DEBUG | <unknown>:489 | socket dropped sawtooth-devmode-engine-rust | DEBUG | <unknown>:396 | context dropped sawtooth-devmode-engine-rust exited with code 1 sawtooth-rest-api | [2022-11-28 12:31:36.082 WARNING route_handlers] Timed out while waiting for validator response sawtooth-rest-api | [2022-11-28 12:31:36.127 INFO helpers] GET /state HTTP/1.1: 503 status, 384 size, in 300.133202 s sawtooth-rest-api | [2022-11-28 12:31:36.128 WARNING route_handlers] Timed out while waiting for validator response sawtooth-rest-api | [2022-11-28 12:31:36.132 INFO helpers] GET /state HTTP/1.1: 503 status, 384 size, in 300.129546 s

@eramitg
Copy link

eramitg commented Dec 9, 2022 via email

@eramitg
Copy link

eramitg commented Dec 9, 2022 via email

@mtbc
Copy link

mtbc commented Jul 5, 2023

Code 137 can be fixed by increasing the memory available to Docker containers, may need to look into the Docker engine/desktop settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

7 participants