Crontab with SVN and Git

I have some repos which are both in SVN and also Git. My username is guyfawkes, and also in my residence directory site I have folder www which has all my repos. In this directory site I additionally have documents update.sh:

[[email protected] ~/www]$ cat update.sh
cd /home/guyfawkes/www
cd crm
echo "upd crm"
svn up
echo "update crm completed"
echo "-------"
cd ../crm_sql
echo "upd sql"
svn up
echo "update sql completed"
echo "-------"
cd ../crm_old
echo "upd old"
svn up
echo "update old completed"
echo "-------"
cd ../mysqldiff
echo "upd mysqldiff"
git pull sotmarket master
echo "update mysqlidff completed"
git push origin master
echo "push to github completed"
echo "-------"
cd ../mysql-migration-manager
echo "upd mmmm"
git pull
echo "mmm updated"
cd data
echo "upd data"
git pull
echo "data updated"

My crontab is:

[[email protected] ~/www]$ crontab -l
*/5 * * * * /home/guyfawkes/www/update.sh

So, it functions flawlessly with svn repos, yet I have this mails in/ var/spool/mail/ guyfawkes (from cron):

X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/guyfawkes>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=guyfawkes>
X-Cron-Env: <USER=guyfawkes>

upd crm

Fetching external item into 'public/old'
External at revision 32674.

At revision 483.
update crm completed
-------
upd sql
At revision 29.
update sql completed
-------
upd old
At revision 32674.
update old completed
-------
upd mysqldiff
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
update mysqlidff completed
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
push to github completed
-------
upd mmmm
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
mmm updated
upd data
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
data updated

How can I to repair it?

1
2022-06-07 14:31:35
Source Share
Answers: 1

The trouble is you are attempting to upgrade from github which calls for an ssh key. Either create a committed ssh key without a password on your web server and also add it to your github account or make use of the http - readonly uri to upgrade your database:

git pull --mirror https://github.com/account/repository.git
4
2022-06-07 14:49:29
Source