Getting cron working in Nextcloud

I am getting the error: Last background job execution ran 2 hours ago. Something seems wrong. using cron as the background jobs setting.

Doing some research it seems using the system cron is the best option.

I was going to add the line docker exec -u www-data nextcloud php cron.php but testing it I get the error unable to find user www-data: no matching entries in passwd file

so which user should I use? Or am I using the wrong approach all together?

Thanks

I tried --user nginx and --user cron and got permission denied: unknown

Everything in the container is running as user abc
With that said, we don’t support running manual commands inside the container unless we ask you to do so