Installing and configuring IG

This book provides information on installing and configuring IG including frequently asked questions.


Solutions
ForgeRock Identity Platform
ForgeRock Identity Cloud

config.json not readable error in IG (All versions)

Last updated Jun 8, 2021

The purpose of this article is to provide assistance if you encounter a "/root/.openig/config/config.json" not readable error in IG.


Symptoms

Accessing a standard page using the hard-coded credentials in the 01-static.json file fails (for example, if you are trying the installation per Downloading and Starting the Sample Application). The 01-static.json file is located in the $HOME/.openig/config/routes/ directory.

The following error is shown in the stdout: 

2016-11-23 09:27:19.195:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=3253ms [main] [34mINFO [0;39m [1;37mo.f.o.http.GatewayHttpApplication[0;39m - OpenIG base directory : /root/.openig [34m[0;39m[main] [34mINFO [0;39m [1;37mo.f.o.http.GatewayHttpApplication[0;39m - /root/.openig/config/config.json not readable, using OpenIG default configuration

Recent Changes

Installed or configured IG as user Root.

Causes

You are running IG's web application container as a user other than Root, meaning you cannot access the configuration since IG's configuration is in a directory owned by Root.

Solution

This issue can be resolved by moving the IG configuration into a directory owned by the user who actually runs the web application container. For example, if the Jetty user runs the web application container, the 01-static.json file should be located in the Jetty user's directory instead:

/jetty/.openig/config/routes/01-static.json

See Also

FAQ: Installing and configuring IG

Installing and configuring IG

Getting Started Guide

Related Training

N/A

Related Issue Tracker IDs

N/A


Copyright and Trademarks Copyright © 2021 ForgeRock, all rights reserved.