Ctrl+C when running `occ preview:repair` crashes the process with an error from doctrine
Open
Nobody has claimed this yet.
1. to develop
30-feedback
bug
feature: occ
feature: previews and thumbnails
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Error: Invalid callback OC\Core\Command\Preview\Repair::sigIntHandler, cannot access protected method OC\Core\Command\Preview\Repair::sigIntHandler() in …/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130
Stack trace:
#0 …/3rdparty/doctrine/dbal/src/Connection.php(1099): Doctrine\DBAL\Driver\PDO\Statement->execute()
#1 …/lib/private/DB/Connection.php(415): Doctrine\DBAL\Connection->executeQuery()
#2 …/lib/private/DB/ConnectionAdapter.php(50): OC\DB\Connection->executeQuery()
#3 …/lib/private/DB/QueryBuilder/QueryBuilder.php(289): OC\DB\ConnectionAdapter->executeQuery()
#4 …/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php(285): OC\DB\QueryBuilder\QueryBuilder->executeQuery()
#5 …/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php(53): OC\DB\QueryBuilder\ExtendedQueryBuilder->executeQuery()
#6 …/lib/private/Files/Cache/Cache.php(130): OC\DB\QueryBuilder\ExtendedQueryBuilder->execute()
#7 …/lib/private/Files/View.php(1301): OC\Files\Cache\Cache->get()
#8 …/lib/private/Files/View.php(1348): OC\Files\View->getCacheEntry()
#9 …/lib/private/Files/Node/Root.php(183): OC\Files\View->getFileInfo()
#10 …/lib/private/Files/Node/LazyFolder.php(141): OC\Files\Node\Root->get()
#11 …/core/Command/Preview/Repair.php(215): OC\Files\Node\LazyFolder->get()
#12 …/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Preview\Repair->execute()
#13 …/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#14 …/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#15 …/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#16 …/lib/private/Console/Application.php(183): Symfony\Component\Console\Application->run()
#17 …/console.php(87): OC\Console\Application->run()
#18 …/occ(11): require_once('...')
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in core/Command/Preview/Repair.php around line 215 and inspect how Ctrl+C is handled by the preview repair command, then trace the Doctrine statement call shown in the stack trace. Reproduce the interruption with occ preview:repair; done means Ctrl+C stops the command without the invalid callback error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100