eos icon indicating copy to clipboard operation
eos copied to clipboard

./launcher -k 2 FAILS after repeated starts of local testnets

Open comtechnet opened this issue 8 years ago • 6 comments

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

The test net process is sloppy and needs to be improved

The doc is still NOT accurate, even after repeated posted issues - this is a simple fix - SOMEONE PLS FIX, or hire me and I'll take care of it! (ha ha)


cd ~/eos/build cp ../genesis.json ./ ./programs/launcher/launcher -p2 --skip-signature This command will generate two data folders for each instance of the node: tn_data_0 and tn_data_1.

You should see the following response:

spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_0 spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_1 To confirm the nodes are running, run the following eosc commands:

~/eos/build/programs/eosc (THIS IS WRONG!!!!) Should be cd ~/eos/build/programs/eosc ./eosc -p 8888 get info ./eosc -p 8889 get info For each command, you should get a JSON response with blockchain information.

comtechnet avatar Jan 09 '18 01:01 comtechnet

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

How are you restarting the processes after the first kill? The launcher relies on a file, tn_data_??/eosd.pid being updated with the process ID for the current eosd instance. For now, that is written by the launcher and by a couple of helper scripts.

You are correct that work is needed to improve the documentation, but there is a lot of other things to be done too, so it's a matter of priority.

Thank you for reporting these defects. Please be patient, we are fixing these things as quickly as we can!

On Mon, Jan 8, 2018 at 7:46 PM, comtechnet [email protected] wrote:

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

The test net process is sloppy and needs to be improved

The doc is still NOT accurate, even after repeated posted issues - this is a simple fix - SOMEONE PLS FIX, or hire me and I'll take care of it! (ha ha)

cd ~/eos/build cp ../genesis.json ./ ./programs/launcher/launcher -p2 --skip-signature This command will generate two data folders for each instance of the node: tn_data_0 and tn_data_1.

You should see the following response:

spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_0 spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_1 To confirm the nodes are running, run the following eosc commands:

~/eos/build/programs/eosc (THIS IS WRONG!!!!) Should be cd ~/eos/build/programs/eosc ./eosc -p 8888 get info ./eosc -p 8889 get info For each command, you should get a JSON response with blockchain information.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1049, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2wCW9ZMvKCtwEN68KWY2UlSyeNT2FJks5tIsTbgaJpZM4RXMzn .

--

Phil Mesnier Principal Engineer & Partner OCI | WE ARE SOFTWARE ENGINEERS. tel (314) 579-0066 x225 <(314)%20579-0066> ObjectComputing.com http://objectcomputing.com/

pmesnier avatar Jan 09 '18 02:01 pmesnier

Phil,

Its all good - don't mind my "extras"

I'm running launcher -p2 --skip-signature -f

doing my thing, then killing them by launcher -k 2

Then re running launcher -p2 --skip-signature -f

Then trying to kill via launcher again launcher -k 2

The won't go down - so I kill via the built in macos activity monitor

Dave

On Mon, Jan 8, 2018 at 9:38 PM, Phil Mesnier [email protected] wrote:

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

How are you restarting the processes after the first kill? The launcher relies on a file, tn_data_??/eosd.pid being updated with the process ID for the current eosd instance. For now, that is written by the launcher and by a couple of helper scripts.

You are correct that work is needed to improve the documentation, but there is a lot of other things to be done too, so it's a matter of priority.

Thank you for reporting these defects. Please be patient, we are fixing these things as quickly as we can!

On Mon, Jan 8, 2018 at 7:46 PM, comtechnet [email protected] wrote:

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

The test net process is sloppy and needs to be improved

The doc is still NOT accurate, even after repeated posted issues - this is a simple fix - SOMEONE PLS FIX, or hire me and I'll take care of it! (ha ha)

cd ~/eos/build cp ../genesis.json ./ ./programs/launcher/launcher -p2 --skip-signature This command will generate two data folders for each instance of the node: tn_data_0 and tn_data_1.

You should see the following response:

spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_0 spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_1 To confirm the nodes are running, run the following eosc commands:

~/eos/build/programs/eosc (THIS IS WRONG!!!!) Should be cd ~/eos/build/programs/eosc ./eosc -p 8888 get info ./eosc -p 8889 get info For each command, you should get a JSON response with blockchain information.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1049, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AA2wCW9ZMvKCtwEN68KWY2UlSyeNT2FJks5tIsTbgaJpZM4RXMzn> .

--

Phil Mesnier Principal Engineer & Partner OCI | WE ARE SOFTWARE ENGINEERS. tel (314) 579-0066 x225 <(314)%20579-0066> <(314)%20579-0066> ObjectComputing.com http://objectcomputing.com/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1049#issuecomment-356162043, or mute the thread https://github.com/notifications/unsubscribe-auth/AFIA3MzIR8B9V3N_UoTWluf3235-Diibks5tItEagaJpZM4RXMzn .

comtechnet avatar Jan 09 '18 03:01 comtechnet

Phil,

Is my development account comtechnet111 a "faucet" account? Should I not be able to create a account using comtechnet111 as the root account (replacing inita)?

iMac-0026BB55B3E8:eosc comtechnet$ ./eosc create account comtechnet111 ctn1 EOS5N3jqqBtrTeDQgKEeieTvh8o3PX5m47dC7ZyB7MGozY3jfcSiy EOS5rUgsHAGZiWpZvVHDuULSz46uac5Lxuifp6NQborKwF3QtQ78d

1496014ms main.cpp:1195 main ] Failed with error: Assert Exception (10)

status_code == 200: Error code 401

: {"code":401,"message":"UnAuthorized","details":"signatures do not satisfy declared authorizations (3030002)\nTransaction declares authority '{"account":"comtechnet111","permission":"active"}', but does not have signatures for it.\n"}

These PKs were just imported into my ctnwallet

Dave

On Mon, Jan 8, 2018 at 10:07 PM, David Ramos [email protected] wrote:

Phil,

Its all good - don't mind my "extras"

I'm running launcher -p2 --skip-signature -f

doing my thing, then killing them by launcher -k 2

Then re running launcher -p2 --skip-signature -f

Then trying to kill via launcher again launcher -k 2

The won't go down - so I kill via the built in macos activity monitor

Dave

On Mon, Jan 8, 2018 at 9:38 PM, Phil Mesnier [email protected] wrote:

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

How are you restarting the processes after the first kill? The launcher relies on a file, tn_data_??/eosd.pid being updated with the process ID for the current eosd instance. For now, that is written by the launcher and by a couple of helper scripts.

You are correct that work is needed to improve the documentation, but there is a lot of other things to be done too, so it's a matter of priority.

Thank you for reporting these defects. Please be patient, we are fixing these things as quickly as we can!

On Mon, Jan 8, 2018 at 7:46 PM, comtechnet [email protected] wrote:

After local testnets (qty 2) are started, and then stopped via the ./launcher -k 2 step and then restarted again, the ./launcher -k2 does NOT kill the proper processes.

The test net process is sloppy and needs to be improved

The doc is still NOT accurate, even after repeated posted issues - this is a simple fix - SOMEONE PLS FIX, or hire me and I'll take care of it! (ha ha)

cd ~/eos/build cp ../genesis.json ./ ./programs/launcher/launcher -p2 --skip-signature This command will generate two data folders for each instance of the node: tn_data_0 and tn_data_1.

You should see the following response:

spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_0 spawning child, programs/eosd/eosd --skip-transaction-signatures --data-dir tn_data_1 To confirm the nodes are running, run the following eosc commands:

~/eos/build/programs/eosc (THIS IS WRONG!!!!) Should be cd ~/eos/build/programs/eosc ./eosc -p 8888 get info ./eosc -p 8889 get info For each command, you should get a JSON response with blockchain information.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1049, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA2wCW9ZM vKCtwEN68KWY2UlSyeNT2FJks5tIsTbgaJpZM4RXMzn> .

--

Phil Mesnier Principal Engineer & Partner OCI | WE ARE SOFTWARE ENGINEERS. tel (314) 579-0066 x225 <(314)%20579-0066> <(314)%20579-0066> ObjectComputing.com http://objectcomputing.com/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1049#issuecomment-356162043, or mute the thread https://github.com/notifications/unsubscribe-auth/AFIA3MzIR8B9V3N_UoTWluf3235-Diibks5tItEagaJpZM4RXMzn .

comtechnet avatar Jan 09 '18 03:01 comtechnet

Dave,

So you have loaded comtechnet111's active private key into your wallet?

Brian

brianjohnson5972 avatar Jan 09 '18 13:01 brianjohnson5972

Brian - thanks - that took care of it

I noticed the behavior of the "system" to reject ./eosc commands due to "timeout" - but then, when the command is immediately "repeated" it works - have you noticed this behavior? Here is an example: (I've learned to often - just repeat the command, when I get this timeout msg)

iMac-0026BB55B3E8:eosc comtechnet$ ./eosc create account comtechnet111 ctn1 EOS5N3jqqBtrTeDQgKEeieTvh8o3PX5m47dC7ZyB7MGozY3jfcSiy EOS5rUgsHAGZiWpZvVHDuULSz46uac5Lxuifp6NQborKwF3QtQ78d 3020606ms main.cpp:1195 main ] Failed with error: Assert Exception (10) status_code == 200: Error code 400 : {"code":400,"message":"Bad Request","details":"allotted processing time was exceeded (3030010)\nTransaction message exceeded maximum total transaction time of 10ms, took ${duration}ms\n\n\n\n"}

iMac-0026BB55B3E8:eosc comtechnet$ ./eosc create account comtechnet111 ctn1 EOS5N3jqqBtrTeDQgKEeieTvh8o3PX5m47dC7ZyB7MGozY3jfcSiy EOS5rUgsHAGZiWpZvVHDuULSz46uac5Lxuifp6NQborKwF3QtQ78d { "transaction_id": "98d7274d1d2aed1c7256c4e0b0b138c846071b3b084b3a0abf56c13f7cbe0120", "processed": { "ref_block_num": 7125, "ref_block_prefix": 1260528630, "expiration": "2017-12-30T00:18:08", "scope": [ "comtechnet111", "eos" ], "signatures": [ "20320ff0897fb79cc46791ac9a4b07daf78215adedb492343052a13dbae5ad3f6a64abd7b7908ce8958fa520cc98a42a0530f66a26c4ff246140473812ad984d99" ], "messages": [{ "code": "eos", "type": "newaccount", "authorization": [{ "account": "comtechnet111", "permission": "active" } ], "data": { "creator": "comtechnet111", "name": "ctn1", "owner": { "threshold": 1, "keys": [{ "key": "EOS5N3jqqBtrTeDQgKEeieTvh8o3PX5m47dC7ZyB7MGozY3jfcSiy", "weight": 1 } ], "accounts": [] }, "active": { "threshold": 1, "keys": [{ "key": "EOS5rUgsHAGZiWpZvVHDuULSz46uac5Lxuifp6NQborKwF3QtQ78d", "weight": 1 } ], "accounts": [] }, "recovery": { "threshold": 1, "keys": [], "accounts": [{ "permission": { "account": "comtechnet111", "permission": "active" }, "weight": 1 } ] }, "deposit": "0.0001 EOS" }, "hex_data": "114256b32195254500000000001066460100000001023e931d3cd7c853f23305d0b9a01bb3d4628f9c101bd5facc090cbf9c652a0b460100000100000001027f20f8f2ba2dbdd418362bebcce4e5132b79ae50fe1ca0345d5cace2360ed76b010000010000000001114256b32195254500000000a8ed32320100010000000000000004454f5300000000" } ], "output": [{ "notify": [], "deferred_trxs": [] } ] } } iMac-0026BB55B3E8:eosc comtechnet$

comtechnet avatar Jan 09 '18 13:01 comtechnet

We need a more "common way" to kill/shutdown the eosd process. Current methods are NOT conclusive - sometimes works / other times?

comtechnet avatar Jan 10 '18 19:01 comtechnet