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

Error When 'occ documentserver:flush' #326

Open
bpruneau opened this issue May 11, 2024 · 2 comments
Open

Error When 'occ documentserver:flush' #326

bpruneau opened this issue May 11, 2024 · 2 comments

Comments

@bpruneau
Copy link

$ php occ documentserver:flush
An unhandled exception has been thrown:
TypeError: Return value of "OCA\DocumentServer\Command\FlushChanges::execute()" must be of the type int, "null" returned. in /home/itzvfozw/public_html/3rdparty/symfony/console/Command/Command.php:301
Stack trace:
#0 /home/itzvfozw/public_html/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OCA\DocumentServer\Command\FlushChanges), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/itzvfozw/public_html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /home/itzvfozw/public_html/console.php(100): OC\Console\Application->run()
#6 /home/itzvfozw/public_html/occ(11): require_once('/home/itzvfozw/...')

$ php -v
PHP 8.1.28 (cli) (built: Apr 18 2024 08:52:48) (NTS)
@bpruneau
Copy link
Author

I had lots of errors in my log file and I think it is related:
image

@son-of-a-door-mat
Copy link

son-of-a-door-mat commented Aug 7, 2024

the same error

# sudo -u www-data php occ documentserver:flush
An unhandled exception has been thrown:
TypeError: Return value of "OCA\DocumentServer\Command\FlushChanges::execute()" must be of the type int, "null" returned. in /var/www/netcloud/3rdparty/symfony/console/Command/Command.php:301
Stack trace:
#0 /var/www/netcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#1 /var/www/netcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#2 /var/www/netcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#3 /var/www/netcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#4 /var/www/netcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
#5 /var/www/netcloud/console.php(102): OC\Console\Application->run()
#6 /var/www/netcloud/occ(11): require_once('...')
#7 {main}root@nextcloud-app:/var/www/netcloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants