ERROR

Invalid Credentials err=49

Last Published: April 25, 2020

Error Message

The access LOG file contains the following error message:

"Invalid credentials err=49".

This log file is in the '<InstallDir>/arcgis/servercore/agsidsvr/agsldap/slapd-<hostname>/logs/' directory.

Other conditions related to this issue are:

• The ldap.log file contains errors, such as those listed below:

"The /opt/arcgis/servercore/agsidsvr/agsldap/slapd- directory is missing the server's hostname".

"/opt/arcgis/servercore/agsidsvr/agsldap/scripts/startldap: /opt/arcgis/servercore/agsidsvr/agsldap/slapd-/start-slapd: not found".

• There are "not found" error messages in the configuration.log file after standard UNIX commands such as cut, grep, and uname.

• The <InstallDir>/arcgis/scripts/Server_diag_tool displays the following Java type errors "at java.io.FileInputStream.open(Native Method)" when executed.

Cause

The error messages above tend to occur when either the rights granted to the application owner are not set correctly or the $PATH environment variable does not include the '/usr/bin:/bin' directories.

The '/usr/bin:/bin' directories contain UNIX commands that are used to extract information about the server and generate configuration files used by ArcGIS Server 9.2.

Solution or Workaround

The ArcGIS Server 9.2 installation process generates many of the scripts used to configure it on a UNIX/Linux server.

If these error messages are found, the recommended method to resolve this issue is to reinstall ArcGIS Server 9.2, after performing the following preinstallation steps.

This recommendation is made because there are too many files and permissions that need to be set to manually correct the system.

  1. Define the user ID and group ID that ArcGIS Server 9.2 is going to run under.

    Some common choices for the user ID are:
    Code:
    agssvc

    ags92

    agsadm


    Warning:
    Do not use a name that can be confused with a directory component, such as arcgis.


    Some common choices for the group ID are:
    Code:
    apps

    esri


    When using the User Management graphical user interface (GUI) on Linux servers, by default, it creates a user ID with a group ID that is the same as the user ID just created, unless overridden.
  2. Create the directory where ArcGIS Server 9.2 is going to be installed.

    Some common choices for the installation directory are:

    Code:
    /opt/arcgis

    /home/<UserID>/arcgis


    Note:
    This step is not necessary if ArcGIS Server 9.2 is installed in the home directory of the user ID that owns the binaries.

  3. Set the installation directory's owner to the user ID and group ID just created.

    For example, if the user ID is agssvc, the group ID is esri, and the installation directory is /opt/arcgis, then the command to change the directory's owner is:
    Code:
    chown -R agssvc:esri /opt/arcgis


    Note:
    This step is not necessary if ArcGIS Server 9.2 is installed in the home directory of the user ID that owns the binaries.

  4. Set the installation directory's access rights to a minimum of 711. Most users prefer to set them to 755.

    Code:
    chmod -R 711 /opt/arcgis


    Note:
    This step is not necessary if ArcGIS Server 9.2 is installed in the home directory of the user ID that owns the binaries.

  5. Verify that the values are set correctly.

    For example, if the user ID is agssvc, the group ID is esri, the rights granted are set to 711, and the installation directory is /opt/arcgis, then the expected output of the 'ls -ld /opt/arcgis' command is:
    Code:
    % ls -ld /opt/arcgis
    drwx--x--x 28 agssvc esri 1024 May 31 15:16 /opt/arcgis/
    %

  6. Verify commands such as 'awk', 'cut', 'grep', and 'uname' can be accessed and executed by the root ID.

    Type 'which <command>' to verify each command can be accessed. An example of expected output is listed below:

    Code:
    %which awk
    /bin/awk

    %which cut
    /bin/cut

    %which grep
    /bin/grep

    %which uname
    /bin/uname

    If any of the commands returns a response similar to the response below,

    Code:
    %which uname
    no uname in /usr/ucb /etc .

    then add '/bin' and '/usr/bin' to the $PATH statement in the startup shell script, resource the startup shell script, and test again.
  7. If the preliminary steps listed above are met, ArcGIS Server 9.2 is ready to be installed.

Article ID:000009400

Software:
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic