SOLVED /usr/bin/git: not found

Status
Not open for further replies.

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I'm trying to get nZEDb to work in a jail. The web interface works but when I try to get the database setup it goes to a web page that says
The 192.168.1.157 page isn’t working
192.168.1.157 is currently unable to handle this request.

500

looking into the nginx error log it says:

*22 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Exception' with message '/usr/bin/git: not found2016/04/24 00:09:15 [error] 9979#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Exception' with
message '/usr/bin/git: not found

/usr/bin/git branch' in /usr/local/www/nZEDb/libs/Git.php/Git.php:330
Stack trace:
#0 /usr/local/www/nZEDb/libs/Git.php/Git.php(346): GitRepo->run_command('/usr/bin/git br...')
#1 /usr/local/www/nZEDb/libs/Git.php/Git.php(503): GitRepo->run('branch')
#2 /usr/local/www/nZEDb/libs/Git.php/Git.php(543): GitRepo->list_branches(true)
#3 /usr/local/www/nZEDb/nzedb/utility/Git.php(44): GitRepo->active_branch()
#4 /usr/local/www/nZEDb/nzedb/db/DbUpdate.php(69): nzedb\utility\Git->__construct()
#5 /usr/local/www/nZEDb/www/install/step2.php(152): nzedb\db\DbUpdate->__construct(Array)
#6 {main}
thrown in /usr/local/www/nZEDb/libs/Git.php/Git.php on line 330" while reading response header from upstream, client: 192.168.1.6, server: 192.168.1.157, request: "POST /install/step2.php? HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.157", referr$
2016/04/24 08:24:18 [error] 9979#0: *14 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Exception' with message '/usr/bin/git: not found
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
root@nzedb:/usr/local/etc # pkg install git
Updating FreeBSD repository catalogue...
[nzedb] Fetching meta.txz: 100% 968 B 1.0kB/s 00:01
[nzedb] Fetching packagesite.txz: 100% 5 MiB 5.6MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 24825 packages processed.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
'which git' will show you where it's installed. Then modify your config to point to that location instead
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
[root@freenas] /mnt/v1/jails/nZEDb/usr/local/www/nZEDb/libs# which git
/usr/local/bin/git

Is that a line in the php.ini?
Not sure which config to modify
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Wait a second. You're doing all this from the freenas box and not the jail.....that's a big nono
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
have 2 shell windows open must have been in the wrong one
root@nzedb:/ # whereis git
git: /usr/local/bin/git /usr/local/man/man1/git.1.gz /usr/ports/devel/git
and it is already installed.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
have 2 shell windows open must have been in the wrong one
root@nzedb:/ # whereis git
git: /usr/local/bin/git /usr/local/man/man1/git.1.gz /usr/ports/devel/git
and it is already installed.
And you still need to modify your configs for nzedb.....because nzedb thinks git is installed in /usr/bin/git
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Created a symbolic link and it fixed it.
ln -s /usr/local/bin/git /usr/bin/git
Thanks for your help.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
If I knew what file to edit I would have fixed the config. But I'm happy it works.
 
Status
Not open for further replies.
Top