NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ledermann
Oct 10, 2010Aspirant
gitscm: Can't connect to git repo
Hi!
I have installed the gitscm add-on and can't get it to work, instead the "git-upload-pack: command not found" message appears.
What I have done:
- Installed gitscm-addon via FrontView and rebooted the NAS
- Logged in to my readynas as root (ssh root@readynas)
- Created a git repo with:
# cd /opt/git
# mkdir repo
# cd repo
# git init --bare
- Checked that the new repo is shown in https://readynas/gitweb/gitweb.cgi => OK
- Trying to clone the repo from my local MAc client with:
# git clone root@readynas:/opt/git/repo.git
=> bash: line 1: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
Are there any hints? Because I don't have found any documentation to this addon, maybe I have created the repo the wrong way...
My config:
- ReadyNAS Duo
- Radiator 4.1.6
- git-scm v1.7.1-readynas-0.1.2
Kind regards,
Georg Ledermann
I have installed the gitscm add-on and can't get it to work, instead the "git-upload-pack: command not found" message appears.
What I have done:
- Installed gitscm-addon via FrontView and rebooted the NAS
- Logged in to my readynas as root (ssh root@readynas)
- Created a git repo with:
# cd /opt/git
# mkdir repo
# cd repo
# git init --bare
- Checked that the new repo is shown in https://readynas/gitweb/gitweb.cgi => OK
- Trying to clone the repo from my local MAc client with:
# git clone root@readynas:/opt/git/repo.git
=> bash: line 1: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
Are there any hints? Because I don't have found any documentation to this addon, maybe I have created the repo the wrong way...
My config:
- ReadyNAS Duo
- Radiator 4.1.6
- git-scm v1.7.1-readynas-0.1.2
Kind regards,
Georg Ledermann
14 Replies
Replies have been turned off for this discussion
- tudo75Aspirantthank's a lot
the .bashrc edit hack works also for me - colinbAspirantIf I want to access the git repositories with a non-root user, should I connect as the user "git" (which was created when I installed the addon)? If so, do I need to set a password?
EDIT: This didn't occur to me until now -- should I be using the "User" security mode (as opposed to "Share" mode)?
--Colin - joymyrAspirantThanks.
My git user was set up with /bin/sh as shell, and I had to change it to /bin/bash with the chsh command in order for this solution to work. - polux400AspirantHi all,
Thank you for your tips but i still don't get it. I try since few hours to install a git on my readynas ultra and neither https or ssh link seems to work.
Thanks to google i understand that because of our old version of git (1.4.4.4) we can't use it... and we can't update :(
So i try to use the "git" way, and after applying your 2 tips2) add the "--export-all" option to the line starting with GITDAEMON_OPTIONS= in /etc/init.d/rfw-git-daemon so on my ReadyNAS, I modified the .bashrc file to include /opt/rfw/bin:
readynas:~# cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
PATH=:$PATH:/opt/rfw/bin
export PATH
export PS1='\h:\w\$ '
umask 022
my log :Alakazam:~# $PATH
-bash: /opt/rfw/bin:/opt/rfw/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: No such file or directory
Alakazam:~# git clone git@github.com:tvheadend/tvheadend.git
Permission denied (publickey).
fatal: unexpected EOF
fetch-pack from 'git@github.com:tvheadend/tvheadend.git' failed.
thanks for your help !
ps: is there a way to install directly the .zip downloaded from git with ssh or git add-on ?
EDIT = ok nevermind, i put the folder inside the .zip in /c/home/ and access to the differents fonctions by ssh
tuto here : https://www.lonelycoder.com/redmine/projects/tvheadend/wiki/Building
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!