cd /var/log
To check the owner of git-auto-deploy.log file
ls -l
chown www-data:www-data git-auto-deploy.log
systemctl restart git-auto-deploy