I think I have a lead on this bear with me because I haven’t used PHP a lot before, but I threw an exception with the line of the code that was failing to debug it (there’s probs a better way)
just after comment:
//Background jobs
insert this line:
throw new \Exception(posix_getpwuid(fileowner(\OC::$configDir . 'config.php'))); line before
go to:
/var/www/html/apps/settings/lib/Settings/Admin/
then do: cp Server.php ServerBackup.php (in case you mess anything up).
when I bash into my container it warns me that i dont have a name:
I have no name!@, so you either need to setup a name for the account in my case I was using user 1001, but my solution (not fully tested whether this works was to remove the [‘name’] dictonary indexer to look like the following:
$this->initialStateService->provideInitialState('cliBasedCronUser', function_exists('posix_getpwuid') ? fileowner(\OC::$configDir . 'config.php') : '');
then it shows running as system user “1001”
https://yournextcloud/settings/admin
cronjobs were failing prior to me changing to this, so it seems to have worked for me. I can now use recognize app without it waiting forever and doing nothing.
