Open mluettermann opened 6 months ago
same here. running on a shared host.
Problem is still there. +1
Appears that FullTextSearch 28 is incompatible with NextCloud 29. Store references the 28 download and though a 29 release exists the store app owners apparently haven't udpated it yet.
Temporary fix is to disable FullTextSearch.
Since I enabled the "fulltext-stack" I got an error running the 5min-php-cron-job:
nextcloud (29.0.0) as container installed apps:
[...]
- files_fulltextsearch: 28.0.0
- files_fulltextsearch_tesseract: 27.0.0
- fulltextsearch: 28.0.1
- fulltextsearch_elasticsearch: 29.0.0
[...]
Error while running 'docker exec -u www-data nextcloud php -f /var/www/html/cron.php':
Error: Class "OC\BackgroundJob\TimedJob" not found in /var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php:51
Stack trace:
#0 /var/www/html/lib/composer/composer/ClassLoader.php(576): include()
#1 /var/www/html/lib/composer/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/html/c...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('OCA\\FullTextSea...')
#3 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(126): ReflectionClass->__construct('OCA\\FullTextSea...')
#4 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(146): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\FullTextSea...')
#5 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(470): OC\AppFramework\Utility\SimpleContainer->query('OCA\\FullTextSea...')
#6 /var/www/html/lib/private/ServerContainer.php(155): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\FullTextSea...')
#7 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(64): OC\ServerContainer->query('OCA\\FullTextSea...')
#8 /var/www/html/lib/public/Server.php(55): OC\AppFramework\Utility\SimpleContainer->get('OCA\\FullTextSea...')
#9 /var/www/html/lib/private/BackgroundJob/JobList.php(326): OCP\Server::get('OCA\\FullTextSea...')
#10 /var/www/html/lib/private/BackgroundJob/JobList.php(235): OC\BackgroundJob\JobList->buildJob(Array)
#11 /var/www/html/cron.php(163): OC\BackgroundJob\JobList->getNext(true)
#12 {main}
Hi, I think there are some new app-realeases, but I still there are issues:
Please see screenshots (app update, app list and php-cron)
What can I do?
Thanks and Best Regards Zen
Hi again,
nevermind, cron seems to run correctly now. I dont know why its working now, because I didnt change anything since my last post...
BR Zen
I'm no programmer/developper so don't take this as tested. I merely copied together what others wrote in simmilar codes. I changed Backup.php, Event.php and Manage.php in this manner:
namespace OCA\Backup\Cron;
use OCP\BackgroundJob\TimedJob; /*minor change here*/
use OCP\AppFramework\Utility\ITimeFactory; /*added this*/
use OCA\Backup\Exceptions\JobsTimeSlotException;
use OCA\Backup\Service\ConfigService;
use OCA\Backup\Service\CronService;
use OCA\Backup\Service\PointService;
use OCA\Backup\Tools\Traits\TNCLogger;
use Psr\Log\LoggerInterface;
use Throwable;
class Backup extends TimedJob {
use TNCLogger;
private $pointService;
private $cronService;
private $configService;
private $loggerInterface;
public function __construct(
ITimeFactory $time, /*added this*/
PointService $pointService,
CronService $cronService,
ConfigService $configService,
LoggerInterface $loggerInterface
) {
parent::__construct($time); /*added this*/
$this->setInterval(900);
$this->pointService = $pointService;
$this->cronService = $cronService;
$this->configService = $configService;
$this->loggerInterface = $loggerInterface;
}
So far, this works for me.
My NC instance tells me:
This app cannot be installed because the following dependencies are not fulfilled: Server version 28 or lower is required. Latest updated: vor 5 Monaten
Is there a version of backup in the NC app store that is "tested" and runs with NC 29?
Reporting the same, but not on docker. A manual install.
Nextcloud 29.0.1. Ubuntu 22.04.4 LTS, php 8.2, mariadb Ver 15.1 Distrib 10.6.16-MariaDB, nginx/1.18.0
$ sudo -u www-data php -f /var/www/nextcloud/cron.php
Error: Class "OC\BackgroundJob\TimedJob" not found in /var/www/nextcloud/apps/backup/lib/Cron/Backup.php:48
Stack trace:
#0 /var/www/nextcloud/lib/composer/composer/ClassLoader.php(576): include()
#1 /var/www/nextcloud/lib/composer/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(126): ReflectionClass->__construct()
#4 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(146): OC\AppFramework\Utility\SimpleContainer->resolve()
#5 /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(470): OC\AppFramework\Utility\SimpleContainer->query()
#6 /var/www/nextcloud/lib/private/ServerContainer.php(155): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
#7 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(64): OC\ServerContainer->query()
#8 /var/www/nextcloud/lib/public/Server.php(55): OC\AppFramework\Utility\SimpleContainer->get()
#9 /var/www/nextcloud/lib/private/BackgroundJob/JobList.php(326): OCP\Server::get()
#10 /var/www/nextcloud/lib/private/BackgroundJob/JobList.php(235): OC\BackgroundJob\JobList->buildJob()
#11 /var/www/nextcloud/cron.php(163): OC\BackgroundJob\JobList->getNext()
#12 {main}
Same here running on docker. I need to disable the Backup app to have cron.php running without error.
Same here running on docker. I need to disable the Backup app to have cron.php running without error.
I disabled and removed Backup, but I still get Unable to update background job mode
when trying to switch modes, and it doesn't seem to run, period.
Cron not working after upgrade to 29.02.1 same issue in Nextcloud snap after upgrade to 29.02.1: https://github.com/nextcloud-snap/nextcloud-snap/issues/2793
Hi, i have the same problem: The cron-job, which worked perfectly, stopped after I installed the backup-app and prepared the first backup.
In my logs i found this entry: "[cron] Fehler: Class "OC\BackgroundJob\TimedJob" not found"
After disabeling the backup-app, the cron-job returned to work normally.
I use Nextcloud Hub 8 (29.0.4) on Dietpi 9.6.1 (https://dietpi.com/)
Yeah, that app is known to have issues with the snap... prefer the snap backup Method. see wiki.
Thanks to @seko5553 for the fix. I did (quite) like you've told.
Since the NC 29 update, I've been receiving the following error message with Cron.php:
I'm using NC in a Docker environment
After deactivating the backup app, the cron job is running normally again