Closed densone closed 3 years ago
Are you using the writer db as a reader too?
Actually it looks like your db pool isn’t big enough there
This client has definitely used the writer as the reader eventhough they have a reader too. That has stopped and the issue still arises.
Here's an updated more detailed error:
2021-09-26 22:25:38.922 [info] <0.4550.32>@be_db_follower:maybe_log_duration:121 be_db_stats took 690 ms
2021-09-26 22:25:52.233 [info] <0.26692.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11Hka2Afr4oHLBjEhxFmxfi3QSbozu3EsSecFcCpQERZVYkgTRX">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30427>,true},5000]}}}
2021-09-26 22:25:52.233 [info] <0.27670.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11AJiE9QXeCsYidmYCmSjBANBcCqc349WiGTMG3aefApFBdkGQD">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30429>,true},5000]}}}
2021-09-26 22:25:52.233 [info] <0.25693.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11w5Nrd2wKVzq5926YaYfCQcjBLjV7tdtD1T1jY6seQbbSGqWYs">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627464.11781>,true},5000]}}}
2021-09-26 22:25:52.233 [info] <0.27352.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11DU7j1o4tuiaeukkvSa2zAWs3cQAhAST5ZS7W7s5qQwe6uayPc">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627464.11783>,true},5000]}}}
2021-09-26 22:25:52.234 [info] <0.27625.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112EzZu9oV47Me4sA7rTaDBnHi7obBuJ2cd31PdmcyhLW27xY3kN">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30443>,true},5000]}}}
2021-09-26 22:25:52.235 [info] <0.27561.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11q3e7PMPJoHQWKuUCxKkudm8YAGLvAMCfRgMnHRtRza7SP6X5M">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60111>,true},5000]}}}
2021-09-26 22:25:52.235 [info] <0.27265.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11Hyhv2c1SYAWH233VFehotKiezgCi5tzEk5Vx1RzGadFY7Ccf5">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144121>,true},5000]}}}
2021-09-26 22:25:52.235 [info] <0.26450.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"113y5RvzfC2ME3XG7vJihC44Hn3Fi9oDSzB7haSeZx5qQkxagzQ">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60113>,true},5000]}}}
2021-09-26 22:25:52.235 [info] <0.26203.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11SLAvBuLezMm87tnKok3dLoPaP2KmeMYD7DFZRhSn1cWziBdnQ">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144124>,true},5000]}}}
2021-09-26 22:25:52.236 [info] <0.27644.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112QS1vutqez9NkKe8gMXrTdBsJCuWYEGbBNgmJBjYGxwFXAVkTB">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144126>,true},5000]}}}
2021-09-26 22:25:52.236 [info] <0.26918.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112ph3NkAPsACFp6urd7vPqfEUafJc4HMYLUHfzYQjEHf8NDpz4P">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348889607.636>,true},5000]}}}
2021-09-26 22:25:52.236 [info] <0.27600.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112e9vnnVTHnSTiKiEpj3yZZQxS9XkH9ufSUPz5GdYDVAyDxqotR">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30466>,true},5000]}}}
2021-09-26 22:25:52.236 [info] <0.27514.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112CJ9xe9zMQSPvrhwvKJgjPgkEKUA2h3y42UWPN7ZXTBFuknCgf">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60115>,true},5000]}}}
2021-09-26 22:25:52.236 [info] <0.27554.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11yfmnLpzZNFFbPxsag8jhn8qfJ9VU7qWw8NnGkJu6h9mYya2F4">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60117>,true},5000]}}}
2021-09-26 22:25:52.237 [info] <0.27154.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11PWi6Hqpe5L6sxvUSn23DVYsL3JxQJF16p3EbfbdaK9mHLwMoT">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30472>,true},5000]}}}
2021-09-26 22:25:52.237 [info] <0.27497.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112NvDy89bTnsfDunwSV6X2iy1FQhfx2vMLfEqM5MKjs7VUMyVSd">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148039>,true},5000]}}}
2021-09-26 22:25:52.237 [info] <0.25140.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"118Ri8Zij6yWFbTjqF7VcFN6Q1yAgfVJM2TSYLdD1omD1Y83qr6">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348889603.114571>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.26729.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112CoofbNG4QXmMpTonzgJg7a5AM8XAZeRAUFnycGbEZtv3rR3Kj">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348889603.114573>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27648.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11t4VAhdaW7hx26TmKZjVvuB8ziDGvLnupz9LKyAkAbzEz4dUQu">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60121>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27542.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112HRmgBKb4bJCuhcVEAqAB3sEPBZHfVYkMr2dj8orcjCFeMtrWn">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144138>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27635.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11w4FV4CTefovXYPY7VbTgAoCuihhtPEdoCBopxtadqJ8DkJ19B">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148043>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27666.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112Rg9mzsirrem9AoGENKtch2m1wUbWHKdHQWpaNXoowD3WqjiB">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148041>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.26784.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"1124kArbjAPKQYU1u95UP2sDqfLTwEzNHHh6y8ZuAHAPkCXJTCBX">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148049>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27718.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"117WdeJevXpHsGVprzxpexdB6WcLRyGajX8DhUAMPHZYKz4mn9L">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627464.11829>,true},5000]}}}
2021-09-26 22:25:52.238 [info] <0.27584.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112Abc94S1AzsVj8Qyy6NX7FypdMaSMgqTnLcdS5U8hthb65pd29">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148047>,true},5000]}}}
2021-09-26 22:25:52.239 [info] <0.27660.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11hzFGHNfqZfzRsNNmo2UDwCW4HcBM8KcGEYzmrHR7DCjZsEddX">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627464.11834>,true},5000]}}}
2021-09-26 22:25:52.239 [info] <0.27737.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112NpL4YtjxYicvWWmuqK8Wq1RzwPyRV2Kz215mb6762cUY7A6Xf">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627464.11832>,true},5000]}}}
2021-09-26 22:25:52.239 [info] <0.26355.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112TAN4mez98z3oqHvzJAsQYkSvJv457bbJ41iJKX749Ngxxkj6E">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60126>,true},5000]}}}
2021-09-26 22:25:52.239 [info] <0.27153.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112v62iwyaSeQLjHpo2Z4KNGUvBMasvd4Z2tZpi447qQHDKWS8iA">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103169.228667>,true},5000]}}}
2021-09-26 22:25:52.240 [info] <0.26627.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112Em57LE4ZXhfnUEPRL4x9NDMFNtZtNvoV5XMPNgKG7xbVRFCXT">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.30476>,true},5000]}}}
2021-09-26 22:25:52.310 [info] <0.26681.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112FELstc7gQErJJFrKp7Q6VRm23b3s1rRXd38REciWH9Di4KKbd">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148057>,true},5000]}}}
2021-09-26 22:25:52.310 [info] <0.26735.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"116Rwj7ab3RNedpTFVVqjjGAdvpkGPYeL83Pf6FALHypLsobTcZ">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148060>,true},5000]}}}
2021-09-26 22:25:52.310 [info] <0.26107.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11NLcDiLYVaemu6g5if7bAr1wbK75UMLTqNbgvLxiHf4QGp8rce">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348889603.114575>,true},5000]}}}
2021-09-26 22:25:52.311 [info] <0.27357.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"13GbPBAz1ZS2ZuoPQ7heqA1ZB1zB8EU7bj6nDmTXRGqxrkHHphU">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.31262>,true},5000]}}}
2021-09-26 22:25:52.315 [info] <0.27678.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112Q1Vk98T1dqja7aGqHUWNGGcM64VhFBK4M75Zo526fysWpKoKY">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144142>,true},5000]}}}
2021-09-26 22:25:52.320 [info] <0.27541.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112wRji8oMviVovPrDw81CZmiBbQsv8czkbsYQcmrywjn3fp6oeQ">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.31265>,true},5000]}}}
2021-09-26 22:25:52.320 [info] <0.27640.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112tKWZw8qU28hffmJG3dUBNgjoG7zqBJUWgHKQBMBMwmrKvQUAw">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.31268>,true},5000]}}}
2021-09-26 22:25:52.324 [info] <0.27182.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112uJ7JNyRzX8u3FqYCNqjPhQrrSE1iLjikReG8tXZsjMBCkSnwY">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144147>,true},5000]}}}
2021-09-26 22:25:52.324 [info] <0.27543.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112hyNP9wPfXD5E31xTAtE8AQyhLgqfpDoSiKg12MhL8bT4WYAf6">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348103174.144149>,true},5000]}}}
2021-09-26 22:25:52.326 [info] <0.27181.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"115cvCfKrKgvsPUiTdZR7hewxSYQkY5doYGCc3SKLFSj1tFcxkB">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148065>,true},5000]}}}
2021-09-26 22:25:52.327 [info] <0.27653.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112ZRTSaW3DEGcnjaui5XKEThC2b39REsWnENf8sgp4MkhwYDi8R">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348889603.114577>,true},5000]}}}
2021-09-26 22:25:52.331 [info] <0.27571.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11644H6TRHAJhwtnhNvvE5uPD2nmEHbX7YqkkY2NL3EpXWogJdt">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60130>,true},5000]}}}
2021-09-26 22:25:52.331 [info] <0.26182.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"11mYGD9pYXu857YEk3GwevXN2qiC65iyHNymRzxZ5FqdKWXwFoE">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347054597.60133>,true},5000]}}}
2021-09-26 22:25:52.335 [info] <0.27520.32>@be_db_gateway_status:request_status:234 Failed to update gateway status for <<"112KcoSfJtjFqxMi5wS59UZXRLtChNcQJhBNarHJMHVtu54WT8na">>: {exit,{timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3347578882.31272>,true},5000]}}}
2021-09-26 22:25:52.998 [error] <0.1641.0> gen_server be_db_validator_status terminated with reason: {timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148071>,true},5000]}} in gen_server:call/3 line 223
2021-09-26 22:25:52.998 [error] <0.1641.0> CRASH REPORT Process be_db_validator_status with 0 neighbours exited with reason: {timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148071>,true},5000]}} in gen_server:call/3 line 223
2021-09-26 22:25:52.998 [error] <0.1251.0> Supervisor be_sup had child be_db_validator_status started with be_db_validator_status:start_link() at <0.1641.0> exit with reason {timeout,{gen_server,call,[db_pool,{checkout,#Ref<0.1891530541.3348627460.148071>,true},5000]}} in context child_terminated
2021-09-26 22:25:52.998 [warning] <0.1318.0>@blockchain_event:terminate:108 terminating remove_handler
2021-09-26 22:25:52.998 [error] <0.1251.0> Supervisor be_sup had child be_db_validator_status started with be_db_validator_status:start_link() at <0.1641.0> exit with reason reached_max_restart_intensity in context shutdown
2021-09-26 22:25:54.105 [info] <0.28272.31>@blockchain_txn:validate:290 valid: [{blockchain_txn_add_gateway_v1,1},{blockchain_txn_assert_location_v2,2},{blockchain_txn_payment_v1,1},{blockchain_txn_payment_v2,5},{blockchain_txn_poc_receipts_v1,179},{blockchain_txn_poc_request_v1,407},{blockchain_txn_validator_heartbeat_v1,6}], invalid: []
2021-09-26 22:25:54.267 [error] emulator Error in process <0.27751.32> on node 'blockchain_etl@127.0.0.1' with exit value:
{badarg,[{dets,insert,[be_db_gateway,[{<<0,194,223,249,99,117,177,228,253,106,26,231,207,253,135,128,242,64,173,155,243,79,95,60,164,10,120,76,169,224,63,225,63>>},{<<0,235,175,213,112,130,250,132,51,52,183,114,142,161,222,6,201,14,9,165,253,120,213,174,197,66,114,75,74,236,4,150,241>>},{<<0,118,192,189,10,42,245,184,206,27,14,247,216,76,21,19,160,66,160,211,122,113,241,82,13,72,53,210,17,95,88,12,162>>},{<<0,3,7,182,125,7,98,113,78,117,141,83,23,12,13,227,25,221,39,238,38,146,129,235,35,132,99,180,215,34,7,28,168>>},{<<0,54,102,90,228,48,96,198,90,226,134,1,161,148,236,192,30,67,241,225,13,168,142,189,237,52,80,119,19,123,40,205,106>>},{<<0,252,245,127,196,110,107,108,201,198,139,204,7,221,53,5,63,172,185,45,149,76,10,19,244,154,58,82,31,203,231,105,113>>},{<<0,209,188,107,166,255,255,104,238,143,91,178,66,165,32,152,113,113,147,97,199,193,187,211,69,11,31,89,188,65,87,247,189>>},{<<0,38,124,20,62,225,70,109,227,106,114,117,165,84,145,200,58,162,53,183,223,44,250,136,164,110,244,166,168,235,235,127,138>>},{<<0,164,183,173,150,232,115,38,160,214,99,240,72,246,10,21,220,178,213,188,23,210,162,205,40,15,166,73,145,95,162,75,3>>},{<<0,182,252,123,13,151,51,236,76,132,47,14,0,93,52,163,220,4,36,31,249,140,198,166,167,245,27,44,220,27,124,202,26>>},{<<0,204,118,8,4,117,72,43,241,195,129,215,17,136,198,184,48,99,223,246,201,143,64,44,214,62,62,195,0,230,71,169,231>>},{<<0,54,89,126,254,110,185,184,110,31,166,107,13,6,47,12,55,135,0,234,190,165,15,28,122,8,210,45,249,172,53,173,240>>},{<<0,80,83,231,212,89,92,46,27,147,14,151,96,107,254,104,189,178,157,18,130,162,171,212,47,101,204,196,165,44,222,176,18>>},{<<0,173,153,16,170,79,59,182,9,6,110,110,148,81,113,52,198,75,75,86,246,88,61,178,252,74,216,41,233,205,47,108,210>>},{<<0,140,252,90,172,210,221,82,132,209,112,159,13,39,31,96,92,210,52,130,10,194,195,248,158,162,155,72,248,172,123,82,133>>},{<<0,19,41,106,244,204,170,37,16,181,30,236,113,232,113,218,172,221,138,212,19,63,172,252,63,171,255,103,19,183,140,236,136>>},{<<0,170,130,57,162,222,147,144,216,196,164,132,151,198,86,50,212,171,128,9,46,154,180,105,7,61,48,126,62,241,179,92,31>>},{<<0,224,219,2,241,129,94,167,70,141,195,207,194,126,214,15,61,159,55,27,130,136,21,181,246,116,232,249,240,122,16,179,81>>},{<<0,128,114,65,12,210,125,163,180,122,213,168,174,161,209,8,233,61,107,70,245,76,115,115,176,110,139,177,139,4,67,10,72>>},{<<0,196,24,32,73,210,168,86,241,238,156,65,141,103,110,164,182,211,118,30,38,158,158,39,135,143,230,165,84,13,115,54,150>>},{<<0,101,44,162,9,157,43,84,31,230,201,142,183,87,63,207,240,212,11,225,41,103,9,16,7,108,239,30,184,170,217,145,25>>},{<<0,206,119,28,223,173,221,69,106,174,208,3,215,0,254,232,18,141,76,252,82,243,146,165,209,93,100,233,94,0,208,156,204>>},{<<0,3,186,112,86,206,79,190,8,97,152,176,152,242,83,82,162,177,30,140,72,177,87,91,218,85,116,143,192,143,143,228,31>>},{<<0,45,68,179,119,25,249,95,101,216,132,193,214,47,255,124,140,23,166,104,97,191,14,143,169,26,243,114,67,148,30,147,6>>},{<<0,33,127,57,67,85,102,196,230,119,224,78,35,71,54,1,55,45,226,197,135,212,179,168,125,233,35,116,163,22,41,195,138>>},{<<0,142,248,24,109,163,143,141,218,14,82,167,78,206,4,73,32,197,239,173,87,198,101,234,9,171,56,104,188,12,136,30,29>>},{<<0,8,151,21,215,70,24,183,99,98,252,242,235,155,54,90,12,80,171,106,92,211,83,27,167,240,222,16,163,250,98,66,14>>},{<<0,119,219,149,88,187,102,67,17,154,91,154,195,72,129,13,57,230,93,49,43,218,42,124,160,157,228,194,147,85,171,96,147>>},{<<0,96,100,24,19,248,52,32,252,34,252,41,222,64,169,168,126,151,86,189,204,248,205,30,168,44,134,171,210,188,247,158,22>>},{<<0,141,98,136,226,38,231,129,222,105,228,38,30,252,219,193,74,186,145,150,40,172,79,244,43,50,8,161,202,215,56,193,190>>},{<<0,87,26,86,173,224,21,24,49,74,222,228,209,91,150,0,55,194,67,101,178,138,20,118,203,154,227,41,221,1,177,141,21>>},{<<0,206,198,212,199,67,175,69,28,212,240,27,226,148,123,137,150,204,44,166,115,178,142,32,177,165,116,22,244,218,53,121,138>>},{<<0,...>>},...]],...},...]}
2021-09-26 22:25:54.513 [info] <0.28272.31>@blockchain_txn:absorb_and_commit:452 validation took 931 absorb took 161 post took 247 ms for block height 1027736
2021-09-26 22:25:55.810 [info] <0.28272.31>@blockchain_txn:validate:290 valid: [{blockchain_txn_add_gateway_v1,1},{blockchain_txn_assert_location_v2,4},{blockchain_txn_payment_v2,1},{blockchain_txn_poc_receipts_v1,226},{blockchain_txn_poc_request_v1,494},{blockchain_txn_validator_heartbeat_v1,9}], invalid: []
2021-09-26 22:25:55.998 [error] emulator Error in process <0.27673.32> on node 'blockchain_etl@127.0.0.1' with exit value:
{badarg,[{dets,insert,[be_db_gateway,[{<<0,218,192,71,60,4,76,143,22,174,136,170,198,103,80,159,134,107,182,201,236,231,36,49,135,152,23,99,143,119,205,205,76>>},{<<0,173,38,194,235,46,112,167,144,247,231,166,61,209,101,183,174,145,109,94,243,116,41,17,100,223,124,91,32,121,131,75,13>>},{<<0,193,121,215,61,149,180,66,21,235,233,222,146,181,43,2,174,220,46,85,32,202,80,62,229,64,96,24,235,190,143,207,121>>},{<<0,196,1,242,214,252,209,223,153,254,242,74,33,71,40,0,82,16,26,182,36,204,85,88,177,2,193,215,117,38,126,248,87>>},{<<0,66,252,104,195,253,154,166,78,94,184,182,56,55,67,210,65,10,202,191,120,173,0,7,189,6,211,212,70,101,196,205,31>>},{<<0,188,26,97,214,155,187,91,54,35,189,66,148,225,235,153,99,250,243,253,3,49,132,215,41,82,31,9,95,131,62,251,77>>},{<<0,187,92,80,128,207,164,158,10,248,62,105,37,212,80,251,53,189,186,163,175,247,201,198,251,213,169,35,123,42,250,119,235>>},{<<0,179,88,96,242,61,3,71,158,61,172,243,159,24,138,178,136,115,255,118,75,110,196,156,80,49,230,3,149,69,159,207,79>>},{<<0,64,76,64,181,69,54,190,132,104,254,133,196,72,111,204,111,147,42,149,142,2,168,173,77,11,55,196,67,123,60,246,51>>},{<<0,195,93,164,89,249,210,108,101,2,210,234,154,255,159,64,46,89,128,127,215,193,69,180,133,48,109,204,237,192,220,231,69>>},{<<0,143,13,97,27,186,51,139,8,222,192,177,185,66,48,255,69,86,11,125,163,155,250,214,165,43,60,79,60,78,168,181,170>>},{<<0,210,194,112,56,128,10,203,66,80,73,71,175,191,183,224,143,240,34,71,8,131,157,145,30,191,33,161,27,153,47,45,29>>},{<<0,229,206,58,213,188,167,201,158,200,50,12,103,46,148,89,20,29,197,94,1,60,47,247,133,88,40,31,54,32,71,30,16>>},{<<0,26,171,229,151,100,47,75,195,94,240,80,144,37,21,21,137,71,127,98,82,204,122,162,199,3,25,183,248,237,7,217,224>>},{<<0,191,207,147,41,181,132,89,75,53,249,9,171,205,225,208,111,121,246,134,181,233,45,0,244,106,189,222,163,63,90,106,16>>},{<<0,6,158,200,103,221,168,10,229,101,127,109,5,196,229,100,71,240,141,12,48,16,214,211,14,119,18,43,206,53,85,193,80>>},{<<0,51,87,143,149,80,47,110,7,228,117,72,25,54,162,163,59,252,137,156,229,105,48,73,65,65,76,99,132,122,234,94,150>>},{<<0,245,50,0,95,247,13,153,144,76,25,106,227,155,74,197,243,72,20,209,157,107,38,84,140,247,132,111,180,209,90,38,87>>},{<<0,226,57,188,64,137,19,232,191,29,241,220,220,100,249,122,41,72,160,248,164,131,80,29,219,242,23,125,100,159,212,62,208>>},{<<0,17,119,110,141,61,252,72,63,224,113,104,211,112,90,207,248,143,223,135,206,248,69,11,65,227,18,255,57,101,211,160,52>>},{<<0,131,146,14,127,125,140,23,177,164,115,179,83,144,129,64,214,17,248,47,172,66,67,92,182,108,90,213,158,79,3,148,97>>},{<<0,65,150,116,40,67,227,137,14,175,244,0,193,89,174,63,194,120,213,76,115,178,6,6,171,190,120,147,145,194,26,213,28>>},{<<0,138,239,246,173,236,194,76,163,130,210,64,82,98,55,33,183,18,124,146,226,164,156,50,199,113,89,239,94,76,8,189,127>>},{<<0,117,66,192,39,31,225,151,167,143,234,22,46,143,173,200,98,75,98,22,253,224,66,106,147,97,171,209,145,31,2,239,30>>},{<<0,228,123,249,44,175,110,100,151,237,3,14,89,226,92,231,203,223,73,189,193,166,40,198,115,10,155,141,29,39,36,242,89>>},{<<0,20,11,248,9,140,214,211,173,184,245,198,232,193,102,6,105,235,189,253,168,182,62,71,164,109,76,187,75,139,127,174,167>>},{<<0,195,85,240,12,118,203,21,151,231,252,53,147,179,162,196,188,178,123,184,61,125,153,221,59,0,137,142,172,149,159,175,147>>},{<<0,187,235,10,193,14,87,27,97,89,21,20,127,204,3,200,19,125,93,24,15,137,101,217,64,43,92,109,209,240,24,187,224>>},{<<0,27,61,182,133,41,166,89,244,200,204,217,177,85,196,145,154,244,87,26,5,128,206,27,146,129,181,146,246,202,26,6,212>>},{<<0,219,30,51,54,26,87,252,6,178,185,24,150,0,48,99,103,39,126,150,196,12,224,161,152,89,153,11,159,217,71,147,217>>},{<<0,166,188,129,66,40,215,68,223,159,234,46,224,64,143,207,236,33,246,56,166,98,206,181,60,22,146,81,74,208,160,32,80>>},{<<0,183,22,151,174,27,222,105,144,12,23,140,66,136,232,100,22,248,222,217,90,77,214,187,178,47,34,90,5,142,60,229,178>>},{<<0,94,178,241,233,29,...>>},...]],...},...]}
2021-09-26 22:25:56.202 [info] <0.28272.31>@blockchain_txn:absorb_and_commit:452 validation took 1118 absorb took 187 post took 205 ms for block height 1027737
2021-09-26 22:25:56.318 [info] <0.1320.0>@blockchain_worker:handle_info:617 block sync down: normal
2021-09-26 22:25:56.319 [info] <0.1320.0>@blockchain_worker:start_sync:814 new block sync starting with Pid: <0.27412.32>, Ref: #Ref<0.1891530541.3348103169.232834>, Peer: "/p2p/11SS34W643WJiTrEQhCUFajVXUWVpCLY1jLC6nR19y8EhdkTzbc"
2021-09-26 22:25:56.678 [warning] <0.1318.0>@blockchain_event:terminate:108 terminating remove_handler
2021-09-26 22:25:56.678 [warning] <0.1318.0>@blockchain_event:terminate:108 terminating remove_handler
2021-09-26 22:25:56.680 [warning] <0.1318.0>@blockchain_event:terminate:108 terminating remove_handler
2021-09-26 22:25:56.680 [warning] <0.1318.0>@blockchain_event:terminate:108 terminating remove_handler
2021-09-26 22:25:56.681 [error] <0.1269.0> gen_statem <0.1269.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.681 [error] <0.1275.0> gen_statem <0.1275.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.681 [error] <0.1270.0> gen_statem <0.1270.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.681 [error] <0.1281.0> gen_statem <0.1281.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.681 [error] <0.1279.0> gen_statem <0.1279.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.682 [error] <0.1274.0> gen_statem <0.1274.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.682 [error] <0.1269.0> CRASH REPORT Process <0.1269.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.682 [error] <0.1270.0> CRASH REPORT Process <0.1270.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.682 [error] <0.1275.0> CRASH REPORT Process <0.1275.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.682 [error] <0.1281.0> CRASH REPORT Process <0.1281.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.682 [error] <0.1274.0> CRASH REPORT Process <0.1274.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.683 [error] <0.1279.0> CRASH REPORT Process <0.1279.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.683 [error] <0.1280.0> gen_statem <0.1280.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.683 [error] <0.1282.0> gen_statem <0.1282.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.683 [error] <0.1283.0> gen_statem <0.1283.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.684 [error] <0.1285.0> gen_statem <0.1285.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.684 [error] <0.1289.0> gen_statem <0.1289.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.684 [error] <0.1293.0> gen_statem <0.1293.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.684 [error] <0.1280.0> CRASH REPORT Process <0.1280.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.684 [error] <0.1283.0> CRASH REPORT Process <0.1283.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.684 [error] <0.1287.0> gen_statem <0.1287.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.684 [error] <0.1282.0> CRASH REPORT Process <0.1282.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1285.0> CRASH REPORT Process <0.1285.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1293.0> CRASH REPORT Process <0.1293.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1289.0> CRASH REPORT Process <0.1289.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1287.0> CRASH REPORT Process <0.1287.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1290.0> gen_statem <0.1290.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1297.0> gen_statem <0.1297.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1303.0> gen_statem <0.1303.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1290.0> CRASH REPORT Process <0.1290.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1294.0> gen_statem <0.1294.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1297.0> CRASH REPORT Process <0.1297.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1303.0> CRASH REPORT Process <0.1303.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.685 [error] <0.1288.0> gen_statem <0.1288.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1296.0> gen_statem <0.1296.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.685 [error] <0.1294.0> CRASH REPORT Process <0.1294.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.686 [error] <0.1295.0> gen_statem <0.1295.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.686 [error] <0.1288.0> CRASH REPORT Process <0.1288.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.686 [error] <0.1296.0> CRASH REPORT Process <0.1296.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.686 [error] <0.1299.0> gen_statem <0.1299.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.686 [error] <0.1292.0> gen_statem <0.1292.0> in state connecting terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.686 [error] <0.1295.0> CRASH REPORT Process <0.1295.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.686 [error] <0.1292.0> CRASH REPORT Process <0.1292.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.687 [error] <0.1284.0> gen_statem <0.1284.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.687 [error] <0.1299.0> CRASH REPORT Process <0.1299.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.687 [error] <0.1298.0> gen_statem <0.1298.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.687 [error] <0.1302.0> gen_statem <0.1302.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.687 [error] <0.1276.0> gen_statem <0.1276.0> in state connected terminated with reason: {killed,state_functions}
2021-09-26 22:25:56.687 [error] <0.1298.0> CRASH REPORT Process <0.1298.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
2021-09-26 22:25:56.687 [error] <0.1284.0> CRASH REPORT Process <0.1284.0> with 0 neighbours exited with reason: killed in gen_statem:loop_receive/3 line 993
thanks @madninja
I increased the db pool to 100. Not entirely sure if that's helpful? Maybe they are just long running connections and the pool saturates. Maybe we increase the timeout threshold a little for being able to catch a connection?
I’m not sure why you’re running into this and I’m not. Are you sure you have enough file descriptors available?
I’m not sure why you’re running into this and I’m not. Are you sure you have enough file descriptors available?
Here's my hypothesis This is a 64GB / 24Thread machine. Albeit, it's expensive, but not that powerful. So we are timing out trying to get a connection from poolboy because the requests are taking longer than what they would take to complete on your systems. This crash only occurs during update gateway status, so the presumption here is that that will use up a bunch of connections really fast, update some records, and move on to the next thing.
Upon changing the db pool to 100 connections it has not crashed since, which it should have crashed several times by now.
One recommendation that I'd like to make is potentially increasing the timeout value instead of the open DB connections?
You can also do blocking checkouts from the pool.
@Vagabond Ill look at the poolboy docs for that. Would a blocking checkout signal differently to the worker requesting the connection?
After almost 24 hours we have not crashed on this ETL. Fix was increasing DB pool from 50-100 to avoid crashing on gateway status updates.
That sounds about right.. I'd close this and leave it be
Closing. Maybe this will come back to life as the hotspots continue to grow?
Issue
About once every few hours ETL will crash on updating gateway status which looks like a timeout. I am no expert by far. So here lies the questions.
DB Info
ETL Server.
Error