Why do I get this error on setting up an administrator user on Griddb?

All we need is an easy explanation of the problem, so here it is.

I am trying to set up an administrator user on gridDB by the following command:

gs_passwd admin

and I got this error:
A00105: GS_HOME, GS_LOG environment variable not set

So what should I do?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

The error message is giving you a big hint – if only all error message were as clear as this one!

In Linux (which is what I presume you are running…) there are environment variables.

You can run

env | sort 

and you will see all of yours.

You have to do something like

$> export GS_HOME=gs_value 

and then run:

$> echo $GS_HOME 

(where $> is the bash prompt) and you will get gs_value.

You have to set GS_HOME and GS_LOG to appropriate values – this should be in the documentation. A quick search led me here.

Have you followed the steps?

 $ git clone https://github.com/griddb/griddb.git
 $ cd griddb
 $ ./bootstrap.sh
 $ ./configure
 $ make

 $ export GS_HOME=$PWD
 $ export GS_LOG=$PWD/log
 $ export PATH=${PATH}:$GS_HOME/bin

and just below that:

The following environment variables are defined.

Environment variables  Value                                              Meaning 
  GS_HOME              Directory where source code file is decompressed   GridDB home directory 
  GS_LOG               $GS_HOME/log                                       Event log file output directory

You should put the lines:

export GS_HOME=/path/to/your/install export GS_LOG=/path/to/your/install/log

into the .bashrc file that’s in your home directory – assuming you are running a standard version of Linux.

That should help get you started!

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply