Failed to update file index...PHP Warning: fileperms(): stat failed for

Nextcloud version : 16.0.3
Operating system and version: centos 7.3
Apache or nginx version: nginx 1.6:
PHP version : 7.3

when I try to update file index use:
sudo -u www php /www/wwwroot/nextcloud/occ files:scan --all
it throws error, could you like to tell me how to solve this problem?