Error "Access denied for user root@localhost" during DX NetOps Portal installation
search cancel

Error "Access denied for user root@localhost" during DX NetOps Portal installation

book

Article ID: 430207

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

You encounter a failure during a fresh installation of the NetOps Portal where the MySQL root password remains empty or access is denied․․․․

ERROR MESSAGE: "Flushing Mysql privileges... Exit Code: 1 Err: [mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)']"

SYMPTOMS:

  • Installation process stops during the "Installing..." phase.

  • Installer repeatedly prompts "Enter password:".

  • Log file shows mysqladmin connection failure at localhost.

CONTEXT: Occurs during a fresh installation of DX NetOps Portal 25.4.4. on a new clean VM.

IMPACT: Complete installation failure prevents the deployment of the NetOps Portal.

Environment

  • Release: 25.4.4
  • OS Setting: RHEL 9 and /tmp mounted with noexec permissions.

Cause

The installation fails because the underlying filesystem (often /tmp or the target install directory) is mounted with the noexec flag, preventing the MySQL configuration scripts from executing properly despite the correct password being provided.

Resolution

 

PREREQUISITES:

  • Root or sudo access to the installation server.

  • Verification of mount point permissions.

STEPS:

  1. CHECK MOUNT POINT PERMISSIONS: Verify if the installation directory or /tmp is mounted with the noexec option.

    Path: /etc/fstab

    EXPECTED: Mount points required for execution should not have the noexec flag.

  2. REMOUNT WITH EXECUTION PRIVILEGES: If noexec is present, remount the affected partition to allow script execution.

    Command: mount -o remount,exec [Mount_Point]

    EXPECTED: The installer can now execute necessary MySQL scripts.

  3. RE-RUN INSTALLATION: Execute the NetOps Portal installer again.

    EXPECTED: The "Flushing Mysql privileges" step completes without access denied errors.

VERIFY SUCCESS:

  • Installation completes without "Access denied" prompts.

  • MySQL privileges flush with Exit Code: 0.

  • NetOps Portal services start successfully.

PREVENTION:
Ensure all target installation partitions and temporary directories meet the execution prerequisites defined in the DX NetOps installation guide before starting the process.

Additional Information

KNOWN LIMITATIONS:

  • Security policies often default to noexec for /tmp; temporary overrides may be required during installation

This is documented  or the portal and is resolved in 25.4.5

Symptom: When the /tmp directory is mounted using the noexec flag, various actions in the NetOps Portal installer or services fail to run the Bouncy Castle encryption libraries from the /tmp directory.
 
Resolution: With this fix, the NetOps Portal installer, various tools, and the servicewrapper.conf file now set up and use the IATEMPDIR environment variable that the installer uses to bypass the /tmp directory running in noexec mode.
 
(25.4.5, DE181521, 36794725)

Similar problem on aggregator

Similar problem with FIPs