下载opennms包后初始化时出现以下错误:
请告诉我我做错了什么,或者有什么建议可以解决这个问题
OpenNMS安装程序

Configures PostgreSQL tables, users, and other miscellaneous settings.

15:48:58.468 [Main] WARN  org.opennms.install.Installer - Could not create file: /usr/share/opennms/etc/libraries.properties
- using SQL directory... /usr/share/opennms/etc
- using create.sql... /usr/share/opennms/etc/create.sql
15:48:58.496 [Main] INFO  org.opennms.core.schema.Migrator - validating database version
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.opennms.core.schema.MigrationException: an error occurred getting the version from the database
    at org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:183)
    at org.opennms.core.schema.Migrator.validateDatabaseVersion(Migrator.java:211)
    at org.opennms.install.Installer.install(Installer.java:245)
    at org.opennms.install.Installer.main(Installer.java:991)
    ... 6 more
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"
    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:446)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:220)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)
    at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
    at org.postgresql.Driver.makeConnection(Driver.java:407)
    at org.postgresql.Driver.connect(Driver.java:275)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:208)
    at org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:113)
    at org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:171)
    ... 9 more

有什么建议吗?

最佳答案

您似乎没有访问PostgreSQL数据库的权限。
你编辑了吗?
made a video on安装OpenNMS,你可能会觉得有帮助。它涵盖了您需要对PostgreSQL进行的更改,以便OpenNMS可以访问它。

07-28 00:20