Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Command mediadc:collector:cleanup not working! #102

Closed
ondrejlohnisky opened this issue Jan 10, 2023 · 2 comments · Fixed by #103
Closed

Command mediadc:collector:cleanup not working! #102

ondrejlohnisky opened this issue Jan 10, 2023 · 2 comments · Fixed by #103

Comments

@ondrejlohnisky
Copy link
Contributor

I dont know how this command should behave. But It gives me an error after i use this command:
sudo -u www-data php occ mediadc:collector:cleanup

The error:

An unhandled exception has been thrown:
Error: Call to a member function info() on null in /var/www/nextcloud/apps/mediadc/lib/Service/CleanupService.php:67
Stack trace:
#0 /var/www/nextcloud/apps/mediadc/lib/Command/CollectorCleanupCommand.php(54): OCA\MediaDC\Service\CleanupService->cleanup()
#1 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\MediaDC\Command\CollectorCleanupCommand->execute()
#2 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#3 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#4 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#5 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
#6 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#7 /var/www/nextcloud/occ(11): require_once('...')
#8 {main}%
@ondrejlohnisky
Copy link
Contributor Author

I was able to make it run when i commented out line 67.

@ondrejlohnisky
Copy link
Contributor Author

ondrejlohnisky commented Jan 10, 2023

I fixed it like this: #103

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

Successfully merging a pull request may close this issue.

2 participants