Receive messages XCOMU0465E and XCOMU0466E when starting xcomd as SUDO
search cancel

Receive messages XCOMU0465E and XCOMU0466E when starting xcomd as SUDO

book

Article ID: 276305

calendar_today

Updated On:

Products

XCOM Data Transport - Linux PC

Issue/Introduction

XCOMD fails to start when a user uses the "sudo" command to start the daemon (e.g. sudo xcomd). The following messages are received:

2023/11/21 20:43:51  PRG=xcomd PID=nnnn
    XCOMU0465E Check of xcom.glb pathnames failed.

[linux@xxxxxx ~]$ 2023/11/21 20:43:51  PRG=xcomd PID=nnnn
    XCOMU0466E Unable to create an index file for queue.

Environment

XCOM Data Transport for Linux r11.6 and r12.0

Cause

The messages are caused because the XCOM environmental variables are missing from the sudoers file.

Resolution

Please modify the /etc/sudoers file using command "visudo" to add the following statement: 

     Defaults env_keep+="XCOM_HOME XCOM_JAVA_HOME"

This will allow the XCOM environmental variables to be available to the sudo user that will start xcom when using command "sudo xcomd"