Closed sam-harry closed 3 years ago
Without this enabled, the nextcloud cron job fails.
Certainly not consistently; it runs without error for me, and I don't see that error reported on the support thread on the FreeNAS forum other than one user. And the PHP docs you linked suggest this would only be useful in narrow testing cases. But it does seem several users on the topic you linked have found it helpful.
That's interesting that it's not consistent - I had assumed it was a common enough bug given the nextcloud thread.
FWIW this is the config I had the issue with. I get the error when the command is first run by the install script as well.
JAIL_IP="x.x.x.x"
DEFAULT_GW_IP="x.x.x.x"
POOL_PATH="/mnt/tank"
TIME_ZONE="Time/Zone"
HOST_NAME="redacted"
RELEASE="12.2-RELEASE"
SELFSIGNED_CERT=1
CERT_EMAIL="redacted"
DB_PATH="/mnt/tank/nextcloud/database"
FILES_PATH="/mnt/tank/nextcloud/files"
CONFIG_PATH="/mnt/tank/nextcloud/config"
THEMES_PATH="/mnt/tank/nextcloud/themes"
PORTS_PATH="/mnt/tank/nextcloud/portsnap"
Interesting indeed--and if it's happening on the initial install, it would be a matter of a large installation causing problems. It doesn't look like that widespread of a problem, but it also doesn't look like it should be a problem, either.
Please consider adding this to the default php.ini configuration. There is no default section for APCu, so I added it under Miscellaneous comment block.
Without this enabled, the nextcloud cron job fails.
See also: https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521/17
See also: https://www.php.net/manual/en/apcu.configuration.php