When you install the BMI, it is configured to work with the Sun Update Connection – Enterprise Python-API. If the default configuration is not appropriate for your local environment, the following message is displayed:
Failed to prepare API working directory! Failed to extract uce_port from uce.rc! run config.py manually! |
Open a terminal window and log in with root permissions.
Use the which python command to find the path to your python executable.
In /opt/local/uce/agent/bin/.uce.rc, find server-port and distrizor-port.
In a terminal, type the following command in one line:
# <path/to/python> /opt/local/uce/api/python/lib/PyOsApi/utils/config.py \ local-host server-port local-host distrizor-port \ /usr/local/uce/engine/bin/uce.public /opt/local/uce/.uce_python |
Type chown uce-sds.uce.sds /opt/local/uce/.uce_python/.
This allows the API read-write functions in the BMI server, because uce-sds is the owner of web applications.