No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionCompute V100R003C00/V100R003C10 VRM Process Failed to Connect to the Database

Publication Date:  2014-06-09 Views:  50 Downloads:  0
Issue Description
The database on the Virtualization Resource Management (VRM) node starts successfully. However, information indicating database connection failure is displayed in a VRM log, shown as follows:
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1463)
at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)

Notic:You can run the service postgresql status command to check whether the database is running properly.
Alarm Information
None
Handling Process
1. Use vi editor to add the loopback address 127.0.0.1 in the /etc/hosts file. (Press Tab to separate the parameter and its value.)
2. Run the following commands to stop all processes on the VRM node:
    service notifyd stop
    service portal stop
    service vrmd stop
    service pmcd stop
    service cepd stop
    service analyzerd stop
    service fmcd stop
Root Cause
After checking the configuration file in /etc/hosts the VRM node, we found that the loopback address, 127.0.0.1, has been deleted.
Suggestions
None

END