Unable to update automatically

Can you check the permissions of files within this folder:

ls -lisa /var/www/html/updater/../ocs

Also make sure to run the update process with the webserver permissions:
sudo -u www-data php updater/updater.phar

Similar topics:

and in the bug tracker:
https://github.com/nextcloud/updater/issues/158