unable to restart gerrit

6,471 views
Skip to first unread message

Vijay Kumar

unread,
Jun 18, 2010, 8:04:16 AM6/18/10
to Repo and Gerrit Discussion
Hi

I am gettign the following error while stopping the gerrit service,

$ ./gerrit.sh restart
** ERROR: GERRIT_SITE not set

what env variable i have to set to overcome this issue.

Thanks
Vijay.

Simon Wilkinson

unread,
Jun 18, 2010, 2:05:46 PM6/18/10
to Vijay Kumar, Repo and Gerrit Discussion

Create /etc/default/gerritcodereview containing the line:
GERRIT_SITE=/path/to/gerrit

(so that $GERRIT_SITE/etc/gerrit.config works)

S.


Shawn Pearce

unread,
Jun 18, 2010, 2:22:40 PM6/18/10
to Simon Wilkinson, Vijay Kumar, Repo and Gerrit Discussion

FWIW, I never use /etc/default/gerritcodereview.

I do:

cd $site_path
./bin/gerrit.sh restart

Typically gerrit.sh is able to discover site_path for itself by
looking one directory up.

Vijay Kumar

unread,
Jun 21, 2010, 7:00:30 AM6/21/10
to Simon Wilkinson, Repo and Gerrit Discussion
Thanks Simon! It worked.

~Manju


James Miles

unread,
Oct 15, 2013, 8:34:31 AM10/15/13
to repo-d...@googlegroups.com, Simon Wilkinson, Vijay Kumar
Hi I am also having this error and struggling. I wonder if you can help

Within home/gerrit/gerritetc/ : I have the gerrit.config 

Within here I have my path to the gerrit url as http://IP_ADDRESS:8080/

What do I need to do to get gerrit to a: Start and b: start on boot if the machine is rebooted.

the person who configured this has added an etc gerrit folder does this affect anything?

Regards
James
Reply all
Reply to author
Forward
0 new messages