No CONJUR_DATA_KEY

Hello,

I am trying to setup Conjur open source by following the steps in the guide: Install Conjur OpenSource Using Docker | Open Source OSS Environment

However in step 5 : I am getting an error ( nor API Key is generated )
rake aborted!
No CONJUR_DATA_KEY
/opt/conjur-server/config/initializers/authenticator.rb:19:in <top (required)>' /opt/conjur-server/config/environment.rb:19:in <top (required)>’
Tasks: TOP => account:create => environment
(See full trace by running task with --trace)

  • count you please assist, I am unable to proceed with the following steps.
    thank you.

Hi @biloocabba,

This error means that the Conjur server can’t access the CONJUR_DATA_KEY environment variable. This should have been generated in step 2 and loaded into the environment variable in step 3. If you run echo $CONJUR_DATA_KEY in the command line, does it print a value?

Hi,
Thank you for the reply, step 2 is giving the following:
sudo docker-compose run --no-deps --rm conjur data-key generate > data_key
Creating network “conjur-quickstart_default” with the default driver
Creating conjur-quickstart_conjur_run … done

Aldo echo $CONJUR_DATA_KEY is returning an empty value
conjur-quickstart$ echo $CONJUR_DATA_KEY

Interesting. What shell and version are you using? Can you check if the file data_key exists and has any contents?