FreePBX | Register | Issues | Wiki | Portal | Support

GIT Error Setting Up FreePBX (SNG7) Development Environment

(Jerry Riggin) #1

I am a bit of a git newbie, trying to setup a dev environment on SNG7 distro, followed instructions Setting up a Development environment from the FreePBX Distro.

Previous steps all look like they worked as expected, but when I run the step

./freepbx_git.php --setup --switch=release/14.0 --keys=freepbx


./freepbx_git.php --setup --mode=ssh --switch=release/14.0 --keys=freepbx

and enter the UN/PW that gets me into, I get

FreePBX Username: myusername
FreePBX Password: *************
Cloning amd into /usr/src/freepbx/amd...PHP Fatal error:  Uncaught exception 'Exception' with message 'Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
' in /usr/src/devtools/libraries/Git.php:262
Stack trace:
#0 /usr/src/devtools/libraries/Git.php(277): GitRepo->run_command('/usr/bin/git cl...')
#1 /usr/src/devtools/libraries/Git.php(358): GitRepo->run('clone --local s...')
#2 /usr/src/devtools/libraries/Git.php(137): GitRepo->clone_from('ssh://git@git.f...')
#3 /usr/src/devtools/libraries/Git.php(63): GitRepo::create_new('/usr/src/freepb...', 'ssh://git@git.f...')
#4 /usr/src/devtools/libraries/freepbx.php(237): Git::create('/usr/src/freepb...', 'ssh://git@git.f...')
#5 /usr/src/devtools/freepbx_git.php(284): freepbx->setupDevRepos('/usr/src/freepb...', false, 'ssh', 'release/14.0', 'freepbx')
#6 {main}
  thrown in /usr/src/devtools/libraries/Git.php on line 262
[root@SNG7-Dev devtools]#

Did I miss a step someplace? Am I supposed to create my own repo first? The UN/PW works to log me into and Bitbucket at