Creating DDC configuration fails with error "perl:warning: Setting locale"

Follow

Creating DDC configuration fails with the error perl warning: Setting locale


Problem Details

Problem Statement

Creating a new DDC configuration from GUI or running dbvctl -o setup from CLI throws the below warning of setting locale settings

Applicable Error Code

Status": 500,
"Err": "request to OracleSvc.imlh5cxi4f9l.Request: get error from dbvctl: perl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLANG = \"nl_NL.UTF-8\"\n are supported and installed on your system.\nperl: warning: Falling back to the standard locale (\"C\").\nperl: warning: Setting locale failed.\nperl: warning:

Affected Versions

v11

Affected Platforms

Linux

 

Description

 The problem is that when we run dbvagentmanager using systemctl services, by default, it inherits the OS environment variables. The Dbvctl, which is the child process of agentmanager, can work only with LANG=en_US.UTF-8. To override the default setting, we need to specify either in the bash profile or in systemd dbvagentmanager.service 

 

Solution

Option 1: Add below line  .bash_profile 

export LANG=en_US.UTF-8
 
 
Option 2: Add the following line in /etc/systemd/system/dbvagentmanager.service to override the default value
export LANG=en_US.UTF-8
Restart the dbvagentmanager
sudo systemctl restart dbvagentmanager
Have more questions? Submit a request

Comments