Unable to log in to the VAMI page after upgrading Usage Meter
search cancel

Unable to log in to the VAMI page after upgrading Usage Meter

book

Article ID: 322751

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
After upgrading to Usage Meter 4.5, the login into the VAMI page with the root account fails with an invalid username or password. However, logging in with the same root account to the Usage Meter remote console works fine. The Usage Meter web application works fine, and collections happen without issues. Resetting the root account and changing the password doesn't solve the login issue with VAMI.

Environment

VMware vCloud Usage Meter 4.x

Cause

During the Usage Meter upgrade, applmgmt-lighttpd.conf doesn't get added to the lighttpd.conf file because of the installation dependencies.

Resolution

Procedure

  1. Connect through SSH to Usage Meter as usagemeter.
  2. Check if the VAMI service is running.
service vami-lighttp status
   You should see a similar output:
* vami-lighttp.service
   Loaded: loaded (/etc/init.d/vami-lighttp; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-03-28 15:24:30 UTC; 4 days ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 1 (limit: 4915)
   Memory: 7.0M
   CGroup: /system.slice/vami-lighttp.service
           `-2134 /opt/vmware/sbin/vami-lighttpd -f /opt/vmware/etc/lighttpd/lighttpd.conf
  1. Check if the appliance-management service is running.
service cap-appliance-management status
  You should see a similar output:
* cap-appliance-management.service - Appliance initialization script
   Loaded: loaded (/lib/systemd/system/cap-appliance-management.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-03-22 14:39:46 CET; 1 weeks 2 days ago
 Main PID: 2489 (ms_controller)
    Tasks: 7 (limit: 4915)
   Memory: 19.4M
   CGroup: /system.slice/cap-appliance-management.service
           `-2489 /usr/lib/cap_am/ms_controller
  1. Switch to the root user.
su -root
  1. Verify if the lighttpd.conf file located at /opt/vmware/etc/lighttpd contains the below entry.
include "/opt/vmware/etc/lighttpd/applmgmt-lighttpd.conf"
  1.  If the entry is missing, create a backup of the lighttpd.conf file.
cp /opt/vmware/etc/lighttpd/lighttpd.conf  /opt/vmware/etc/lighttpd/lighttpd.conf.bkp
  1.  Edit the lighttpd.conf file using the vi editor and add the below line at the end of the file.
include "/opt/vmware/etc/lighttpd/applmgmt-lighttpd.conf"
  1.  Save the file.
:wq!
  1. Reboot the appliance.
reboot
  1. Once the Usage Meter appliance is up and running, log in to the VAMI page using the root account. You should be able to log in to the VAMI page and verify all the options. If you still experience a similar issue, collect the logs from Usage Meter and open a support request with VMware.