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

Process fails and includes wrong exception stacktrace #36

Open
raffis opened this issue May 22, 2019 · 0 comments
Open

Process fails and includes wrong exception stacktrace #36

raffis opened this issue May 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@raffis
Copy link
Contributor

raffis commented May 22, 2019

Describe the bug

sync ep accounts -n myns -l debug -f --trace -q "data.username=username" test-ad:

Single object sync fails with exception (Not for every object but for this one):

2019-22-05 07:35:57 [TaskScheduler\Worker,ERROR]: failed execute job [5ce4fbda0c894400c366ffac] of type [Tubee\Async\Sync] on worker [5ce4f20d6f93e500060fc90d]  [object] (Error(code: 0): Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) at /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Process.php:133)
[stacktrace]
#0 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Process.php(133): Exception->__construct('SQLSTATE[42000]...', '42000')
#1 /usr/share/tubee/src/lib/Async/Sync.php(147): TaskScheduler\Process->wait()
#2 /usr/share/tubee/src/lib/Async/Sync.php(124): Tubee\Async\Sync->loopCollections(Array, Array)
#3 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Worker.php(574): Tubee\Async\Sync->start()
#4 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Worker.php(482): TaskScheduler\Worker->executeJob(Array)
#5 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Worker.php(333): TaskScheduler\Worker->processJob(Array)
#6 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Worker.php(227): TaskScheduler\Worker->queueJob(Array)
#7 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/WorkerManager.php(287): TaskScheduler\Worker->processAll()
#8 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/WorkerManager.php(259): TaskScheduler\WorkerManager->spawnWorker()
#9 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/WorkerManager.php(200): TaskScheduler\WorkerManager->spawnMinimumWorkers()
#10 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/WorkerManager.php(325): TaskScheduler\WorkerManager->exitWorker(17, Array)
#11 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/WorkerManager.php(176): TaskScheduler\WorkerManager->main()
#12 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Queue.php(148): TaskScheduler\WorkerManager->process()
#13 /usr/share/tubee/vendor/gyselroth/mongodb-php-task-scheduler/src/Queue.php(93): TaskScheduler\Queue->initWorkerManager()
#14 /usr/share/tubee/src/lib/Console/Jobs.php(69): TaskScheduler\Queue->process()
#15 /usr/share/tubee/src/lib/Bootstrap/Cli.php(106): Tubee\Console\Jobs->__invoke()
#16 /usr/share/tubee/src/lib/Bootstrap/Cli.php(130): Tubee\Bootstrap\Cli->executeCommand(Object(Tubee\Console\Jobs))
#17 /usr/share/tubee/src/lib/Bootstrap/Cli.php(91): Tubee\Bootstrap\Cli->routeCommand()
#18 /usr/share/tubee/bin/console/tubeecli(24): Tubee\Bootstrap\Cli->process()
#19 {main}

To Reproduce

Expected behavior

The exception stacktrace is not much helpful since it shows the stacktrace from the process handler.

Environment

  • tubee server version: [e.g. v1.0.0]
  • tubectl version: [e.g. v1.0.0]
  • MongoDB Version: [e.g. v3.4.18]
  • PHP Version [e.g. v7.2.1]

Additional context

Add any other context about the problem here.

@raffis raffis added the bug Something isn't working label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant