MasterVitronic / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

GitHub source for ubuntu easy install script doesn't have version branches; causes "GIT ERROR" #358

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Invoke `sudo ./install_fusionpbx.sh install-both user |tee 
/tmp/install_fusion.log` on Ubuntu 10.04 LTS, continue through prompts until 
Git section

What is the expected output? What do you see instead?
Expected this phase to pass, see:

ldconfig is finished

Press Enter to continue (check for errors)
/bin/grep: /tmp/install_fusion_status: No such file or directory
installing stable v1.2.stable of FreeSWITCH
Cloning into FreeSWITCH...
remote: Counting objects: 202580, done.
remote: Compressing objects: 100% (39857/39857), done.
remote: Total 202580 (delta 156751), reused 201973 (delta 156176)
Receiving objects: 100% (202580/202580), 93.76 MiB | 1.54 MiB/s, done.
Resolving deltas: 100% (156751/156751), done.
44.89user 6.24system 1:42.76elapsed 49%CPU (0avgtext+0avgdata 
268592maxresident)k
0inputs+583760outputs (0major+230682minor)pagefaults 0swaps
error: pathspec 'v1.2.stable' did not match any file(s) known to git.
GIT ERROR

What version of the product are you using? On what operating system?
Latest, Ubuntu Linux 10.04 LTS

Please provide any additional information below.

    #------------------------
    # GIT FREESWITCH
    #------------------------
    /bin/grep 'git_done' /tmp/install_fusion_status > /dev/null
    if [ $? -eq 0 ]; then
        /bin/echo "Git Already Done. Skipping"  
    else
        cd /usr/src
        if [ "$FSSTABLE" == true ]; then
            echo "installing stable $FSStableVer of FreeSWITCH"
            /usr/bin/time /usr/bin/git clone $FSGIT
            cd /usr/src/freeswitch
            /usr/bin/git checkout $FSStableVer
            if [ $? -ne 0 ]; then
                #git had an error
                /bin/echo "GIT ERROR"
                exit 1
            fi          

Checkout fails because, according to GitHub as of 11/28/12 (since the 
freeswitch.org site is down for me entirely), there are no branches on the 
project besides "master". Checkout cannot locate any version-tagged branch to 
switch to, which is the written behavior.

Original issue reported on code.google.com by mzxgiant@gmail.com on 28 Nov 2012 at 9:33

GoogleCodeExporter commented 9 years ago
won't fix. check out the dev branch at your own peril.  You can easily modify 
this by changing a variable in the script.

Original comment by soape...@gmail.com on 28 Nov 2012 at 11:18

GoogleCodeExporter commented 9 years ago
Note for anyone who finds this ticket later via search engine;

Dev was correct, checking out git dev branch works. When using GitHub as a 
source, at the time of this writing, this appears to be the only option for 
installing FreeSWITCH with this script.

For record, the reason this was even attempted was because the FreeSWITCH 
server was down; the hope was that the branching and tagging was kept 
consistent between FreeSWITCH's internal git and GitHub. Unfortunately, this 
appears not to be the case.

Original comment by mzxgiant@gmail.com on 30 Nov 2012 at 10:08

GoogleCodeExporter commented 9 years ago
Closing this because the FreeSWITCH Servers are back up.

Original comment by markjcrane@gmail.com on 6 Dec 2012 at 11:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
hello:
I got this error with install_fusionpbxv4.4.0pre.sh:
---------error-------------------------
Reading state information...
dahdi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Waiting on ldconfig to finish so bootstrap will work.

ldconfig is finished

/bin/grep: /tmp/install_fusion_status: No such file or directory
fatal: destination path 'freeswitch' already exists and is not an empty 
directory.
Command exited with non-zero status 128
0.00user 0.01system 0:00.05elapsed 21%CPU (0avgtext+0avgdata 2784maxresident)k
1584inputs+0outputs (7major+205minor)pagefaults 0swaps
GIT ERROR
james@ubuntu:~$ ls
install_fusionpbxv4.4.0pre.sh
james@ubuntu:~$ uname
Linux
james@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid
james@ubuntu:~$

Original comment by zhulizh...@gmail.com on 22 Nov 2013 at 2:26