Skip to content
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

1927 Connection was killed #189

Open
dfelton opened this issue Apr 24, 2021 · 0 comments
Open

1927 Connection was killed #189

dfelton opened this issue Apr 24, 2021 · 0 comments
Assignees
Labels
Priority - Low tech debt Functionally working but not designed well or could be improved upon in some way.

Comments

@dfelton
Copy link
Owner

dfelton commented Apr 24, 2021

Occurred when executing a shutdown of the OS, without stopping the trade repeater first. No harm done but could be handled better.

Shutdown Enabled at: 2021-04-24 12:29:18
Exception: Zend\Db\Adapter\Exception\InvalidQueryException
Code: 0
Message: Statement could not be executed (70100 - 1927 - Connection was killed)
Strace:
#0 vendor/zendframework/zend-db/src/Adapter/Adapter.php(200): Zend\Db\Adapter\Driver\Pdo\Statement->execute()
#1 src/TradeRepeater/Model/Resource/Trade.php(79): Zend\Db\Adapter\Adapter->query('SELECT id FROM ...', Array)
#2 src/TradeRepeater/Model/Resource/Trade.php(55): Kobens\Gemini\TradeRepeater\Model\Resource\Trade->getActiveByStatusIds('SELL_FILLED')
#3 src/TradeRepeater/Model/Resource/Trade/Action/AbstractAction.php(40): Kobens\Gemini\TradeRepeater\Model\Resource\Trade->getActiveByStatus('SELL_FILLED')
#4 src/Command/Command/TradeRepeater/Archiver.php(99): Kobens\Gemini\TradeRepeater\Model\Resource\Trade\Action\AbstractAction->getHealthyRecords()
#5 src/Command/Command/TradeRepeater/Archiver.php(85): Kobens\Gemini\Command\Command\TradeRepeater\Archiver->mainLoop(Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 vendor/symfony/console/Command/Command.php(255): Kobens\Gemini\Command\Command\TradeRepeater\Archiver->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Kobens\Gemini\Command\Command\TradeRepeater\Archiver), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 bin/gemini(443): Symfony\Component\Console\Application->run()
#11 {main}

Previous Exception:
Exception: PDOException
Code: 70100
Message: SQLSTATE[70100]: <<Unknown error>>: 1927 Connection was killed
Strace:
#0 vendor/zendframework/zend-db/src/Adapter/Driver/Pdo/Statement.php(239): PDOStatement->execute()
#1 vendor/zendframework/zend-db/src/Adapter/Adapter.php(200): Zend\Db\Adapter\Driver\Pdo\Statement->execute()
#2 src/TradeRepeater/Model/Resource/Trade.php(79): Zend\Db\Adapter\Adapter->query('SELECT id FROM ...', Array)
#3 src/TradeRepeater/Model/Resource/Trade.php(55): Kobens\Gemini\TradeRepeater\Model\Resource\Trade->getActiveByStatusIds('SELL_FILLED')
#4 src/TradeRepeater/Model/Resource/Trade/Action/AbstractAction.php(40): Kobens\Gemini\TradeRepeater\Model\Resource\Trade->getActiveByStatus('SELL_FILLED')
#5 src/Command/Command/TradeRepeater/Archiver.php(99): Kobens\Gemini\TradeRepeater\Model\Resource\Trade\Action\AbstractAction->getHealthyRecords()
#6 src/Command/Command/TradeRepeater/Archiver.php(85): Kobens\Gemini\Command\Command\TradeRepeater\Archiver->mainLoop(Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 vendor/symfony/console/Command/Command.php(255): Kobens\Gemini\Command\Command\TradeRepeater\Archiver->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Kobens\Gemini\Command\Command\TradeRepeater\Archiver), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 bin/gemini(443): Symfony\Component\Console\Application->run()
#12 {main}
@dfelton dfelton added tech debt Functionally working but not designed well or could be improved upon in some way. Priority - Low labels Apr 24, 2021
@dfelton dfelton self-assigned this Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority - Low tech debt Functionally working but not designed well or could be improved upon in some way.
Projects
None yet
Development

No branches or pull requests

1 participant