nextcloud / nextcloud/server

Ctrl+C when running `occ preview:repair` crashes the process with an error from doctrine

Open
#48,658 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.