Did you read this: General troubleshooting — Nextcloud latest Administration Manual latest documentation

and this: Logging — Nextcloud latest Administration Manual latest documentation